Last active 1 week ago

Revision 5241fcdf31f928f7b5d057cedaec8d7760256e06

grafana.json Raw
1{
2 "apiVersion": "dashboard.grafana.app/v2",
3 "kind": "Dashboard",
4 "metadata": {
5 "name": "ad-samba-audit2",
6 "generation": 35,
7 "creationTimestamp": "2026-07-03T12:41:09Z",
8 "labels": {},
9 "annotations": {}
10 },
11 "spec": {
12 "annotations": [
13 {
14 "kind": "AnnotationQuery",
15 "spec": {
16 "query": {
17 "kind": "DataQuery",
18 "group": "grafana",
19 "version": "v0",
20 "spec": {}
21 },
22 "enable": true,
23 "hide": true,
24 "iconColor": "rgba(0, 211, 255, 1)",
25 "name": "Annotations & Alerts",
26 "builtIn": true
27 }
28 }
29 ],
30 "cursorSync": "Crosshair",
31 "editable": true,
32 "elements": {
33 "panel-1": {
34 "kind": "Panel",
35 "spec": {
36 "id": 1,
37 "title": "Logins OK",
38 "description": "Успешные входы в домен (samba_auth): машинные и пользовательские, разбивка по домену.",
39 "links": [],
40 "data": {
41 "kind": "QueryGroup",
42 "spec": {
43 "queries": [
44 {
45 "kind": "PanelQuery",
46 "spec": {
47 "query": {
48 "kind": "DataQuery",
49 "group": "influxdb",
50 "version": "v0",
51 "spec": {
52 "alias": "machine_login",
53 "groupBy": [
54 {
55 "params": [
56 "$interval"
57 ],
58 "type": "time"
59 },
60 {
61 "params": [
62 "domain::tag"
63 ],
64 "type": "tag"
65 },
66 {
67 "params": [
68 "null"
69 ],
70 "type": "fill"
71 }
72 ],
73 "measurement": "samba_auth",
74 "orderByTime": "ASC",
75 "policy": "default",
76 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
77 "rawQuery": false,
78 "resultFormat": "time_series",
79 "select": [
80 [
81 {
82 "params": [
83 "client_account"
84 ],
85 "type": "field"
86 },
87 {
88 "params": [],
89 "type": "count"
90 }
91 ]
92 ],
93 "tags": [
94 {
95 "key": "status::tag",
96 "operator": "=",
97 "value": "NT_STATUS_OK"
98 },
99 {
100 "condition": "AND",
101 "key": "account::tag",
102 "operator": "=~",
103 "value": "/^MACHINE/"
104 }
105 ]
106 },
107 "labels": {
108 "grafana.app/export-label": "influxdb-1"
109 }
110 },
111 "refId": "A",
112 "hidden": false
113 }
114 },
115 {
116 "kind": "PanelQuery",
117 "spec": {
118 "query": {
119 "kind": "DataQuery",
120 "group": "influxdb",
121 "version": "v0",
122 "spec": {
123 "alias": "user_login",
124 "groupBy": [
125 {
126 "params": [
127 "$interval"
128 ],
129 "type": "time"
130 },
131 {
132 "params": [
133 "domain::tag"
134 ],
135 "type": "tag"
136 },
137 {
138 "params": [
139 "null"
140 ],
141 "type": "fill"
142 }
143 ],
144 "measurement": "samba_auth",
145 "orderByTime": "ASC",
146 "policy": "default",
147 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^user/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
148 "rawQuery": false,
149 "resultFormat": "time_series",
150 "select": [
151 [
152 {
153 "params": [
154 "client_account"
155 ],
156 "type": "field"
157 },
158 {
159 "params": [],
160 "type": "count"
161 }
162 ]
163 ],
164 "tags": [
165 {
166 "key": "status::tag",
167 "operator": "=",
168 "value": "NT_STATUS_OK"
169 },
170 {
171 "condition": "AND",
172 "key": "account::tag",
173 "operator": "=~",
174 "value": "/^user/"
175 },
176 {
177 "condition": "OR",
178 "key": "account::tag",
179 "operator": "=~",
180 "value": "/^loadtest/"
181 }
182 ]
183 },
184 "labels": {
185 "grafana.app/export-label": "influxdb-1"
186 }
187 },
188 "refId": "B",
189 "hidden": false
190 }
191 }
192 ],
193 "transformations": [],
194 "queryOptions": {}
195 }
196 },
197 "vizConfig": {
198 "kind": "VizConfig",
199 "group": "timeseries",
200 "version": "13.0.1+security-01",
201 "spec": {
202 "options": {
203 "annotations": {
204 "clustering": -1,
205 "multiLane": false
206 },
207 "legend": {
208 "calcs": [],
209 "displayMode": "list",
210 "placement": "bottom",
211 "showLegend": true
212 },
213 "tooltip": {
214 "hideZeros": false,
215 "mode": "single",
216 "sort": "none"
217 }
218 },
219 "fieldConfig": {
220 "defaults": {
221 "thresholds": {
222 "mode": "absolute",
223 "steps": [
224 {
225 "value": 0,
226 "color": "green"
227 },
228 {
229 "value": 80,
230 "color": "red"
231 }
232 ]
233 },
234 "color": {
235 "mode": "palette-classic"
236 },
237 "custom": {
238 "axisBorderShow": false,
239 "axisCenteredZero": false,
240 "axisColorMode": "text",
241 "axisLabel": "",
242 "axisPlacement": "auto",
243 "barAlignment": 0,
244 "barWidthFactor": 0.6,
245 "drawStyle": "line",
246 "fillOpacity": 10,
247 "gradientMode": "none",
248 "hideFrom": {
249 "legend": false,
250 "tooltip": false,
251 "viz": false
252 },
253 "insertNulls": false,
254 "lineInterpolation": "smooth",
255 "lineWidth": 1,
256 "pointSize": 5,
257 "scaleDistribution": {
258 "type": "linear"
259 },
260 "showPoints": "auto",
261 "showValues": false,
262 "spanNulls": false,
263 "stacking": {
264 "group": "A",
265 "mode": "none"
266 },
267 "thresholdsStyle": {
268 "mode": "off"
269 }
270 }
271 },
272 "overrides": []
273 }
274 }
275 }
276 }
277 },
278 "panel-10": {
279 "kind": "Panel",
280 "spec": {
281 "id": 10,
282 "title": "Samba: подключённых клиентов",
283 "description": "История числа подключённых SMB-клиентов (samba_clients.count).",
284 "links": [],
285 "data": {
286 "kind": "QueryGroup",
287 "spec": {
288 "queries": [
289 {
290 "kind": "PanelQuery",
291 "spec": {
292 "query": {
293 "kind": "DataQuery",
294 "group": "influxdb",
295 "version": "v0",
296 "spec": {
297 "alias": "clients",
298 "groupBy": [
299 {
300 "params": [
301 "$__interval"
302 ],
303 "type": "time"
304 },
305 {
306 "params": [
307 "null"
308 ],
309 "type": "fill"
310 }
311 ],
312 "measurement": "samba_clients",
313 "orderByTime": "ASC",
314 "policy": "default",
315 "query": "SELECT last(\"count\") FROM \"samba_clients\" WHERE $timeFilter GROUP BY time($__interval) fill(null)",
316 "rawQuery": false,
317 "resultFormat": "time_series",
318 "select": [
319 [
320 {
321 "params": [
322 "count"
323 ],
324 "type": "field"
325 },
326 {
327 "params": [],
328 "type": "last"
329 }
330 ]
331 ],
332 "tags": []
333 },
334 "labels": {
335 "grafana.app/export-label": "influxdb-1"
336 }
337 },
338 "refId": "A",
339 "hidden": false
340 }
341 }
342 ],
343 "transformations": [],
344 "queryOptions": {}
345 }
346 },
347 "vizConfig": {
348 "kind": "VizConfig",
349 "group": "timeseries",
350 "version": "13.0.1+security-01",
351 "spec": {
352 "options": {
353 "annotations": {
354 "clustering": -1,
355 "multiLane": false
356 },
357 "legend": {
358 "calcs": [],
359 "displayMode": "list",
360 "placement": "bottom",
361 "showLegend": true
362 },
363 "tooltip": {
364 "hideZeros": false,
365 "mode": "single",
366 "sort": "none"
367 }
368 },
369 "fieldConfig": {
370 "defaults": {
371 "unit": "none",
372 "thresholds": {
373 "mode": "absolute",
374 "steps": [
375 {
376 "value": 0,
377 "color": "green"
378 }
379 ]
380 },
381 "color": {
382 "mode": "palette-classic"
383 },
384 "custom": {
385 "axisBorderShow": false,
386 "axisCenteredZero": false,
387 "axisColorMode": "text",
388 "axisLabel": "",
389 "axisPlacement": "auto",
390 "barAlignment": 0,
391 "barWidthFactor": 0.6,
392 "drawStyle": "line",
393 "fillOpacity": 15,
394 "gradientMode": "none",
395 "hideFrom": {
396 "legend": false,
397 "tooltip": false,
398 "viz": false
399 },
400 "insertNulls": false,
401 "lineInterpolation": "stepAfter",
402 "lineWidth": 2,
403 "pointSize": 5,
404 "scaleDistribution": {
405 "type": "linear"
406 },
407 "showPoints": "auto",
408 "showValues": false,
409 "spanNulls": false,
410 "stacking": {
411 "group": "A",
412 "mode": "none"
413 },
414 "thresholdsStyle": {
415 "mode": "off"
416 }
417 }
418 },
419 "overrides": []
420 }
421 }
422 }
423 }
424 },
425 "panel-11": {
426 "kind": "Panel",
427 "spec": {
428 "id": 11,
429 "title": "Authentifications",
430 "description": "Успешные входы в домен (samba_auth): машинные и пользовательские, разбивка по домену.",
431 "links": [],
432 "data": {
433 "kind": "QueryGroup",
434 "spec": {
435 "queries": [
436 {
437 "kind": "PanelQuery",
438 "spec": {
439 "query": {
440 "kind": "DataQuery",
441 "group": "influxdb",
442 "version": "v0",
443 "spec": {
444 "alias": "machine_login_5m",
445 "groupBy": [
446 {
447 "params": [
448 "5m"
449 ],
450 "type": "time"
451 },
452 {
453 "params": [
454 "domain::tag"
455 ],
456 "type": "tag"
457 },
458 {
459 "params": [
460 "null"
461 ],
462 "type": "fill"
463 }
464 ],
465 "measurement": "samba_auth",
466 "orderByTime": "ASC",
467 "policy": "default",
468 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
469 "rawQuery": false,
470 "resultFormat": "time_series",
471 "select": [
472 [
473 {
474 "params": [
475 "client_account"
476 ],
477 "type": "field"
478 },
479 {
480 "params": [],
481 "type": "count"
482 }
483 ]
484 ],
485 "tags": [
486 {
487 "key": "status::tag",
488 "operator": "=",
489 "value": "NT_STATUS_OK"
490 },
491 {
492 "condition": "AND",
493 "key": "account::tag",
494 "operator": "=~",
495 "value": "/^MACHINE/"
496 }
497 ]
498 },
499 "labels": {
500 "grafana.app/export-label": "influxdb-1"
501 }
502 },
503 "refId": "A",
504 "hidden": false
505 }
506 },
507 {
508 "kind": "PanelQuery",
509 "spec": {
510 "query": {
511 "kind": "DataQuery",
512 "group": "influxdb",
513 "version": "v0",
514 "spec": {
515 "alias": "user_login_5m",
516 "groupBy": [
517 {
518 "params": [
519 "5m"
520 ],
521 "type": "time"
522 },
523 {
524 "params": [
525 "domain::tag"
526 ],
527 "type": "tag"
528 },
529 {
530 "params": [
531 "null"
532 ],
533 "type": "fill"
534 }
535 ],
536 "measurement": "samba_auth",
537 "orderByTime": "ASC",
538 "policy": "default",
539 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^user/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
540 "rawQuery": false,
541 "resultFormat": "time_series",
542 "select": [
543 [
544 {
545 "params": [
546 "client_account"
547 ],
548 "type": "field"
549 },
550 {
551 "params": [],
552 "type": "count"
553 }
554 ]
555 ],
556 "tags": [
557 {
558 "key": "status::tag",
559 "operator": "=",
560 "value": "NT_STATUS_OK"
561 },
562 {
563 "condition": "AND",
564 "key": "account::tag",
565 "operator": "=~",
566 "value": "/^user/"
567 },
568 {
569 "condition": "OR",
570 "key": "account::tag",
571 "operator": "=~",
572 "value": "/^loadtest/"
573 }
574 ]
575 },
576 "labels": {
577 "grafana.app/export-label": "influxdb-1"
578 }
579 },
580 "refId": "B",
581 "hidden": false
582 }
583 }
584 ],
585 "transformations": [],
586 "queryOptions": {}
587 }
588 },
589 "vizConfig": {
590 "kind": "VizConfig",
591 "group": "stat",
592 "version": "13.0.1+security-01",
593 "spec": {
594 "options": {
595 "colorMode": "value",
596 "graphMode": "area",
597 "justifyMode": "auto",
598 "orientation": "auto",
599 "percentChangeColorMode": "standard",
600 "reduceOptions": {
601 "calcs": [
602 "sum"
603 ],
604 "fields": "",
605 "values": false
606 },
607 "showPercentChange": false,
608 "textMode": "auto",
609 "wideLayout": true
610 },
611 "fieldConfig": {
612 "defaults": {
613 "thresholds": {
614 "mode": "absolute",
615 "steps": [
616 {
617 "value": 0,
618 "color": "green"
619 },
620 {
621 "value": 80,
622 "color": "red"
623 }
624 ]
625 },
626 "color": {
627 "mode": "palette-classic"
628 }
629 },
630 "overrides": []
631 }
632 }
633 }
634 }
635 },
636 "panel-12": {
637 "kind": "Panel",
638 "spec": {
639 "id": 12,
640 "title": "vfs_fsync ops",
641 "description": "Метрика за каждую секунду: Каждый блок или строчка — это отчет за 1 секунду времени (так как в скрипте задан интервал interval:s:1).Имя функции (vfs_fsync_range): Ядро Linux обрабатывает запросы к файлу .ldb именно через системный вызов vfs_fsync_range. Это означает, что приложение не просто сохраняет весь файл целиком, а пытается очень часто и точечно сбрасывать из оперативной памяти на диск конкретные измененные участки (диапазоны байт).",
642 "links": [],
643 "data": {
644 "kind": "QueryGroup",
645 "spec": {
646 "queries": [
647 {
648 "kind": "PanelQuery",
649 "spec": {
650 "query": {
651 "kind": "DataQuery",
652 "group": "influxdb",
653 "version": "v0",
654 "spec": {
655 "alias": "machine_login",
656 "groupBy": [
657 {
658 "params": [
659 "$interval"
660 ],
661 "type": "time"
662 },
663 {
664 "params": [
665 "null"
666 ],
667 "type": "fill"
668 }
669 ],
670 "measurement": "samba_sync_ops",
671 "orderByTime": "ASC",
672 "policy": "default",
673 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
674 "rawQuery": false,
675 "resultFormat": "time_series",
676 "select": [
677 [
678 {
679 "params": [
680 "count"
681 ],
682 "type": "field"
683 },
684 {
685 "params": [],
686 "type": "sum"
687 }
688 ]
689 ],
690 "tags": []
691 },
692 "labels": {
693 "grafana.app/export-label": "influxdb-1"
694 }
695 },
696 "refId": "A",
697 "hidden": false
698 }
699 }
700 ],
701 "transformations": [],
702 "queryOptions": {}
703 }
704 },
705 "vizConfig": {
706 "kind": "VizConfig",
707 "group": "timeseries",
708 "version": "13.0.1+security-01",
709 "spec": {
710 "options": {
711 "annotations": {
712 "clustering": -1,
713 "multiLane": false
714 },
715 "legend": {
716 "calcs": [],
717 "displayMode": "list",
718 "placement": "bottom",
719 "showLegend": true
720 },
721 "tooltip": {
722 "hideZeros": false,
723 "mode": "single",
724 "sort": "none"
725 }
726 },
727 "fieldConfig": {
728 "defaults": {
729 "thresholds": {
730 "mode": "absolute",
731 "steps": [
732 {
733 "value": 0,
734 "color": "green"
735 },
736 {
737 "value": 80,
738 "color": "red"
739 }
740 ]
741 },
742 "color": {
743 "mode": "palette-classic"
744 },
745 "custom": {
746 "axisBorderShow": false,
747 "axisCenteredZero": false,
748 "axisColorMode": "text",
749 "axisLabel": "",
750 "axisPlacement": "auto",
751 "barAlignment": 0,
752 "barWidthFactor": 0.6,
753 "drawStyle": "line",
754 "fillOpacity": 10,
755 "gradientMode": "none",
756 "hideFrom": {
757 "legend": false,
758 "tooltip": false,
759 "viz": false
760 },
761 "insertNulls": false,
762 "lineInterpolation": "smooth",
763 "lineWidth": 1,
764 "pointSize": 5,
765 "scaleDistribution": {
766 "type": "linear"
767 },
768 "showPoints": "auto",
769 "showValues": false,
770 "spanNulls": false,
771 "stacking": {
772 "group": "A",
773 "mode": "none"
774 },
775 "thresholdsStyle": {
776 "mode": "off"
777 }
778 }
779 },
780 "overrides": []
781 }
782 }
783 }
784 }
785 },
786 "panel-13": {
787 "kind": "Panel",
788 "spec": {
789 "id": 13,
790 "title": "ldb ops",
791 "description": "* Режим чистого чтения [ R ]: Метрика ldb_search_events растет (пользователи входят \n в сеть), а syscall_fsync_events держится около нуля. База в RAM работает идеально.\n* Режим записи [ W ] / [ CW ]: Метрика syscall_fsync_events начинает расти синхронно \n с действиями пользователей. Это означает, что изменения фиксируются на диск. \n Если график упирается в производительность ваших дисков, время ответа Samba \n будет увеличиваться (растут задержки аутентификации).\n\nO=Open (Открытие файла для записи/изменения)\nRO=Read Only (Открытие файла строго для чтения)\nR=Read (Чтение данных из файла)\nW=Write (Запись измененных данных в кэш памяти)\nCW=Commit/Close Write (Фиксация транзакции и принудительный сброс на диск)",
792 "links": [],
793 "data": {
794 "kind": "QueryGroup",
795 "spec": {
796 "queries": [
797 {
798 "kind": "PanelQuery",
799 "spec": {
800 "query": {
801 "kind": "DataQuery",
802 "group": "influxdb",
803 "version": "v0",
804 "spec": {
805 "groupBy": [
806 {
807 "params": [
808 "$interval"
809 ],
810 "type": "time"
811 },
812 {
813 "params": [
814 "prog::tag"
815 ],
816 "type": "tag"
817 },
818 {
819 "params": [
820 "action::tag"
821 ],
822 "type": "tag"
823 },
824 {
825 "params": [
826 "null"
827 ],
828 "type": "fill"
829 }
830 ],
831 "measurement": "samba_file_access",
832 "orderByTime": "ASC",
833 "policy": "default",
834 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
835 "rawQuery": false,
836 "resultFormat": "time_series",
837 "select": [
838 [
839 {
840 "params": [
841 "path"
842 ],
843 "type": "field"
844 },
845 {
846 "params": [],
847 "type": "count"
848 }
849 ]
850 ],
851 "tags": []
852 },
853 "labels": {
854 "grafana.app/export-label": "influxdb-1"
855 }
856 },
857 "refId": "A",
858 "hidden": false
859 }
860 }
861 ],
862 "transformations": [],
863 "queryOptions": {}
864 }
865 },
866 "vizConfig": {
867 "kind": "VizConfig",
868 "group": "timeseries",
869 "version": "13.0.1+security-01",
870 "spec": {
871 "options": {
872 "annotations": {
873 "clustering": -1,
874 "multiLane": false
875 },
876 "legend": {
877 "calcs": [],
878 "displayMode": "list",
879 "placement": "bottom",
880 "showLegend": true
881 },
882 "tooltip": {
883 "hideZeros": false,
884 "mode": "single",
885 "sort": "none"
886 }
887 },
888 "fieldConfig": {
889 "defaults": {
890 "thresholds": {
891 "mode": "absolute",
892 "steps": [
893 {
894 "value": 0,
895 "color": "green"
896 },
897 {
898 "value": 80,
899 "color": "red"
900 }
901 ]
902 },
903 "color": {
904 "mode": "palette-classic"
905 },
906 "custom": {
907 "axisBorderShow": false,
908 "axisCenteredZero": false,
909 "axisColorMode": "text",
910 "axisLabel": "",
911 "axisPlacement": "auto",
912 "barAlignment": 0,
913 "barWidthFactor": 0.6,
914 "drawStyle": "line",
915 "fillOpacity": 10,
916 "gradientMode": "none",
917 "hideFrom": {
918 "legend": false,
919 "tooltip": false,
920 "viz": false
921 },
922 "insertNulls": false,
923 "lineInterpolation": "smooth",
924 "lineWidth": 1,
925 "pointSize": 5,
926 "scaleDistribution": {
927 "type": "linear"
928 },
929 "showPoints": "auto",
930 "showValues": false,
931 "spanNulls": false,
932 "stacking": {
933 "group": "A",
934 "mode": "none"
935 },
936 "thresholdsStyle": {
937 "mode": "off"
938 }
939 }
940 },
941 "overrides": []
942 }
943 }
944 }
945 }
946 },
947 "panel-14": {
948 "kind": "Panel",
949 "spec": {
950 "id": 14,
951 "title": "vmstat",
952 "description": "si=Swap In, Объем данных в КБ/сек, считываемый из свопа обратно в ОЗУ. Высокое значение = жесткие тормоза.\nso=Swap Out, Объем данных в КБ/сек, сбрасываемый из ОЗУ в своп на диск из-за нехватки памяти.\n\nbi=Blocks In, Количество блоков, считанных с диска в КБ/сек. Показывает активность чтения.\nbo=Blocks Out, Количество блоков, записанных на диск в КБ/сек. Связано с операциями W, CW и fsync.\n\nin=Interrupts, Количество аппаратных прерываний в секунду, включая системные часы.\n\nid=Idle Time, Процент времени, когда CPU ничем не занят. Если около 0 — процессор загружен полностью.",
953 "links": [],
954 "data": {
955 "kind": "QueryGroup",
956 "spec": {
957 "queries": [
958 {
959 "kind": "PanelQuery",
960 "spec": {
961 "query": {
962 "kind": "DataQuery",
963 "group": "influxdb",
964 "version": "v0",
965 "spec": {
966 "alias": "si",
967 "groupBy": [
968 {
969 "params": [
970 "$interval"
971 ],
972 "type": "time"
973 },
974 {
975 "params": [
976 "null"
977 ],
978 "type": "fill"
979 }
980 ],
981 "measurement": "host_vmstat",
982 "orderByTime": "ASC",
983 "policy": "default",
984 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
985 "rawQuery": false,
986 "resultFormat": "time_series",
987 "select": [
988 [
989 {
990 "params": [
991 "si"
992 ],
993 "type": "field"
994 },
995 {
996 "params": [],
997 "type": "sum"
998 }
999 ]
1000 ],
1001 "tags": []
1002 },
1003 "labels": {
1004 "grafana.app/export-label": "influxdb-1"
1005 }
1006 },
1007 "refId": "A",
1008 "hidden": false
1009 }
1010 },
1011 {
1012 "kind": "PanelQuery",
1013 "spec": {
1014 "query": {
1015 "kind": "DataQuery",
1016 "group": "influxdb",
1017 "version": "v0",
1018 "spec": {
1019 "alias": "so",
1020 "groupBy": [
1021 {
1022 "params": [
1023 "$interval"
1024 ],
1025 "type": "time"
1026 },
1027 {
1028 "params": [
1029 "null"
1030 ],
1031 "type": "fill"
1032 }
1033 ],
1034 "measurement": "host_vmstat",
1035 "orderByTime": "ASC",
1036 "policy": "default",
1037 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
1038 "rawQuery": false,
1039 "resultFormat": "time_series",
1040 "select": [
1041 [
1042 {
1043 "params": [
1044 "so"
1045 ],
1046 "type": "field"
1047 },
1048 {
1049 "params": [],
1050 "type": "sum"
1051 }
1052 ]
1053 ],
1054 "tags": []
1055 },
1056 "labels": {
1057 "grafana.app/export-label": "influxdb-1"
1058 }
1059 },
1060 "refId": "E",
1061 "hidden": false
1062 }
1063 },
1064 {
1065 "kind": "PanelQuery",
1066 "spec": {
1067 "query": {
1068 "kind": "DataQuery",
1069 "group": "influxdb",
1070 "version": "v0",
1071 "spec": {
1072 "alias": "bi",
1073 "groupBy": [
1074 {
1075 "params": [
1076 "$interval"
1077 ],
1078 "type": "time"
1079 },
1080 {
1081 "params": [
1082 "null"
1083 ],
1084 "type": "fill"
1085 }
1086 ],
1087 "measurement": "host_vmstat",
1088 "orderByTime": "ASC",
1089 "policy": "default",
1090 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
1091 "rawQuery": false,
1092 "resultFormat": "time_series",
1093 "select": [
1094 [
1095 {
1096 "params": [
1097 "bi"
1098 ],
1099 "type": "field"
1100 },
1101 {
1102 "params": [],
1103 "type": "sum"
1104 }
1105 ]
1106 ],
1107 "tags": []
1108 },
1109 "labels": {
1110 "grafana.app/export-label": "influxdb-1"
1111 }
1112 },
1113 "refId": "B",
1114 "hidden": false
1115 }
1116 },
1117 {
1118 "kind": "PanelQuery",
1119 "spec": {
1120 "query": {
1121 "kind": "DataQuery",
1122 "group": "influxdb",
1123 "version": "v0",
1124 "spec": {
1125 "alias": "bo",
1126 "groupBy": [
1127 {
1128 "params": [
1129 "$interval"
1130 ],
1131 "type": "time"
1132 },
1133 {
1134 "params": [
1135 "null"
1136 ],
1137 "type": "fill"
1138 }
1139 ],
1140 "measurement": "host_vmstat",
1141 "orderByTime": "ASC",
1142 "policy": "default",
1143 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
1144 "rawQuery": false,
1145 "resultFormat": "time_series",
1146 "select": [
1147 [
1148 {
1149 "params": [
1150 "bo"
1151 ],
1152 "type": "field"
1153 },
1154 {
1155 "params": [],
1156 "type": "sum"
1157 }
1158 ]
1159 ],
1160 "tags": []
1161 },
1162 "labels": {
1163 "grafana.app/export-label": "influxdb-1"
1164 }
1165 },
1166 "refId": "F",
1167 "hidden": false
1168 }
1169 },
1170 {
1171 "kind": "PanelQuery",
1172 "spec": {
1173 "query": {
1174 "kind": "DataQuery",
1175 "group": "influxdb",
1176 "version": "v0",
1177 "spec": {
1178 "alias": "in",
1179 "groupBy": [
1180 {
1181 "params": [
1182 "$interval"
1183 ],
1184 "type": "time"
1185 },
1186 {
1187 "params": [
1188 "null"
1189 ],
1190 "type": "fill"
1191 }
1192 ],
1193 "measurement": "host_vmstat",
1194 "orderByTime": "ASC",
1195 "policy": "default",
1196 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
1197 "rawQuery": false,
1198 "resultFormat": "time_series",
1199 "select": [
1200 [
1201 {
1202 "params": [
1203 "intr"
1204 ],
1205 "type": "field"
1206 },
1207 {
1208 "params": [],
1209 "type": "sum"
1210 }
1211 ]
1212 ],
1213 "tags": []
1214 },
1215 "labels": {
1216 "grafana.app/export-label": "influxdb-1"
1217 }
1218 },
1219 "refId": "C",
1220 "hidden": false
1221 }
1222 },
1223 {
1224 "kind": "PanelQuery",
1225 "spec": {
1226 "query": {
1227 "kind": "DataQuery",
1228 "group": "influxdb",
1229 "version": "v0",
1230 "spec": {
1231 "alias": "id",
1232 "groupBy": [
1233 {
1234 "params": [
1235 "$interval"
1236 ],
1237 "type": "time"
1238 },
1239 {
1240 "params": [
1241 "null"
1242 ],
1243 "type": "fill"
1244 }
1245 ],
1246 "measurement": "host_vmstat",
1247 "orderByTime": "ASC",
1248 "policy": "default",
1249 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
1250 "rawQuery": false,
1251 "resultFormat": "time_series",
1252 "select": [
1253 [
1254 {
1255 "params": [
1256 "idle"
1257 ],
1258 "type": "field"
1259 },
1260 {
1261 "params": [],
1262 "type": "sum"
1263 }
1264 ]
1265 ],
1266 "tags": []
1267 },
1268 "labels": {
1269 "grafana.app/export-label": "influxdb-1"
1270 }
1271 },
1272 "refId": "D",
1273 "hidden": false
1274 }
1275 }
1276 ],
1277 "transformations": [],
1278 "queryOptions": {}
1279 }
1280 },
1281 "vizConfig": {
1282 "kind": "VizConfig",
1283 "group": "timeseries",
1284 "version": "13.0.1+security-01",
1285 "spec": {
1286 "options": {
1287 "annotations": {
1288 "clustering": -1,
1289 "multiLane": false
1290 },
1291 "legend": {
1292 "calcs": [],
1293 "displayMode": "list",
1294 "placement": "bottom",
1295 "showLegend": true
1296 },
1297 "tooltip": {
1298 "hideZeros": false,
1299 "mode": "single",
1300 "sort": "none"
1301 }
1302 },
1303 "fieldConfig": {
1304 "defaults": {
1305 "thresholds": {
1306 "mode": "absolute",
1307 "steps": [
1308 {
1309 "value": 0,
1310 "color": "green"
1311 },
1312 {
1313 "value": 80,
1314 "color": "red"
1315 }
1316 ]
1317 },
1318 "color": {
1319 "mode": "palette-classic"
1320 },
1321 "custom": {
1322 "axisBorderShow": false,
1323 "axisCenteredZero": false,
1324 "axisColorMode": "text",
1325 "axisLabel": "",
1326 "axisPlacement": "auto",
1327 "barAlignment": 0,
1328 "barWidthFactor": 0.6,
1329 "drawStyle": "line",
1330 "fillOpacity": 10,
1331 "gradientMode": "none",
1332 "hideFrom": {
1333 "legend": false,
1334 "tooltip": false,
1335 "viz": false
1336 },
1337 "insertNulls": false,
1338 "lineInterpolation": "smooth",
1339 "lineWidth": 1,
1340 "pointSize": 5,
1341 "scaleDistribution": {
1342 "type": "linear"
1343 },
1344 "showPoints": "auto",
1345 "showValues": false,
1346 "spanNulls": false,
1347 "stacking": {
1348 "group": "A",
1349 "mode": "none"
1350 },
1351 "thresholdsStyle": {
1352 "mode": "off"
1353 }
1354 }
1355 },
1356 "overrides": [
1357 {
1358 "__systemRef": "hideSeriesFrom",
1359 "matcher": {
1360 "id": "byNames",
1361 "options": {
1362 "mode": "exclude",
1363 "names": [
1364 "bo"
1365 ],
1366 "prefix": "All except:",
1367 "readOnly": true
1368 }
1369 },
1370 "properties": [
1371 {
1372 "id": "custom.hideFrom",
1373 "value": {
1374 "legend": false,
1375 "tooltip": true,
1376 "viz": true
1377 }
1378 }
1379 ]
1380 }
1381 ]
1382 }
1383 }
1384 }
1385 }
1386 },
1387 "panel-15": {
1388 "kind": "Panel",
1389 "spec": {
1390 "id": 15,
1391 "title": "pidstat",
1392 "description": "minflt/s = Скорость работы с ОЗУ. Сколько раз в секунду процесс запрашивал данные, \n которые ядро Linux успешно выдало из оперативной памяти (из кэша).\n Высокое значение — это норма при активных вычислениях или LDAP-запросах.\n\nmajflt/s = Скорость просадки на диск. Сколько раз в секунду процесс лез за данными \n на физический диск (или в SWAP), потому что их не оказалость в ОЗУ.\n В идеале должно быть равно 0. Если число растет — сервер сильно тормозит.\n\n%MEM = Процент ОЗУ. Доля оперативной памяти сервера, которую съел этот PID.",
1393 "links": [],
1394 "data": {
1395 "kind": "QueryGroup",
1396 "spec": {
1397 "queries": [
1398 {
1399 "kind": "PanelQuery",
1400 "spec": {
1401 "query": {
1402 "kind": "DataQuery",
1403 "group": "influxdb",
1404 "version": "v0",
1405 "spec": {
1406 "alias": "minfit",
1407 "groupBy": [
1408 {
1409 "params": [
1410 "$interval"
1411 ],
1412 "type": "time"
1413 },
1414 {
1415 "params": [
1416 "comm::tag"
1417 ],
1418 "type": "tag"
1419 },
1420 {
1421 "params": [
1422 "null"
1423 ],
1424 "type": "fill"
1425 }
1426 ],
1427 "measurement": "samba_pidstat",
1428 "orderByTime": "ASC",
1429 "policy": "default",
1430 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
1431 "rawQuery": false,
1432 "resultFormat": "time_series",
1433 "select": [
1434 [
1435 {
1436 "params": [
1437 "minflt"
1438 ],
1439 "type": "field"
1440 },
1441 {
1442 "params": [],
1443 "type": "mean"
1444 }
1445 ]
1446 ],
1447 "tags": []
1448 },
1449 "labels": {
1450 "grafana.app/export-label": "influxdb-1"
1451 }
1452 },
1453 "refId": "A",
1454 "hidden": false
1455 }
1456 },
1457 {
1458 "kind": "PanelQuery",
1459 "spec": {
1460 "query": {
1461 "kind": "DataQuery",
1462 "group": "influxdb",
1463 "version": "v0",
1464 "spec": {
1465 "alias": "majfit",
1466 "groupBy": [
1467 {
1468 "params": [
1469 "$interval"
1470 ],
1471 "type": "time"
1472 },
1473 {
1474 "params": [
1475 "comm::tag"
1476 ],
1477 "type": "tag"
1478 },
1479 {
1480 "params": [
1481 "null"
1482 ],
1483 "type": "fill"
1484 }
1485 ],
1486 "measurement": "samba_pidstat",
1487 "orderByTime": "ASC",
1488 "policy": "default",
1489 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
1490 "rawQuery": false,
1491 "resultFormat": "time_series",
1492 "select": [
1493 [
1494 {
1495 "params": [
1496 "majflt"
1497 ],
1498 "type": "field"
1499 },
1500 {
1501 "params": [],
1502 "type": "median"
1503 }
1504 ]
1505 ],
1506 "tags": []
1507 },
1508 "labels": {
1509 "grafana.app/export-label": "influxdb-1"
1510 }
1511 },
1512 "refId": "B",
1513 "hidden": false
1514 }
1515 },
1516 {
1517 "kind": "PanelQuery",
1518 "spec": {
1519 "query": {
1520 "kind": "DataQuery",
1521 "group": "influxdb",
1522 "version": "v0",
1523 "spec": {
1524 "alias": "MEM",
1525 "groupBy": [
1526 {
1527 "params": [
1528 "$interval"
1529 ],
1530 "type": "time"
1531 },
1532 {
1533 "params": [
1534 "comm::tag"
1535 ],
1536 "type": "tag"
1537 },
1538 {
1539 "params": [
1540 "null"
1541 ],
1542 "type": "fill"
1543 }
1544 ],
1545 "measurement": "samba_pidstat",
1546 "orderByTime": "ASC",
1547 "policy": "default",
1548 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
1549 "rawQuery": false,
1550 "resultFormat": "time_series",
1551 "select": [
1552 [
1553 {
1554 "params": [
1555 "mem"
1556 ],
1557 "type": "field"
1558 },
1559 {
1560 "params": [],
1561 "type": "median"
1562 }
1563 ]
1564 ],
1565 "tags": []
1566 },
1567 "labels": {
1568 "grafana.app/export-label": "influxdb-1"
1569 }
1570 },
1571 "refId": "C",
1572 "hidden": false
1573 }
1574 }
1575 ],
1576 "transformations": [],
1577 "queryOptions": {}
1578 }
1579 },
1580 "vizConfig": {
1581 "kind": "VizConfig",
1582 "group": "timeseries",
1583 "version": "13.0.1+security-01",
1584 "spec": {
1585 "options": {
1586 "annotations": {
1587 "clustering": -1,
1588 "multiLane": false
1589 },
1590 "legend": {
1591 "calcs": [],
1592 "displayMode": "list",
1593 "placement": "bottom",
1594 "showLegend": true
1595 },
1596 "tooltip": {
1597 "hideZeros": false,
1598 "mode": "single",
1599 "sort": "none"
1600 }
1601 },
1602 "fieldConfig": {
1603 "defaults": {
1604 "thresholds": {
1605 "mode": "absolute",
1606 "steps": [
1607 {
1608 "value": 0,
1609 "color": "green"
1610 },
1611 {
1612 "value": 80,
1613 "color": "red"
1614 }
1615 ]
1616 },
1617 "color": {
1618 "mode": "palette-classic"
1619 },
1620 "custom": {
1621 "axisBorderShow": false,
1622 "axisCenteredZero": false,
1623 "axisColorMode": "text",
1624 "axisLabel": "",
1625 "axisPlacement": "auto",
1626 "barAlignment": 0,
1627 "barWidthFactor": 0.6,
1628 "drawStyle": "line",
1629 "fillOpacity": 10,
1630 "gradientMode": "none",
1631 "hideFrom": {
1632 "legend": false,
1633 "tooltip": false,
1634 "viz": false
1635 },
1636 "insertNulls": false,
1637 "lineInterpolation": "smooth",
1638 "lineWidth": 1,
1639 "pointSize": 5,
1640 "scaleDistribution": {
1641 "type": "linear"
1642 },
1643 "showPoints": "auto",
1644 "showValues": false,
1645 "spanNulls": false,
1646 "stacking": {
1647 "group": "A",
1648 "mode": "none"
1649 },
1650 "thresholdsStyle": {
1651 "mode": "off"
1652 }
1653 }
1654 },
1655 "overrides": [
1656 {
1657 "__systemRef": "hideSeriesFrom",
1658 "matcher": {
1659 "id": "byNames",
1660 "options": {
1661 "mode": "exclude",
1662 "names": [
1663 "MEM"
1664 ],
1665 "prefix": "All except:",
1666 "readOnly": true
1667 }
1668 },
1669 "properties": [
1670 {
1671 "id": "custom.hideFrom",
1672 "value": {
1673 "legend": false,
1674 "tooltip": true,
1675 "viz": true
1676 }
1677 }
1678 ]
1679 }
1680 ]
1681 }
1682 }
1683 }
1684 }
1685 },
1686 "panel-16": {
1687 "kind": "Panel",
1688 "spec": {
1689 "id": 16,
1690 "title": "ldb ops2",
1691 "description": "* Режим чистого чтения [ R ]: Метрика ldb_search_events растет (пользователи входят \n в сеть), а syscall_fsync_events держится около нуля. База в RAM работает идеально.\n* Режим записи [ W ] / [ CW ]: Метрика syscall_fsync_events начинает расти синхронно \n с действиями пользователей. Это означает, что изменения фиксируются на диск. \n Если график упирается в производительность ваших дисков, время ответа Samba \n будет увеличиваться (растут задержки аутентификации).\n\nO=Open (Открытие файла для записи/изменения)\nRO=Read Only (Открытие файла строго для чтения)\nR=Read (Чтение данных из файла)\nW=Write (Запись измененных данных в кэш памяти)\nCW=Commit/Close Write (Фиксация транзакции и принудительный сброс на диск)",
1692 "links": [],
1693 "data": {
1694 "kind": "QueryGroup",
1695 "spec": {
1696 "queries": [
1697 {
1698 "kind": "PanelQuery",
1699 "spec": {
1700 "query": {
1701 "kind": "DataQuery",
1702 "group": "influxdb",
1703 "version": "v0",
1704 "spec": {
1705 "groupBy": [
1706 {
1707 "params": [
1708 "$interval"
1709 ],
1710 "type": "time"
1711 },
1712 {
1713 "params": [
1714 "action::tag"
1715 ],
1716 "type": "tag"
1717 },
1718 {
1719 "params": [
1720 "null"
1721 ],
1722 "type": "fill"
1723 }
1724 ],
1725 "measurement": "samba_file_access",
1726 "orderByTime": "ASC",
1727 "policy": "default",
1728 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
1729 "rawQuery": false,
1730 "resultFormat": "time_series",
1731 "select": [
1732 [
1733 {
1734 "params": [
1735 "path"
1736 ],
1737 "type": "field"
1738 },
1739 {
1740 "params": [],
1741 "type": "count"
1742 }
1743 ]
1744 ],
1745 "tags": []
1746 },
1747 "labels": {
1748 "grafana.app/export-label": "influxdb-1"
1749 }
1750 },
1751 "refId": "A",
1752 "hidden": false
1753 }
1754 }
1755 ],
1756 "transformations": [],
1757 "queryOptions": {}
1758 }
1759 },
1760 "vizConfig": {
1761 "kind": "VizConfig",
1762 "group": "timeseries",
1763 "version": "13.0.1+security-01",
1764 "spec": {
1765 "options": {
1766 "annotations": {
1767 "clustering": -1,
1768 "multiLane": false
1769 },
1770 "legend": {
1771 "calcs": [],
1772 "displayMode": "list",
1773 "placement": "bottom",
1774 "showLegend": true
1775 },
1776 "tooltip": {
1777 "hideZeros": false,
1778 "mode": "single",
1779 "sort": "none"
1780 }
1781 },
1782 "fieldConfig": {
1783 "defaults": {
1784 "thresholds": {
1785 "mode": "absolute",
1786 "steps": [
1787 {
1788 "value": 0,
1789 "color": "green"
1790 },
1791 {
1792 "value": 80,
1793 "color": "red"
1794 }
1795 ]
1796 },
1797 "color": {
1798 "mode": "palette-classic"
1799 },
1800 "custom": {
1801 "axisBorderShow": false,
1802 "axisCenteredZero": false,
1803 "axisColorMode": "text",
1804 "axisLabel": "",
1805 "axisPlacement": "auto",
1806 "barAlignment": 0,
1807 "barWidthFactor": 0.6,
1808 "drawStyle": "line",
1809 "fillOpacity": 0,
1810 "gradientMode": "none",
1811 "hideFrom": {
1812 "legend": false,
1813 "tooltip": false,
1814 "viz": false
1815 },
1816 "insertNulls": false,
1817 "lineInterpolation": "linear",
1818 "lineWidth": 1,
1819 "pointSize": 5,
1820 "scaleDistribution": {
1821 "type": "linear"
1822 },
1823 "showPoints": "auto",
1824 "showValues": false,
1825 "spanNulls": false,
1826 "stacking": {
1827 "group": "A",
1828 "mode": "none"
1829 },
1830 "thresholdsStyle": {
1831 "mode": "off"
1832 }
1833 }
1834 },
1835 "overrides": []
1836 }
1837 }
1838 }
1839 }
1840 },
1841 "panel-17": {
1842 "kind": "Panel",
1843 "spec": {
1844 "id": 17,
1845 "title": "Iostat",
1846 "description": "* Режим чистого чтения [ R ]: Метрика ldb_search_events растет (пользователи входят \n в сеть), а syscall_fsync_events держится около нуля. База в RAM работает идеально.\n* Режим записи [ W ] / [ CW ]: Метрика syscall_fsync_events начинает расти синхронно \n с действиями пользователей. Это означает, что изменения фиксируются на диск. \n Если график упирается в производительность ваших дисков, время ответа Samba \n будет увеличиваться (растут задержки аутентификации).\n\nO=Open (Открытие файла для записи/изменения)\nRO=Read Only (Открытие файла строго для чтения)\nR=Read (Чтение данных из файла)\nW=Write (Запись измененных данных в кэш памяти)\nCW=Commit/Close Write (Фиксация транзакции и принудительный сброс на диск)",
1847 "links": [],
1848 "data": {
1849 "kind": "QueryGroup",
1850 "spec": {
1851 "queries": [
1852 {
1853 "kind": "PanelQuery",
1854 "spec": {
1855 "query": {
1856 "kind": "DataQuery",
1857 "group": "influxdb",
1858 "version": "v0",
1859 "spec": {
1860 "groupBy": [
1861 {
1862 "params": [
1863 "$interval"
1864 ],
1865 "type": "time"
1866 },
1867 {
1868 "params": [
1869 "action::tag"
1870 ],
1871 "type": "tag"
1872 },
1873 {
1874 "params": [
1875 "null"
1876 ],
1877 "type": "fill"
1878 }
1879 ],
1880 "measurement": "host_iostat",
1881 "orderByTime": "ASC",
1882 "policy": "default",
1883 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
1884 "rawQuery": false,
1885 "resultFormat": "time_series",
1886 "select": [
1887 [
1888 {
1889 "params": [
1890 "path"
1891 ],
1892 "type": "field"
1893 },
1894 {
1895 "params": [],
1896 "type": "count"
1897 }
1898 ]
1899 ],
1900 "tags": []
1901 },
1902 "labels": {
1903 "grafana.app/export-label": "influxdb-1"
1904 }
1905 },
1906 "refId": "A",
1907 "hidden": false
1908 }
1909 }
1910 ],
1911 "transformations": [],
1912 "queryOptions": {}
1913 }
1914 },
1915 "vizConfig": {
1916 "kind": "VizConfig",
1917 "group": "timeseries",
1918 "version": "13.0.1+security-01",
1919 "spec": {
1920 "options": {
1921 "annotations": {
1922 "clustering": -1,
1923 "multiLane": false
1924 },
1925 "legend": {
1926 "calcs": [],
1927 "displayMode": "list",
1928 "placement": "bottom",
1929 "showLegend": true
1930 },
1931 "tooltip": {
1932 "hideZeros": false,
1933 "mode": "single",
1934 "sort": "none"
1935 }
1936 },
1937 "fieldConfig": {
1938 "defaults": {
1939 "thresholds": {
1940 "mode": "absolute",
1941 "steps": [
1942 {
1943 "value": 0,
1944 "color": "green"
1945 },
1946 {
1947 "value": 80,
1948 "color": "red"
1949 }
1950 ]
1951 },
1952 "color": {
1953 "mode": "palette-classic"
1954 },
1955 "custom": {
1956 "axisBorderShow": false,
1957 "axisCenteredZero": false,
1958 "axisColorMode": "text",
1959 "axisLabel": "",
1960 "axisPlacement": "auto",
1961 "barAlignment": 0,
1962 "barWidthFactor": 0.6,
1963 "drawStyle": "line",
1964 "fillOpacity": 0,
1965 "gradientMode": "none",
1966 "hideFrom": {
1967 "legend": false,
1968 "tooltip": false,
1969 "viz": false
1970 },
1971 "insertNulls": false,
1972 "lineInterpolation": "linear",
1973 "lineWidth": 1,
1974 "pointSize": 5,
1975 "scaleDistribution": {
1976 "type": "linear"
1977 },
1978 "showPoints": "auto",
1979 "showValues": false,
1980 "spanNulls": false,
1981 "stacking": {
1982 "group": "A",
1983 "mode": "none"
1984 },
1985 "thresholdsStyle": {
1986 "mode": "off"
1987 }
1988 }
1989 },
1990 "overrides": []
1991 }
1992 }
1993 }
1994 }
1995 },
1996 "panel-2": {
1997 "kind": "Panel",
1998 "spec": {
1999 "id": 2,
2000 "title": "DSDB: изменения по операциям",
2001 "description": "Число изменений объектов каталога (samba_dsdb), разбивка по типу операции.",
2002 "links": [],
2003 "data": {
2004 "kind": "QueryGroup",
2005 "spec": {
2006 "queries": [
2007 {
2008 "kind": "PanelQuery",
2009 "spec": {
2010 "query": {
2011 "kind": "DataQuery",
2012 "group": "influxdb",
2013 "version": "v0",
2014 "spec": {
2015 "groupBy": [],
2016 "measurement": "samba_dsdb",
2017 "orderByTime": "ASC",
2018 "policy": "default",
2019 "query": "SELECT count(\"status_code\") FROM \"samba_dsdb\" WHERE $timeFilter GROUP BY time($interval), \"operation\"::tag fill(null)",
2020 "rawQuery": true,
2021 "resultFormat": "time_series",
2022 "select": [],
2023 "tags": []
2024 },
2025 "labels": {
2026 "grafana.app/export-label": "influxdb-1"
2027 }
2028 },
2029 "refId": "A",
2030 "hidden": false
2031 }
2032 }
2033 ],
2034 "transformations": [],
2035 "queryOptions": {}
2036 }
2037 },
2038 "vizConfig": {
2039 "kind": "VizConfig",
2040 "group": "timeseries",
2041 "version": "13.0.1+security-01",
2042 "spec": {
2043 "options": {
2044 "annotations": {
2045 "clustering": -1,
2046 "multiLane": false
2047 },
2048 "legend": {
2049 "calcs": [],
2050 "displayMode": "list",
2051 "placement": "bottom",
2052 "showLegend": true
2053 },
2054 "tooltip": {
2055 "hideZeros": false,
2056 "mode": "multi",
2057 "sort": "desc"
2058 }
2059 },
2060 "fieldConfig": {
2061 "defaults": {
2062 "thresholds": {
2063 "mode": "absolute",
2064 "steps": [
2065 {
2066 "value": 0,
2067 "color": "green"
2068 },
2069 {
2070 "value": 80,
2071 "color": "red"
2072 }
2073 ]
2074 },
2075 "color": {
2076 "mode": "palette-classic"
2077 },
2078 "custom": {
2079 "axisBorderShow": false,
2080 "axisCenteredZero": false,
2081 "axisColorMode": "text",
2082 "axisLabel": "",
2083 "axisPlacement": "auto",
2084 "barAlignment": 0,
2085 "barWidthFactor": 0.6,
2086 "drawStyle": "bars",
2087 "fillOpacity": 50,
2088 "gradientMode": "none",
2089 "hideFrom": {
2090 "legend": false,
2091 "tooltip": false,
2092 "viz": false
2093 },
2094 "insertNulls": false,
2095 "lineInterpolation": "linear",
2096 "lineWidth": 1,
2097 "pointSize": 5,
2098 "scaleDistribution": {
2099 "type": "linear"
2100 },
2101 "showPoints": "auto",
2102 "showValues": false,
2103 "spanNulls": false,
2104 "stacking": {
2105 "group": "A",
2106 "mode": "normal"
2107 },
2108 "thresholdsStyle": {
2109 "mode": "off"
2110 }
2111 }
2112 },
2113 "overrides": []
2114 }
2115 }
2116 }
2117 }
2118 },
2119 "panel-3": {
2120 "kind": "Panel",
2121 "spec": {
2122 "id": 3,
2123 "title": "DSDB: система vs пользователь",
2124 "description": "Изменения каталога с разбивкой по performedAsSystem (true = выполнено системой).",
2125 "links": [],
2126 "data": {
2127 "kind": "QueryGroup",
2128 "spec": {
2129 "queries": [
2130 {
2131 "kind": "PanelQuery",
2132 "spec": {
2133 "query": {
2134 "kind": "DataQuery",
2135 "group": "influxdb",
2136 "version": "v0",
2137 "spec": {
2138 "groupBy": [],
2139 "measurement": "samba_dsdb",
2140 "orderByTime": "ASC",
2141 "policy": "default",
2142 "query": "SELECT count(\"status_code\") FROM \"samba_dsdb\" WHERE $timeFilter GROUP BY time($interval), \"as_system\"::tag fill(null)",
2143 "rawQuery": true,
2144 "resultFormat": "time_series",
2145 "select": [],
2146 "tags": []
2147 },
2148 "labels": {
2149 "grafana.app/export-label": "influxdb-1"
2150 }
2151 },
2152 "refId": "A",
2153 "hidden": false
2154 }
2155 }
2156 ],
2157 "transformations": [],
2158 "queryOptions": {}
2159 }
2160 },
2161 "vizConfig": {
2162 "kind": "VizConfig",
2163 "group": "timeseries",
2164 "version": "13.0.1+security-01",
2165 "spec": {
2166 "options": {
2167 "annotations": {
2168 "clustering": -1,
2169 "multiLane": false
2170 },
2171 "legend": {
2172 "calcs": [],
2173 "displayMode": "list",
2174 "placement": "bottom",
2175 "showLegend": true
2176 },
2177 "tooltip": {
2178 "hideZeros": false,
2179 "mode": "multi",
2180 "sort": "desc"
2181 }
2182 },
2183 "fieldConfig": {
2184 "defaults": {
2185 "thresholds": {
2186 "mode": "absolute",
2187 "steps": [
2188 {
2189 "value": 0,
2190 "color": "green"
2191 },
2192 {
2193 "value": 80,
2194 "color": "red"
2195 }
2196 ]
2197 },
2198 "color": {
2199 "mode": "palette-classic"
2200 },
2201 "custom": {
2202 "axisBorderShow": false,
2203 "axisCenteredZero": false,
2204 "axisColorMode": "text",
2205 "axisLabel": "",
2206 "axisPlacement": "auto",
2207 "barAlignment": 0,
2208 "barWidthFactor": 0.6,
2209 "drawStyle": "line",
2210 "fillOpacity": 20,
2211 "gradientMode": "none",
2212 "hideFrom": {
2213 "legend": false,
2214 "tooltip": false,
2215 "viz": false
2216 },
2217 "insertNulls": false,
2218 "lineInterpolation": "smooth",
2219 "lineWidth": 1,
2220 "pointSize": 5,
2221 "scaleDistribution": {
2222 "type": "linear"
2223 },
2224 "showPoints": "auto",
2225 "showValues": false,
2226 "spanNulls": false,
2227 "stacking": {
2228 "group": "A",
2229 "mode": "none"
2230 },
2231 "thresholdsStyle": {
2232 "mode": "off"
2233 }
2234 }
2235 },
2236 "overrides": []
2237 }
2238 }
2239 }
2240 }
2241 },
2242 "panel-4": {
2243 "kind": "Panel",
2244 "spec": {
2245 "id": 4,
2246 "title": "DSDB: топ инициаторов (SID)",
2247 "description": "Кто инициировал изменения каталога — разбивка по userSid.",
2248 "links": [],
2249 "data": {
2250 "kind": "QueryGroup",
2251 "spec": {
2252 "queries": [
2253 {
2254 "kind": "PanelQuery",
2255 "spec": {
2256 "query": {
2257 "kind": "DataQuery",
2258 "group": "influxdb",
2259 "version": "v0",
2260 "spec": {
2261 "groupBy": [],
2262 "measurement": "samba_dsdb",
2263 "orderByTime": "ASC",
2264 "policy": "default",
2265 "query": "SELECT count(\"status_code\") FROM \"samba_dsdb\" WHERE $timeFilter GROUP BY time($interval), \"user_sid\"::tag fill(null)",
2266 "rawQuery": true,
2267 "resultFormat": "time_series",
2268 "select": [],
2269 "tags": []
2270 },
2271 "labels": {
2272 "grafana.app/export-label": "influxdb-1"
2273 }
2274 },
2275 "refId": "A",
2276 "hidden": false
2277 }
2278 }
2279 ],
2280 "transformations": [],
2281 "queryOptions": {}
2282 }
2283 },
2284 "vizConfig": {
2285 "kind": "VizConfig",
2286 "group": "timeseries",
2287 "version": "13.0.1+security-01",
2288 "spec": {
2289 "options": {
2290 "annotations": {
2291 "clustering": -1,
2292 "multiLane": false
2293 },
2294 "legend": {
2295 "calcs": [
2296 "sum"
2297 ],
2298 "displayMode": "table",
2299 "placement": "right",
2300 "showLegend": true
2301 },
2302 "tooltip": {
2303 "hideZeros": false,
2304 "mode": "multi",
2305 "sort": "desc"
2306 }
2307 },
2308 "fieldConfig": {
2309 "defaults": {
2310 "thresholds": {
2311 "mode": "absolute",
2312 "steps": [
2313 {
2314 "value": 0,
2315 "color": "green"
2316 },
2317 {
2318 "value": 80,
2319 "color": "red"
2320 }
2321 ]
2322 },
2323 "color": {
2324 "mode": "palette-classic"
2325 },
2326 "custom": {
2327 "axisBorderShow": false,
2328 "axisCenteredZero": false,
2329 "axisColorMode": "text",
2330 "axisLabel": "",
2331 "axisPlacement": "auto",
2332 "barAlignment": 0,
2333 "barWidthFactor": 0.6,
2334 "drawStyle": "bars",
2335 "fillOpacity": 50,
2336 "gradientMode": "none",
2337 "hideFrom": {
2338 "legend": false,
2339 "tooltip": false,
2340 "viz": false
2341 },
2342 "insertNulls": false,
2343 "lineInterpolation": "linear",
2344 "lineWidth": 1,
2345 "pointSize": 5,
2346 "scaleDistribution": {
2347 "type": "linear"
2348 },
2349 "showPoints": "auto",
2350 "showValues": false,
2351 "spanNulls": false,
2352 "stacking": {
2353 "group": "A",
2354 "mode": "normal"
2355 },
2356 "thresholdsStyle": {
2357 "mode": "off"
2358 }
2359 }
2360 },
2361 "overrides": []
2362 }
2363 }
2364 }
2365 }
2366 },
2367 "panel-5": {
2368 "kind": "Panel",
2369 "spec": {
2370 "id": 5,
2371 "title": "Транзакции: длительность (mean/max)",
2372 "description": "Длительность транзакций каталога (samba_dsdb_tx) в микросекундах.",
2373 "links": [],
2374 "data": {
2375 "kind": "QueryGroup",
2376 "spec": {
2377 "queries": [
2378 {
2379 "kind": "PanelQuery",
2380 "spec": {
2381 "query": {
2382 "kind": "DataQuery",
2383 "group": "influxdb",
2384 "version": "v0",
2385 "spec": {
2386 "groupBy": [],
2387 "measurement": "samba_dsdb_tx",
2388 "orderByTime": "ASC",
2389 "policy": "default",
2390 "query": "SELECT mean(\"duration\") AS \"mean\", max(\"duration\") AS \"max\" FROM \"samba_dsdb_tx\" WHERE $timeFilter GROUP BY time($interval) fill(null)",
2391 "rawQuery": true,
2392 "resultFormat": "time_series",
2393 "select": [],
2394 "tags": []
2395 },
2396 "labels": {
2397 "grafana.app/export-label": "influxdb-1"
2398 }
2399 },
2400 "refId": "A",
2401 "hidden": false
2402 }
2403 }
2404 ],
2405 "transformations": [],
2406 "queryOptions": {}
2407 }
2408 },
2409 "vizConfig": {
2410 "kind": "VizConfig",
2411 "group": "timeseries",
2412 "version": "13.0.1+security-01",
2413 "spec": {
2414 "options": {
2415 "annotations": {
2416 "clustering": -1,
2417 "multiLane": false
2418 },
2419 "legend": {
2420 "calcs": [
2421 "mean",
2422 "max"
2423 ],
2424 "displayMode": "table",
2425 "placement": "bottom",
2426 "showLegend": true
2427 },
2428 "tooltip": {
2429 "hideZeros": false,
2430 "mode": "multi",
2431 "sort": "desc"
2432 }
2433 },
2434 "fieldConfig": {
2435 "defaults": {
2436 "unit": "µs",
2437 "thresholds": {
2438 "mode": "absolute",
2439 "steps": [
2440 {
2441 "value": 0,
2442 "color": "green"
2443 },
2444 {
2445 "value": 80,
2446 "color": "red"
2447 }
2448 ]
2449 },
2450 "color": {
2451 "mode": "palette-classic"
2452 },
2453 "custom": {
2454 "axisBorderShow": false,
2455 "axisCenteredZero": false,
2456 "axisColorMode": "text",
2457 "axisLabel": "",
2458 "axisPlacement": "auto",
2459 "barAlignment": 0,
2460 "barWidthFactor": 0.6,
2461 "drawStyle": "line",
2462 "fillOpacity": 10,
2463 "gradientMode": "none",
2464 "hideFrom": {
2465 "legend": false,
2466 "tooltip": false,
2467 "viz": false
2468 },
2469 "insertNulls": false,
2470 "lineInterpolation": "smooth",
2471 "lineWidth": 1,
2472 "pointSize": 5,
2473 "scaleDistribution": {
2474 "type": "linear"
2475 },
2476 "showPoints": "auto",
2477 "showValues": false,
2478 "spanNulls": false,
2479 "stacking": {
2480 "group": "A",
2481 "mode": "none"
2482 },
2483 "thresholdsStyle": {
2484 "mode": "off"
2485 }
2486 }
2487 },
2488 "overrides": []
2489 }
2490 }
2491 }
2492 }
2493 },
2494 "panel-6": {
2495 "kind": "Panel",
2496 "spec": {
2497 "id": 6,
2498 "title": "Транзакции по типу действия",
2499 "description": "Число транзакций каталога, разбивка по action (commit / rollback / prepare commit / begin).",
2500 "links": [],
2501 "data": {
2502 "kind": "QueryGroup",
2503 "spec": {
2504 "queries": [
2505 {
2506 "kind": "PanelQuery",
2507 "spec": {
2508 "query": {
2509 "kind": "DataQuery",
2510 "group": "influxdb",
2511 "version": "v0",
2512 "spec": {
2513 "groupBy": [],
2514 "measurement": "samba_dsdb_tx",
2515 "orderByTime": "ASC",
2516 "policy": "default",
2517 "query": "SELECT count(\"duration\") FROM \"samba_dsdb_tx\" WHERE $timeFilter GROUP BY time($interval), \"action\"::tag fill(null)",
2518 "rawQuery": true,
2519 "resultFormat": "time_series",
2520 "select": [],
2521 "tags": []
2522 },
2523 "labels": {
2524 "grafana.app/export-label": "influxdb-1"
2525 }
2526 },
2527 "refId": "A",
2528 "hidden": false
2529 }
2530 }
2531 ],
2532 "transformations": [],
2533 "queryOptions": {}
2534 }
2535 },
2536 "vizConfig": {
2537 "kind": "VizConfig",
2538 "group": "timeseries",
2539 "version": "13.0.1+security-01",
2540 "spec": {
2541 "options": {
2542 "annotations": {
2543 "clustering": -1,
2544 "multiLane": false
2545 },
2546 "legend": {
2547 "calcs": [],
2548 "displayMode": "list",
2549 "placement": "bottom",
2550 "showLegend": true
2551 },
2552 "tooltip": {
2553 "hideZeros": false,
2554 "mode": "multi",
2555 "sort": "desc"
2556 }
2557 },
2558 "fieldConfig": {
2559 "defaults": {
2560 "thresholds": {
2561 "mode": "absolute",
2562 "steps": [
2563 {
2564 "value": 0,
2565 "color": "green"
2566 },
2567 {
2568 "value": 80,
2569 "color": "red"
2570 }
2571 ]
2572 },
2573 "color": {
2574 "mode": "palette-classic"
2575 },
2576 "custom": {
2577 "axisBorderShow": false,
2578 "axisCenteredZero": false,
2579 "axisColorMode": "text",
2580 "axisLabel": "",
2581 "axisPlacement": "auto",
2582 "barAlignment": 0,
2583 "barWidthFactor": 0.6,
2584 "drawStyle": "bars",
2585 "fillOpacity": 50,
2586 "gradientMode": "none",
2587 "hideFrom": {
2588 "legend": false,
2589 "tooltip": false,
2590 "viz": false
2591 },
2592 "insertNulls": false,
2593 "lineInterpolation": "linear",
2594 "lineWidth": 1,
2595 "pointSize": 5,
2596 "scaleDistribution": {
2597 "type": "linear"
2598 },
2599 "showPoints": "auto",
2600 "showValues": false,
2601 "spanNulls": false,
2602 "stacking": {
2603 "group": "A",
2604 "mode": "normal"
2605 },
2606 "thresholdsStyle": {
2607 "mode": "off"
2608 }
2609 }
2610 },
2611 "overrides": []
2612 }
2613 }
2614 }
2615 }
2616 },
2617 "panel-7": {
2618 "kind": "Panel",
2619 "spec": {
2620 "id": 7,
2621 "title": "SMB activity",
2622 "description": "",
2623 "links": [],
2624 "data": {
2625 "kind": "QueryGroup",
2626 "spec": {
2627 "queries": [
2628 {
2629 "kind": "PanelQuery",
2630 "spec": {
2631 "query": {
2632 "kind": "DataQuery",
2633 "group": "influxdb",
2634 "version": "v0",
2635 "spec": {
2636 "alias": "user_smb",
2637 "groupBy": [
2638 {
2639 "params": [
2640 "$interval"
2641 ],
2642 "type": "time"
2643 },
2644 {
2645 "params": [
2646 "domain::tag"
2647 ],
2648 "type": "tag"
2649 },
2650 {
2651 "params": [
2652 "null"
2653 ],
2654 "type": "fill"
2655 }
2656 ],
2657 "measurement": "samba_authz",
2658 "orderByTime": "ASC",
2659 "policy": "default",
2660 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
2661 "rawQuery": false,
2662 "resultFormat": "time_series",
2663 "select": [
2664 [
2665 {
2666 "params": [
2667 "auth_type"
2668 ],
2669 "type": "field"
2670 },
2671 {
2672 "params": [],
2673 "type": "count"
2674 }
2675 ]
2676 ],
2677 "tags": [
2678 {
2679 "key": "service::tag",
2680 "operator": "=",
2681 "value": "SMB2"
2682 },
2683 {
2684 "condition": "AND",
2685 "key": "auth_type::field",
2686 "operator": "=",
2687 "value": "krb5"
2688 },
2689 {
2690 "condition": "AND",
2691 "key": "account::tag",
2692 "operator": "=~",
2693 "value": "/^user-/"
2694 }
2695 ]
2696 },
2697 "labels": {
2698 "grafana.app/export-label": "influxdb-1"
2699 }
2700 },
2701 "refId": "A",
2702 "hidden": false
2703 }
2704 },
2705 {
2706 "kind": "PanelQuery",
2707 "spec": {
2708 "query": {
2709 "kind": "DataQuery",
2710 "group": "influxdb",
2711 "version": "v0",
2712 "spec": {
2713 "alias": "machine_smb",
2714 "groupBy": [
2715 {
2716 "params": [
2717 "$interval"
2718 ],
2719 "type": "time"
2720 },
2721 {
2722 "params": [
2723 "domain::tag"
2724 ],
2725 "type": "tag"
2726 },
2727 {
2728 "params": [
2729 "null"
2730 ],
2731 "type": "fill"
2732 }
2733 ],
2734 "measurement": "samba_authz",
2735 "orderByTime": "ASC",
2736 "policy": "default",
2737 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
2738 "rawQuery": false,
2739 "resultFormat": "time_series",
2740 "select": [
2741 [
2742 {
2743 "params": [
2744 "auth_type"
2745 ],
2746 "type": "field"
2747 },
2748 {
2749 "params": [],
2750 "type": "count"
2751 }
2752 ]
2753 ],
2754 "tags": [
2755 {
2756 "key": "service::tag",
2757 "operator": "=",
2758 "value": "SMB2"
2759 },
2760 {
2761 "condition": "AND",
2762 "key": "auth_type::field",
2763 "operator": "=",
2764 "value": "krb5"
2765 },
2766 {
2767 "condition": "AND",
2768 "key": "account::tag",
2769 "operator": "=~",
2770 "value": "/^MACHINE/"
2771 }
2772 ]
2773 },
2774 "labels": {
2775 "grafana.app/export-label": "influxdb-1"
2776 }
2777 },
2778 "refId": "B",
2779 "hidden": false
2780 }
2781 }
2782 ],
2783 "transformations": [],
2784 "queryOptions": {}
2785 }
2786 },
2787 "vizConfig": {
2788 "kind": "VizConfig",
2789 "group": "timeseries",
2790 "version": "13.0.1+security-01",
2791 "spec": {
2792 "options": {
2793 "annotations": {
2794 "clustering": -1,
2795 "multiLane": false
2796 },
2797 "legend": {
2798 "calcs": [],
2799 "displayMode": "list",
2800 "placement": "bottom",
2801 "showLegend": true
2802 },
2803 "tooltip": {
2804 "hideZeros": false,
2805 "mode": "single",
2806 "sort": "none"
2807 }
2808 },
2809 "fieldConfig": {
2810 "defaults": {
2811 "thresholds": {
2812 "mode": "absolute",
2813 "steps": [
2814 {
2815 "value": 0,
2816 "color": "green"
2817 },
2818 {
2819 "value": 80,
2820 "color": "red"
2821 }
2822 ]
2823 },
2824 "color": {
2825 "mode": "palette-classic"
2826 },
2827 "custom": {
2828 "axisBorderShow": false,
2829 "axisCenteredZero": false,
2830 "axisColorMode": "text",
2831 "axisLabel": "",
2832 "axisPlacement": "auto",
2833 "barAlignment": 0,
2834 "barWidthFactor": 0.6,
2835 "drawStyle": "line",
2836 "fillOpacity": 10,
2837 "gradientMode": "none",
2838 "hideFrom": {
2839 "legend": false,
2840 "tooltip": false,
2841 "viz": false
2842 },
2843 "insertNulls": false,
2844 "lineInterpolation": "smooth",
2845 "lineWidth": 1,
2846 "pointSize": 5,
2847 "scaleDistribution": {
2848 "type": "linear"
2849 },
2850 "showPoints": "auto",
2851 "showValues": false,
2852 "spanNulls": false,
2853 "stacking": {
2854 "group": "A",
2855 "mode": "none"
2856 },
2857 "thresholdsStyle": {
2858 "mode": "off"
2859 }
2860 }
2861 },
2862 "overrides": []
2863 }
2864 }
2865 }
2866 }
2867 },
2868 "panel-8": {
2869 "kind": "Panel",
2870 "spec": {
2871 "id": 8,
2872 "title": "DNS activity",
2873 "description": "",
2874 "links": [],
2875 "data": {
2876 "kind": "QueryGroup",
2877 "spec": {
2878 "queries": [
2879 {
2880 "kind": "PanelQuery",
2881 "spec": {
2882 "query": {
2883 "kind": "DataQuery",
2884 "group": "influxdb",
2885 "version": "v0",
2886 "spec": {
2887 "alias": "rcode=0",
2888 "groupBy": [
2889 {
2890 "params": [
2891 "$interval"
2892 ],
2893 "type": "time"
2894 },
2895 {
2896 "params": [
2897 "null"
2898 ],
2899 "type": "fill"
2900 }
2901 ],
2902 "measurement": "samba_dns_rcode",
2903 "orderByTime": "ASC",
2904 "policy": "default",
2905 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
2906 "rawQuery": false,
2907 "resultFormat": "time_series",
2908 "select": [
2909 [
2910 {
2911 "params": [
2912 "rcode"
2913 ],
2914 "type": "field"
2915 },
2916 {
2917 "params": [],
2918 "type": "count"
2919 }
2920 ]
2921 ],
2922 "tags": [
2923 {
2924 "key": "rcode::field",
2925 "operator": "=",
2926 "value": "0"
2927 },
2928 {
2929 "condition": "AND",
2930 "key": "direction::tag",
2931 "operator": "=",
2932 "value": "out_packet"
2933 }
2934 ]
2935 },
2936 "labels": {
2937 "grafana.app/export-label": "influxdb-1"
2938 }
2939 },
2940 "refId": "A",
2941 "hidden": false
2942 }
2943 },
2944 {
2945 "kind": "PanelQuery",
2946 "spec": {
2947 "query": {
2948 "kind": "DataQuery",
2949 "group": "influxdb",
2950 "version": "v0",
2951 "spec": {
2952 "alias": "rcode=3",
2953 "groupBy": [
2954 {
2955 "params": [
2956 "$interval"
2957 ],
2958 "type": "time"
2959 },
2960 {
2961 "params": [
2962 "null"
2963 ],
2964 "type": "fill"
2965 }
2966 ],
2967 "measurement": "samba_dns_rcode",
2968 "orderByTime": "ASC",
2969 "policy": "default",
2970 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
2971 "rawQuery": false,
2972 "resultFormat": "time_series",
2973 "select": [
2974 [
2975 {
2976 "params": [
2977 "rcode"
2978 ],
2979 "type": "field"
2980 },
2981 {
2982 "params": [],
2983 "type": "count"
2984 }
2985 ]
2986 ],
2987 "tags": [
2988 {
2989 "key": "rcode::field",
2990 "operator": "=",
2991 "value": "3"
2992 },
2993 {
2994 "condition": "AND",
2995 "key": "direction::tag",
2996 "operator": "=",
2997 "value": "out_packet"
2998 }
2999 ]
3000 },
3001 "labels": {
3002 "grafana.app/export-label": "influxdb-1"
3003 }
3004 },
3005 "refId": "B",
3006 "hidden": false
3007 }
3008 }
3009 ],
3010 "transformations": [],
3011 "queryOptions": {}
3012 }
3013 },
3014 "vizConfig": {
3015 "kind": "VizConfig",
3016 "group": "timeseries",
3017 "version": "13.0.1+security-01",
3018 "spec": {
3019 "options": {
3020 "annotations": {
3021 "clustering": -1,
3022 "multiLane": false
3023 },
3024 "legend": {
3025 "calcs": [],
3026 "displayMode": "list",
3027 "placement": "bottom",
3028 "showLegend": true
3029 },
3030 "tooltip": {
3031 "hideZeros": false,
3032 "mode": "single",
3033 "sort": "none"
3034 }
3035 },
3036 "fieldConfig": {
3037 "defaults": {
3038 "thresholds": {
3039 "mode": "absolute",
3040 "steps": [
3041 {
3042 "value": 0,
3043 "color": "green"
3044 },
3045 {
3046 "value": 80,
3047 "color": "red"
3048 }
3049 ]
3050 },
3051 "color": {
3052 "mode": "palette-classic"
3053 },
3054 "custom": {
3055 "axisBorderShow": false,
3056 "axisCenteredZero": false,
3057 "axisColorMode": "text",
3058 "axisLabel": "",
3059 "axisPlacement": "auto",
3060 "barAlignment": 0,
3061 "barWidthFactor": 0.6,
3062 "drawStyle": "line",
3063 "fillOpacity": 10,
3064 "gradientMode": "none",
3065 "hideFrom": {
3066 "legend": false,
3067 "tooltip": false,
3068 "viz": false
3069 },
3070 "insertNulls": false,
3071 "lineInterpolation": "smooth",
3072 "lineWidth": 1,
3073 "pointSize": 5,
3074 "scaleDistribution": {
3075 "type": "linear"
3076 },
3077 "showPoints": "auto",
3078 "showValues": false,
3079 "spanNulls": false,
3080 "stacking": {
3081 "group": "A",
3082 "mode": "none"
3083 },
3084 "thresholdsStyle": {
3085 "mode": "off"
3086 }
3087 }
3088 },
3089 "overrides": []
3090 }
3091 }
3092 }
3093 }
3094 },
3095 "panel-9": {
3096 "kind": "Panel",
3097 "spec": {
3098 "id": 9,
3099 "title": "Samba: клиентов сейчас",
3100 "description": "Текущее число подключённых SMB-клиентов (последний опрос smbstatus -v, первый блок).",
3101 "links": [],
3102 "data": {
3103 "kind": "QueryGroup",
3104 "spec": {
3105 "queries": [
3106 {
3107 "kind": "PanelQuery",
3108 "spec": {
3109 "query": {
3110 "kind": "DataQuery",
3111 "group": "influxdb",
3112 "version": "v0",
3113 "spec": {
3114 "alias": "clients",
3115 "groupBy": [
3116 {
3117 "params": [
3118 "$interval"
3119 ],
3120 "type": "time"
3121 },
3122 {
3123 "params": [
3124 "null"
3125 ],
3126 "type": "fill"
3127 }
3128 ],
3129 "measurement": "samba_clients",
3130 "orderByTime": "ASC",
3131 "policy": "default",
3132 "query": "SELECT last(\"count\") FROM \"samba_clients\" WHERE $timeFilter GROUP BY time($interval) fill(null)",
3133 "rawQuery": false,
3134 "resultFormat": "time_series",
3135 "select": [
3136 [
3137 {
3138 "params": [
3139 "count"
3140 ],
3141 "type": "field"
3142 },
3143 {
3144 "params": [],
3145 "type": "last"
3146 }
3147 ]
3148 ],
3149 "tags": []
3150 },
3151 "labels": {
3152 "grafana.app/export-label": "influxdb-1"
3153 }
3154 },
3155 "refId": "A",
3156 "hidden": false
3157 }
3158 }
3159 ],
3160 "transformations": [],
3161 "queryOptions": {}
3162 }
3163 },
3164 "vizConfig": {
3165 "kind": "VizConfig",
3166 "group": "stat",
3167 "version": "13.0.1+security-01",
3168 "spec": {
3169 "options": {
3170 "colorMode": "value",
3171 "graphMode": "area",
3172 "justifyMode": "auto",
3173 "orientation": "auto",
3174 "percentChangeColorMode": "standard",
3175 "reduceOptions": {
3176 "calcs": [
3177 "lastNotNull"
3178 ],
3179 "fields": "",
3180 "values": false
3181 },
3182 "showPercentChange": false,
3183 "textMode": "auto",
3184 "wideLayout": true
3185 },
3186 "fieldConfig": {
3187 "defaults": {
3188 "unit": "none",
3189 "thresholds": {
3190 "mode": "absolute",
3191 "steps": [
3192 {
3193 "value": 0,
3194 "color": "green"
3195 },
3196 {
3197 "value": null,
3198 "color": "red"
3199 }
3200 ]
3201 },
3202 "color": {
3203 "mode": "palette-classic"
3204 }
3205 },
3206 "overrides": []
3207 }
3208 }
3209 }
3210 }
3211 }
3212 },
3213 "layout": {
3214 "kind": "GridLayout",
3215 "spec": {
3216 "items": [
3217 {
3218 "kind": "GridLayoutItem",
3219 "spec": {
3220 "x": 0,
3221 "y": 0,
3222 "width": 11,
3223 "height": 10,
3224 "element": {
3225 "kind": "ElementReference",
3226 "name": "panel-11"
3227 }
3228 }
3229 },
3230 {
3231 "kind": "GridLayoutItem",
3232 "spec": {
3233 "x": 11,
3234 "y": 0,
3235 "width": 13,
3236 "height": 10,
3237 "element": {
3238 "kind": "ElementReference",
3239 "name": "panel-1"
3240 }
3241 }
3242 },
3243 {
3244 "kind": "GridLayoutItem",
3245 "spec": {
3246 "x": 0,
3247 "y": 10,
3248 "width": 12,
3249 "height": 11,
3250 "element": {
3251 "kind": "ElementReference",
3252 "name": "panel-12"
3253 }
3254 }
3255 },
3256 {
3257 "kind": "GridLayoutItem",
3258 "spec": {
3259 "x": 12,
3260 "y": 10,
3261 "width": 12,
3262 "height": 11,
3263 "element": {
3264 "kind": "ElementReference",
3265 "name": "panel-13"
3266 }
3267 }
3268 },
3269 {
3270 "kind": "GridLayoutItem",
3271 "spec": {
3272 "x": 0,
3273 "y": 21,
3274 "width": 24,
3275 "height": 11,
3276 "element": {
3277 "kind": "ElementReference",
3278 "name": "panel-16"
3279 }
3280 }
3281 },
3282 {
3283 "kind": "GridLayoutItem",
3284 "spec": {
3285 "x": 0,
3286 "y": 32,
3287 "width": 24,
3288 "height": 11,
3289 "element": {
3290 "kind": "ElementReference",
3291 "name": "panel-17"
3292 }
3293 }
3294 },
3295 {
3296 "kind": "GridLayoutItem",
3297 "spec": {
3298 "x": 0,
3299 "y": 43,
3300 "width": 24,
3301 "height": 10,
3302 "element": {
3303 "kind": "ElementReference",
3304 "name": "panel-14"
3305 }
3306 }
3307 },
3308 {
3309 "kind": "GridLayoutItem",
3310 "spec": {
3311 "x": 0,
3312 "y": 53,
3313 "width": 24,
3314 "height": 10,
3315 "element": {
3316 "kind": "ElementReference",
3317 "name": "panel-15"
3318 }
3319 }
3320 },
3321 {
3322 "kind": "GridLayoutItem",
3323 "spec": {
3324 "x": 0,
3325 "y": 63,
3326 "width": 12,
3327 "height": 7,
3328 "element": {
3329 "kind": "ElementReference",
3330 "name": "panel-7"
3331 }
3332 }
3333 },
3334 {
3335 "kind": "GridLayoutItem",
3336 "spec": {
3337 "x": 12,
3338 "y": 63,
3339 "width": 12,
3340 "height": 7,
3341 "element": {
3342 "kind": "ElementReference",
3343 "name": "panel-8"
3344 }
3345 }
3346 },
3347 {
3348 "kind": "GridLayoutItem",
3349 "spec": {
3350 "x": 0,
3351 "y": 70,
3352 "width": 12,
3353 "height": 8,
3354 "element": {
3355 "kind": "ElementReference",
3356 "name": "panel-2"
3357 }
3358 }
3359 },
3360 {
3361 "kind": "GridLayoutItem",
3362 "spec": {
3363 "x": 12,
3364 "y": 70,
3365 "width": 12,
3366 "height": 8,
3367 "element": {
3368 "kind": "ElementReference",
3369 "name": "panel-3"
3370 }
3371 }
3372 },
3373 {
3374 "kind": "GridLayoutItem",
3375 "spec": {
3376 "x": 0,
3377 "y": 78,
3378 "width": 12,
3379 "height": 8,
3380 "element": {
3381 "kind": "ElementReference",
3382 "name": "panel-4"
3383 }
3384 }
3385 },
3386 {
3387 "kind": "GridLayoutItem",
3388 "spec": {
3389 "x": 12,
3390 "y": 78,
3391 "width": 12,
3392 "height": 8,
3393 "element": {
3394 "kind": "ElementReference",
3395 "name": "panel-5"
3396 }
3397 }
3398 },
3399 {
3400 "kind": "GridLayoutItem",
3401 "spec": {
3402 "x": 0,
3403 "y": 86,
3404 "width": 12,
3405 "height": 8,
3406 "element": {
3407 "kind": "ElementReference",
3408 "name": "panel-6"
3409 }
3410 }
3411 },
3412 {
3413 "kind": "GridLayoutItem",
3414 "spec": {
3415 "x": 0,
3416 "y": 94,
3417 "width": 6,
3418 "height": 8,
3419 "element": {
3420 "kind": "ElementReference",
3421 "name": "panel-9"
3422 }
3423 }
3424 },
3425 {
3426 "kind": "GridLayoutItem",
3427 "spec": {
3428 "x": 6,
3429 "y": 94,
3430 "width": 18,
3431 "height": 8,
3432 "element": {
3433 "kind": "ElementReference",
3434 "name": "panel-10"
3435 }
3436 }
3437 }
3438 ]
3439 }
3440 },
3441 "links": [],
3442 "liveNow": false,
3443 "preload": false,
3444 "tags": [
3445 "samba",
3446 "ad",
3447 "audit"
3448 ],
3449 "timeSettings": {
3450 "timezone": "browser",
3451 "from": "now-6h",
3452 "to": "now",
3453 "autoRefresh": "",
3454 "autoRefreshIntervals": [
3455 "5s",
3456 "10s",
3457 "30s",
3458 "1m",
3459 "5m",
3460 "15m",
3461 "30m",
3462 "1h",
3463 "2h",
3464 "1d"
3465 ],
3466 "hideTimepicker": false,
3467 "fiscalYearStartMonth": 0
3468 },
3469 "title": "Samba AD audit2",
3470 "variables": [
3471 {
3472 "kind": "IntervalVariable",
3473 "spec": {
3474 "name": "interval",
3475 "query": "1s,3s,5s,10s,30s,1m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
3476 "current": {
3477 "text": "1m",
3478 "value": "1m"
3479 },
3480 "options": [
3481 {
3482 "selected": true,
3483 "text": "1m",
3484 "value": "1m"
3485 },
3486 {
3487 "selected": false,
3488 "text": "10m",
3489 "value": "10m"
3490 },
3491 {
3492 "selected": false,
3493 "text": "30m",
3494 "value": "30m"
3495 },
3496 {
3497 "selected": false,
3498 "text": "1h",
3499 "value": "1h"
3500 },
3501 {
3502 "selected": false,
3503 "text": "6h",
3504 "value": "6h"
3505 },
3506 {
3507 "selected": false,
3508 "text": "12h",
3509 "value": "12h"
3510 },
3511 {
3512 "selected": false,
3513 "text": "1d",
3514 "value": "1d"
3515 }
3516 ],
3517 "auto": false,
3518 "auto_min": "10s",
3519 "auto_count": 30,
3520 "refresh": "onTimeRangeChanged",
3521 "hide": "dontHide",
3522 "skipUrlSync": false
3523 }
3524 }
3525 ],
3526 "preferences": {
3527 "layout": {
3528 "kind": "GridLayout",
3529 "spec": {
3530 "items": []
3531 }
3532 }
3533 }
3534 }
3535}