Last active 1 week ago

grafana.json Raw
1{
2 "apiVersion": "dashboard.grafana.app/v2",
3 "kind": "Dashboard",
4 "metadata": {
5 "name": "ad-samba-audit3",
6 "generation": 2,
7 "creationTimestamp": "2026-07-29T13:12:35Z",
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/ OR \"account\"::tag =~ /^loadtest/ OR \"account\"::tag =~ /^tuser/)) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
148 "rawQuery": true,
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 "condition": "OR",
184 "key": "account::tag",
185 "operator": "=~",
186 "value": "/^tuser/"
187 }
188 ]
189 },
190 "labels": {
191 "grafana.app/export-label": "influxdb-1"
192 }
193 },
194 "refId": "B",
195 "hidden": false
196 }
197 }
198 ],
199 "transformations": [],
200 "queryOptions": {}
201 }
202 },
203 "vizConfig": {
204 "kind": "VizConfig",
205 "group": "timeseries",
206 "version": "13.0.1+security-01",
207 "spec": {
208 "options": {
209 "annotations": {
210 "clustering": -1,
211 "multiLane": false
212 },
213 "legend": {
214 "calcs": [],
215 "displayMode": "list",
216 "placement": "bottom",
217 "showLegend": true
218 },
219 "tooltip": {
220 "hideZeros": false,
221 "mode": "single",
222 "sort": "none"
223 }
224 },
225 "fieldConfig": {
226 "defaults": {
227 "thresholds": {
228 "mode": "absolute",
229 "steps": [
230 {
231 "value": 0,
232 "color": "green"
233 },
234 {
235 "value": 80,
236 "color": "red"
237 }
238 ]
239 },
240 "color": {
241 "mode": "palette-classic"
242 },
243 "custom": {
244 "axisBorderShow": false,
245 "axisCenteredZero": false,
246 "axisColorMode": "text",
247 "axisLabel": "",
248 "axisPlacement": "auto",
249 "barAlignment": 0,
250 "barWidthFactor": 0.6,
251 "drawStyle": "line",
252 "fillOpacity": 10,
253 "gradientMode": "none",
254 "hideFrom": {
255 "legend": false,
256 "tooltip": false,
257 "viz": false
258 },
259 "insertNulls": false,
260 "lineInterpolation": "smooth",
261 "lineWidth": 1,
262 "pointSize": 5,
263 "scaleDistribution": {
264 "type": "linear"
265 },
266 "showPoints": "auto",
267 "showValues": false,
268 "spanNulls": false,
269 "stacking": {
270 "group": "A",
271 "mode": "none"
272 },
273 "thresholdsStyle": {
274 "mode": "off"
275 }
276 }
277 },
278 "overrides": []
279 }
280 }
281 }
282 }
283 },
284 "panel-10": {
285 "kind": "Panel",
286 "spec": {
287 "id": 10,
288 "title": "Samba: подключённых клиентов",
289 "description": "История числа подключённых SMB-клиентов (samba_clients.count).",
290 "links": [],
291 "data": {
292 "kind": "QueryGroup",
293 "spec": {
294 "queries": [
295 {
296 "kind": "PanelQuery",
297 "spec": {
298 "query": {
299 "kind": "DataQuery",
300 "group": "influxdb",
301 "version": "v0",
302 "spec": {
303 "alias": "clients",
304 "groupBy": [
305 {
306 "params": [
307 "$__interval"
308 ],
309 "type": "time"
310 },
311 {
312 "params": [
313 "null"
314 ],
315 "type": "fill"
316 }
317 ],
318 "measurement": "samba_clients",
319 "orderByTime": "ASC",
320 "policy": "default",
321 "query": "SELECT last(\"count\") FROM \"samba_clients\" WHERE $timeFilter GROUP BY time($__interval) fill(null)",
322 "rawQuery": false,
323 "resultFormat": "time_series",
324 "select": [
325 [
326 {
327 "params": [
328 "count"
329 ],
330 "type": "field"
331 },
332 {
333 "params": [],
334 "type": "last"
335 }
336 ]
337 ],
338 "tags": []
339 },
340 "labels": {
341 "grafana.app/export-label": "influxdb-1"
342 }
343 },
344 "refId": "A",
345 "hidden": false
346 }
347 }
348 ],
349 "transformations": [],
350 "queryOptions": {}
351 }
352 },
353 "vizConfig": {
354 "kind": "VizConfig",
355 "group": "timeseries",
356 "version": "13.0.1+security-01",
357 "spec": {
358 "options": {
359 "annotations": {
360 "clustering": -1,
361 "multiLane": false
362 },
363 "legend": {
364 "calcs": [],
365 "displayMode": "list",
366 "placement": "bottom",
367 "showLegend": true
368 },
369 "tooltip": {
370 "hideZeros": false,
371 "mode": "single",
372 "sort": "none"
373 }
374 },
375 "fieldConfig": {
376 "defaults": {
377 "unit": "none",
378 "thresholds": {
379 "mode": "absolute",
380 "steps": [
381 {
382 "value": 0,
383 "color": "green"
384 }
385 ]
386 },
387 "color": {
388 "mode": "palette-classic"
389 },
390 "custom": {
391 "axisBorderShow": false,
392 "axisCenteredZero": false,
393 "axisColorMode": "text",
394 "axisLabel": "",
395 "axisPlacement": "auto",
396 "barAlignment": 0,
397 "barWidthFactor": 0.6,
398 "drawStyle": "line",
399 "fillOpacity": 15,
400 "gradientMode": "none",
401 "hideFrom": {
402 "legend": false,
403 "tooltip": false,
404 "viz": false
405 },
406 "insertNulls": false,
407 "lineInterpolation": "stepAfter",
408 "lineWidth": 2,
409 "pointSize": 5,
410 "scaleDistribution": {
411 "type": "linear"
412 },
413 "showPoints": "auto",
414 "showValues": false,
415 "spanNulls": false,
416 "stacking": {
417 "group": "A",
418 "mode": "none"
419 },
420 "thresholdsStyle": {
421 "mode": "off"
422 }
423 }
424 },
425 "overrides": []
426 }
427 }
428 }
429 }
430 },
431 "panel-11": {
432 "kind": "Panel",
433 "spec": {
434 "id": 11,
435 "title": "Authentifications",
436 "description": "Успешные входы в домен (samba_auth): машинные и пользовательские, разбивка по домену.",
437 "links": [],
438 "data": {
439 "kind": "QueryGroup",
440 "spec": {
441 "queries": [
442 {
443 "kind": "PanelQuery",
444 "spec": {
445 "query": {
446 "kind": "DataQuery",
447 "group": "influxdb",
448 "version": "v0",
449 "spec": {
450 "alias": "machine_logins",
451 "groupBy": [
452 {
453 "params": [
454 "$interval"
455 ],
456 "type": "time"
457 },
458 {
459 "params": [
460 "domain::tag"
461 ],
462 "type": "tag"
463 },
464 {
465 "params": [
466 "null"
467 ],
468 "type": "fill"
469 }
470 ],
471 "measurement": "samba_auth",
472 "orderByTime": "ASC",
473 "policy": "default",
474 "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)",
475 "rawQuery": false,
476 "resultFormat": "time_series",
477 "select": [
478 [
479 {
480 "params": [
481 "client_account"
482 ],
483 "type": "field"
484 },
485 {
486 "params": [],
487 "type": "count"
488 }
489 ]
490 ],
491 "tags": [
492 {
493 "key": "status::tag",
494 "operator": "=",
495 "value": "NT_STATUS_OK"
496 },
497 {
498 "condition": "AND",
499 "key": "account::tag",
500 "operator": "=~",
501 "value": "/^MACHINE/"
502 }
503 ]
504 },
505 "labels": {
506 "grafana.app/export-label": "influxdb-1"
507 }
508 },
509 "refId": "A",
510 "hidden": false
511 }
512 },
513 {
514 "kind": "PanelQuery",
515 "spec": {
516 "query": {
517 "kind": "DataQuery",
518 "group": "influxdb",
519 "version": "v0",
520 "spec": {
521 "alias": "user_logins",
522 "groupBy": [
523 {
524 "params": [
525 "$interval"
526 ],
527 "type": "time"
528 },
529 {
530 "params": [
531 "domain::tag"
532 ],
533 "type": "tag"
534 },
535 {
536 "params": [
537 "null"
538 ],
539 "type": "fill"
540 }
541 ],
542 "measurement": "samba_auth",
543 "orderByTime": "ASC",
544 "policy": "default",
545 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND (\"account\"::tag =~ /^user/ OR \"account\"::tag =~ /^loadtest/ OR \"account\"::tag =~ /^tuser/)) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
546 "rawQuery": true,
547 "resultFormat": "time_series",
548 "select": [
549 [
550 {
551 "params": [
552 "client_account"
553 ],
554 "type": "field"
555 },
556 {
557 "params": [],
558 "type": "count"
559 }
560 ]
561 ],
562 "tags": [
563 {
564 "key": "status::tag",
565 "operator": "=",
566 "value": "NT_STATUS_OK"
567 },
568 {
569 "condition": "AND",
570 "key": "account::tag",
571 "operator": "=~",
572 "value": "/^user/"
573 },
574 {
575 "condition": "OR",
576 "key": "account::tag",
577 "operator": "=~",
578 "value": "/^loadtest/"
579 },
580 {
581 "condition": "OR",
582 "key": "account::tag",
583 "operator": "=~",
584 "value": "/^tuser/"
585 }
586 ]
587 },
588 "labels": {
589 "grafana.app/export-label": "influxdb-1"
590 }
591 },
592 "refId": "B",
593 "hidden": false
594 }
595 }
596 ],
597 "transformations": [],
598 "queryOptions": {}
599 }
600 },
601 "vizConfig": {
602 "kind": "VizConfig",
603 "group": "stat",
604 "version": "13.0.1+security-01",
605 "spec": {
606 "options": {
607 "colorMode": "value",
608 "graphMode": "area",
609 "justifyMode": "auto",
610 "orientation": "auto",
611 "percentChangeColorMode": "standard",
612 "reduceOptions": {
613 "calcs": [
614 "sum"
615 ],
616 "fields": "",
617 "values": false
618 },
619 "showPercentChange": false,
620 "textMode": "auto",
621 "wideLayout": true
622 },
623 "fieldConfig": {
624 "defaults": {
625 "thresholds": {
626 "mode": "absolute",
627 "steps": [
628 {
629 "value": 0,
630 "color": "green"
631 },
632 {
633 "value": 80,
634 "color": "red"
635 }
636 ]
637 },
638 "color": {
639 "mode": "palette-classic"
640 }
641 },
642 "overrides": []
643 }
644 }
645 }
646 }
647 },
648 "panel-12": {
649 "kind": "Panel",
650 "spec": {
651 "id": 12,
652 "title": "vfs_fsync ops",
653 "description": "Метрика за каждую секунду: Каждый блок или строчка — это отчет за 1 секунду времени (так как в скрипте задан интервал interval:s:1).Имя функции (vfs_fsync_range): Ядро Linux обрабатывает запросы к файлу .ldb именно через системный вызов vfs_fsync_range. Это означает, что приложение не просто сохраняет весь файл целиком, а пытается очень часто и точечно сбрасывать из оперативной памяти на диск конкретные измененные участки (диапазоны байт).",
654 "links": [],
655 "data": {
656 "kind": "QueryGroup",
657 "spec": {
658 "queries": [
659 {
660 "kind": "PanelQuery",
661 "spec": {
662 "query": {
663 "kind": "DataQuery",
664 "group": "influxdb",
665 "version": "v0",
666 "spec": {
667 "alias": "vfs_sync",
668 "groupBy": [
669 {
670 "params": [
671 "$interval"
672 ],
673 "type": "time"
674 },
675 {
676 "params": [
677 "null"
678 ],
679 "type": "fill"
680 }
681 ],
682 "measurement": "samba_sync_ops",
683 "orderByTime": "ASC",
684 "policy": "default",
685 "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)",
686 "rawQuery": false,
687 "resultFormat": "time_series",
688 "select": [
689 [
690 {
691 "params": [
692 "count"
693 ],
694 "type": "field"
695 },
696 {
697 "params": [],
698 "type": "sum"
699 }
700 ]
701 ],
702 "tags": []
703 },
704 "labels": {
705 "grafana.app/export-label": "influxdb-1"
706 }
707 },
708 "refId": "A",
709 "hidden": false
710 }
711 }
712 ],
713 "transformations": [],
714 "queryOptions": {}
715 }
716 },
717 "vizConfig": {
718 "kind": "VizConfig",
719 "group": "timeseries",
720 "version": "13.0.1+security-01",
721 "spec": {
722 "options": {
723 "annotations": {
724 "clustering": -1,
725 "multiLane": false
726 },
727 "legend": {
728 "calcs": [],
729 "displayMode": "list",
730 "placement": "bottom",
731 "showLegend": true
732 },
733 "tooltip": {
734 "hideZeros": false,
735 "mode": "single",
736 "sort": "none"
737 }
738 },
739 "fieldConfig": {
740 "defaults": {
741 "thresholds": {
742 "mode": "absolute",
743 "steps": [
744 {
745 "value": 0,
746 "color": "green"
747 },
748 {
749 "value": 80,
750 "color": "red"
751 }
752 ]
753 },
754 "color": {
755 "mode": "palette-classic"
756 },
757 "custom": {
758 "axisBorderShow": false,
759 "axisCenteredZero": false,
760 "axisColorMode": "text",
761 "axisLabel": "",
762 "axisPlacement": "auto",
763 "barAlignment": 0,
764 "barWidthFactor": 0.6,
765 "drawStyle": "line",
766 "fillOpacity": 10,
767 "gradientMode": "none",
768 "hideFrom": {
769 "legend": false,
770 "tooltip": false,
771 "viz": false
772 },
773 "insertNulls": false,
774 "lineInterpolation": "smooth",
775 "lineWidth": 1,
776 "pointSize": 5,
777 "scaleDistribution": {
778 "type": "linear"
779 },
780 "showPoints": "auto",
781 "showValues": false,
782 "spanNulls": false,
783 "stacking": {
784 "group": "A",
785 "mode": "none"
786 },
787 "thresholdsStyle": {
788 "mode": "off"
789 }
790 }
791 },
792 "overrides": []
793 }
794 }
795 }
796 }
797 },
798 "panel-13": {
799 "kind": "Panel",
800 "spec": {
801 "id": 13,
802 "title": "ldb ops process operation",
803 "description": "* Режим чистого чтения [ R ]: Метрика ldb_search_events растет (пользователи входят \n в сеть), а syscall_fsync_events держится около нуля. База в RAM работает идеально.\n* Режим записи [ W ] / [ CW ]: Метрика syscall_fsync_events начинает расти синхронно \n с действиями пользователей. Это означает, что изменения фиксируются на диск. \n Если график упирается в производительность ваших дисков, время ответа Samba \n будет увеличиваться (растут задержки аутентификации).\n\nO=Open (Открытие файла для записи/изменения)\n\nRO=Read Only (Открытие файла строго для чтения)\n\nR=Read (Чтение данных из файла)\n\nW=Write (Запись измененных данных в кэш памяти)\n\nCW=Commit/Close Write (Фиксация транзакции и принудительный сброс на диск)",
804 "links": [],
805 "data": {
806 "kind": "QueryGroup",
807 "spec": {
808 "queries": [
809 {
810 "kind": "PanelQuery",
811 "spec": {
812 "query": {
813 "kind": "DataQuery",
814 "group": "influxdb",
815 "version": "v0",
816 "spec": {
817 "groupBy": [
818 {
819 "params": [
820 "$interval"
821 ],
822 "type": "time"
823 },
824 {
825 "params": [
826 "prog::tag"
827 ],
828 "type": "tag"
829 },
830 {
831 "params": [
832 "action::tag"
833 ],
834 "type": "tag"
835 },
836 {
837 "params": [
838 "null"
839 ],
840 "type": "fill"
841 }
842 ],
843 "measurement": "samba_file_access",
844 "orderByTime": "ASC",
845 "policy": "default",
846 "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)",
847 "rawQuery": false,
848 "resultFormat": "time_series",
849 "select": [
850 [
851 {
852 "params": [
853 "path"
854 ],
855 "type": "field"
856 },
857 {
858 "params": [],
859 "type": "count"
860 }
861 ]
862 ],
863 "tags": []
864 },
865 "labels": {
866 "grafana.app/export-label": "influxdb-1"
867 }
868 },
869 "refId": "A",
870 "hidden": false
871 }
872 }
873 ],
874 "transformations": [],
875 "queryOptions": {}
876 }
877 },
878 "vizConfig": {
879 "kind": "VizConfig",
880 "group": "timeseries",
881 "version": "13.0.1+security-01",
882 "spec": {
883 "options": {
884 "annotations": {
885 "clustering": -1,
886 "multiLane": false
887 },
888 "legend": {
889 "calcs": [],
890 "displayMode": "list",
891 "placement": "bottom",
892 "showLegend": true
893 },
894 "tooltip": {
895 "hideZeros": false,
896 "mode": "single",
897 "sort": "none"
898 }
899 },
900 "fieldConfig": {
901 "defaults": {
902 "thresholds": {
903 "mode": "absolute",
904 "steps": [
905 {
906 "value": 0,
907 "color": "green"
908 },
909 {
910 "value": 80,
911 "color": "red"
912 }
913 ]
914 },
915 "color": {
916 "mode": "palette-classic"
917 },
918 "custom": {
919 "axisBorderShow": false,
920 "axisCenteredZero": false,
921 "axisColorMode": "text",
922 "axisLabel": "",
923 "axisPlacement": "auto",
924 "barAlignment": 0,
925 "barWidthFactor": 0.6,
926 "drawStyle": "line",
927 "fillOpacity": 10,
928 "gradientMode": "none",
929 "hideFrom": {
930 "legend": false,
931 "tooltip": false,
932 "viz": false
933 },
934 "insertNulls": false,
935 "lineInterpolation": "smooth",
936 "lineWidth": 1,
937 "pointSize": 5,
938 "scaleDistribution": {
939 "type": "linear"
940 },
941 "showPoints": "auto",
942 "showValues": false,
943 "spanNulls": false,
944 "stacking": {
945 "group": "A",
946 "mode": "none"
947 },
948 "thresholdsStyle": {
949 "mode": "off"
950 }
951 }
952 },
953 "overrides": []
954 }
955 }
956 }
957 }
958 },
959 "panel-14": {
960 "kind": "Panel",
961 "spec": {
962 "id": 14,
963 "title": "vmstat",
964 "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 — процессор загружен полностью.",
965 "links": [],
966 "data": {
967 "kind": "QueryGroup",
968 "spec": {
969 "queries": [
970 {
971 "kind": "PanelQuery",
972 "spec": {
973 "query": {
974 "kind": "DataQuery",
975 "group": "influxdb",
976 "version": "v0",
977 "spec": {
978 "alias": "si",
979 "groupBy": [
980 {
981 "params": [
982 "$interval"
983 ],
984 "type": "time"
985 },
986 {
987 "params": [
988 "null"
989 ],
990 "type": "fill"
991 }
992 ],
993 "measurement": "host_vmstat",
994 "orderByTime": "ASC",
995 "policy": "default",
996 "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)",
997 "rawQuery": false,
998 "resultFormat": "time_series",
999 "select": [
1000 [
1001 {
1002 "params": [
1003 "si"
1004 ],
1005 "type": "field"
1006 },
1007 {
1008 "params": [],
1009 "type": "sum"
1010 }
1011 ]
1012 ],
1013 "tags": []
1014 },
1015 "labels": {
1016 "grafana.app/export-label": "influxdb-1"
1017 }
1018 },
1019 "refId": "A",
1020 "hidden": false
1021 }
1022 },
1023 {
1024 "kind": "PanelQuery",
1025 "spec": {
1026 "query": {
1027 "kind": "DataQuery",
1028 "group": "influxdb",
1029 "version": "v0",
1030 "spec": {
1031 "alias": "so",
1032 "groupBy": [
1033 {
1034 "params": [
1035 "$interval"
1036 ],
1037 "type": "time"
1038 },
1039 {
1040 "params": [
1041 "null"
1042 ],
1043 "type": "fill"
1044 }
1045 ],
1046 "measurement": "host_vmstat",
1047 "orderByTime": "ASC",
1048 "policy": "default",
1049 "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)",
1050 "rawQuery": false,
1051 "resultFormat": "time_series",
1052 "select": [
1053 [
1054 {
1055 "params": [
1056 "so"
1057 ],
1058 "type": "field"
1059 },
1060 {
1061 "params": [],
1062 "type": "sum"
1063 }
1064 ]
1065 ],
1066 "tags": []
1067 },
1068 "labels": {
1069 "grafana.app/export-label": "influxdb-1"
1070 }
1071 },
1072 "refId": "E",
1073 "hidden": false
1074 }
1075 },
1076 {
1077 "kind": "PanelQuery",
1078 "spec": {
1079 "query": {
1080 "kind": "DataQuery",
1081 "group": "influxdb",
1082 "version": "v0",
1083 "spec": {
1084 "alias": "bi",
1085 "groupBy": [
1086 {
1087 "params": [
1088 "$interval"
1089 ],
1090 "type": "time"
1091 },
1092 {
1093 "params": [
1094 "null"
1095 ],
1096 "type": "fill"
1097 }
1098 ],
1099 "measurement": "host_vmstat",
1100 "orderByTime": "ASC",
1101 "policy": "default",
1102 "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)",
1103 "rawQuery": false,
1104 "resultFormat": "time_series",
1105 "select": [
1106 [
1107 {
1108 "params": [
1109 "bi"
1110 ],
1111 "type": "field"
1112 },
1113 {
1114 "params": [],
1115 "type": "sum"
1116 }
1117 ]
1118 ],
1119 "tags": []
1120 },
1121 "labels": {
1122 "grafana.app/export-label": "influxdb-1"
1123 }
1124 },
1125 "refId": "B",
1126 "hidden": false
1127 }
1128 },
1129 {
1130 "kind": "PanelQuery",
1131 "spec": {
1132 "query": {
1133 "kind": "DataQuery",
1134 "group": "influxdb",
1135 "version": "v0",
1136 "spec": {
1137 "alias": "bo",
1138 "groupBy": [
1139 {
1140 "params": [
1141 "$interval"
1142 ],
1143 "type": "time"
1144 },
1145 {
1146 "params": [
1147 "null"
1148 ],
1149 "type": "fill"
1150 }
1151 ],
1152 "measurement": "host_vmstat",
1153 "orderByTime": "ASC",
1154 "policy": "default",
1155 "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)",
1156 "rawQuery": false,
1157 "resultFormat": "time_series",
1158 "select": [
1159 [
1160 {
1161 "params": [
1162 "bo"
1163 ],
1164 "type": "field"
1165 },
1166 {
1167 "params": [],
1168 "type": "sum"
1169 }
1170 ]
1171 ],
1172 "tags": []
1173 },
1174 "labels": {
1175 "grafana.app/export-label": "influxdb-1"
1176 }
1177 },
1178 "refId": "F",
1179 "hidden": false
1180 }
1181 }
1182 ],
1183 "transformations": [],
1184 "queryOptions": {}
1185 }
1186 },
1187 "vizConfig": {
1188 "kind": "VizConfig",
1189 "group": "timeseries",
1190 "version": "13.0.1+security-01",
1191 "spec": {
1192 "options": {
1193 "annotations": {
1194 "clustering": -1,
1195 "multiLane": false
1196 },
1197 "legend": {
1198 "calcs": [],
1199 "displayMode": "list",
1200 "placement": "bottom",
1201 "showLegend": true
1202 },
1203 "tooltip": {
1204 "hideZeros": false,
1205 "mode": "single",
1206 "sort": "none"
1207 }
1208 },
1209 "fieldConfig": {
1210 "defaults": {
1211 "thresholds": {
1212 "mode": "absolute",
1213 "steps": [
1214 {
1215 "value": 0,
1216 "color": "green"
1217 },
1218 {
1219 "value": 80,
1220 "color": "red"
1221 }
1222 ]
1223 },
1224 "color": {
1225 "mode": "palette-classic"
1226 },
1227 "custom": {
1228 "axisBorderShow": false,
1229 "axisCenteredZero": false,
1230 "axisColorMode": "text",
1231 "axisLabel": "",
1232 "axisPlacement": "auto",
1233 "barAlignment": 0,
1234 "barWidthFactor": 0.6,
1235 "drawStyle": "line",
1236 "fillOpacity": 10,
1237 "gradientMode": "none",
1238 "hideFrom": {
1239 "legend": false,
1240 "tooltip": false,
1241 "viz": false
1242 },
1243 "insertNulls": false,
1244 "lineInterpolation": "smooth",
1245 "lineWidth": 1,
1246 "pointSize": 5,
1247 "scaleDistribution": {
1248 "type": "linear"
1249 },
1250 "showPoints": "auto",
1251 "showValues": false,
1252 "spanNulls": false,
1253 "stacking": {
1254 "group": "A",
1255 "mode": "none"
1256 },
1257 "thresholdsStyle": {
1258 "mode": "off"
1259 }
1260 }
1261 },
1262 "overrides": []
1263 }
1264 }
1265 }
1266 }
1267 },
1268 "panel-15": {
1269 "kind": "Panel",
1270 "spec": {
1271 "id": 15,
1272 "title": "pidstat",
1273 "description": "minflt/s = Скорость работы с ОЗУ. Сколько раз в секунду процесс запрашивал данные, \n которые ядро Linux успешно выдало из оперативной памяти (из кэша).\n Высокое значение — это норма при активных вычислениях или LDAP-запросах.\n\nmajflt/s = Скорость просадки на диск. Сколько раз в секунду процесс лез за данными \n на физический диск (или в SWAP), потому что их не оказалость в ОЗУ.\n В идеале должно быть равно 0. Если число растет — сервер сильно тормозит.\n\n%MEM = Процент ОЗУ. Доля оперативной памяти сервера, которую съел этот PID.",
1274 "links": [],
1275 "data": {
1276 "kind": "QueryGroup",
1277 "spec": {
1278 "queries": [
1279 {
1280 "kind": "PanelQuery",
1281 "spec": {
1282 "query": {
1283 "kind": "DataQuery",
1284 "group": "influxdb",
1285 "version": "v0",
1286 "spec": {
1287 "alias": "minfit",
1288 "groupBy": [
1289 {
1290 "params": [
1291 "$interval"
1292 ],
1293 "type": "time"
1294 },
1295 {
1296 "params": [
1297 "comm::tag"
1298 ],
1299 "type": "tag"
1300 },
1301 {
1302 "params": [
1303 "null"
1304 ],
1305 "type": "fill"
1306 }
1307 ],
1308 "measurement": "samba_pidstat",
1309 "orderByTime": "ASC",
1310 "policy": "default",
1311 "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)",
1312 "rawQuery": false,
1313 "resultFormat": "time_series",
1314 "select": [
1315 [
1316 {
1317 "params": [
1318 "minflt"
1319 ],
1320 "type": "field"
1321 },
1322 {
1323 "params": [],
1324 "type": "mean"
1325 }
1326 ]
1327 ],
1328 "tags": []
1329 },
1330 "labels": {
1331 "grafana.app/export-label": "influxdb-1"
1332 }
1333 },
1334 "refId": "A",
1335 "hidden": false
1336 }
1337 },
1338 {
1339 "kind": "PanelQuery",
1340 "spec": {
1341 "query": {
1342 "kind": "DataQuery",
1343 "group": "influxdb",
1344 "version": "v0",
1345 "spec": {
1346 "alias": "majfit",
1347 "groupBy": [
1348 {
1349 "params": [
1350 "$interval"
1351 ],
1352 "type": "time"
1353 },
1354 {
1355 "params": [
1356 "comm::tag"
1357 ],
1358 "type": "tag"
1359 },
1360 {
1361 "params": [
1362 "null"
1363 ],
1364 "type": "fill"
1365 }
1366 ],
1367 "measurement": "samba_pidstat",
1368 "orderByTime": "ASC",
1369 "policy": "default",
1370 "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)",
1371 "rawQuery": false,
1372 "resultFormat": "time_series",
1373 "select": [
1374 [
1375 {
1376 "params": [
1377 "majflt"
1378 ],
1379 "type": "field"
1380 },
1381 {
1382 "params": [],
1383 "type": "median"
1384 }
1385 ]
1386 ],
1387 "tags": []
1388 },
1389 "labels": {
1390 "grafana.app/export-label": "influxdb-1"
1391 }
1392 },
1393 "refId": "B",
1394 "hidden": false
1395 }
1396 }
1397 ],
1398 "transformations": [],
1399 "queryOptions": {}
1400 }
1401 },
1402 "vizConfig": {
1403 "kind": "VizConfig",
1404 "group": "timeseries",
1405 "version": "13.0.1+security-01",
1406 "spec": {
1407 "options": {
1408 "annotations": {
1409 "clustering": -1,
1410 "multiLane": false
1411 },
1412 "legend": {
1413 "calcs": [],
1414 "displayMode": "list",
1415 "placement": "bottom",
1416 "showLegend": true
1417 },
1418 "tooltip": {
1419 "hideZeros": false,
1420 "mode": "single",
1421 "sort": "none"
1422 }
1423 },
1424 "fieldConfig": {
1425 "defaults": {
1426 "thresholds": {
1427 "mode": "absolute",
1428 "steps": [
1429 {
1430 "value": 0,
1431 "color": "green"
1432 },
1433 {
1434 "value": 80,
1435 "color": "red"
1436 }
1437 ]
1438 },
1439 "color": {
1440 "mode": "palette-classic"
1441 },
1442 "custom": {
1443 "axisBorderShow": false,
1444 "axisCenteredZero": false,
1445 "axisColorMode": "text",
1446 "axisLabel": "",
1447 "axisPlacement": "auto",
1448 "barAlignment": 0,
1449 "barWidthFactor": 0.6,
1450 "drawStyle": "line",
1451 "fillOpacity": 10,
1452 "gradientMode": "none",
1453 "hideFrom": {
1454 "legend": false,
1455 "tooltip": false,
1456 "viz": false
1457 },
1458 "insertNulls": false,
1459 "lineInterpolation": "smooth",
1460 "lineWidth": 1,
1461 "pointSize": 5,
1462 "scaleDistribution": {
1463 "type": "linear"
1464 },
1465 "showPoints": "auto",
1466 "showValues": false,
1467 "spanNulls": false,
1468 "stacking": {
1469 "group": "A",
1470 "mode": "none"
1471 },
1472 "thresholdsStyle": {
1473 "mode": "off"
1474 }
1475 }
1476 },
1477 "overrides": [
1478 {
1479 "__systemRef": "hideSeriesFrom",
1480 "matcher": {
1481 "id": "byNames",
1482 "options": {
1483 "mode": "exclude",
1484 "names": [
1485 "MEM"
1486 ],
1487 "prefix": "All except:",
1488 "readOnly": true
1489 }
1490 },
1491 "properties": [
1492 {
1493 "id": "custom.hideFrom",
1494 "value": {
1495 "legend": false,
1496 "tooltip": true,
1497 "viz": true
1498 }
1499 }
1500 ]
1501 }
1502 ]
1503 }
1504 }
1505 }
1506 }
1507 },
1508 "panel-16": {
1509 "kind": "Panel",
1510 "spec": {
1511 "id": 16,
1512 "title": "ldb ops operation",
1513 "description": "* Режим чистого чтения [ R ]: Метрика ldb_search_events растет (пользователи входят \n в сеть), а syscall_fsync_events держится около нуля. База в RAM работает идеально.\n* Режим записи [ W ] / [ CW ]: Метрика syscall_fsync_events начинает расти синхронно \n с действиями пользователей. Это означает, что изменения фиксируются на диск. \n Если график упирается в производительность ваших дисков, время ответа Samba \n будет увеличиваться (растут задержки аутентификации).\n\nO=Open (Открытие файла для записи/изменения)\n\nRO=Read Only (Открытие файла строго для чтения)\n\nR=Read (Чтение данных из файла)\n\nW=Write (Запись измененных данных в кэш памяти)\n\nCW=Commit/Close Write (Фиксация транзакции и принудительный сброс на диск)",
1514 "links": [],
1515 "data": {
1516 "kind": "QueryGroup",
1517 "spec": {
1518 "queries": [
1519 {
1520 "kind": "PanelQuery",
1521 "spec": {
1522 "query": {
1523 "kind": "DataQuery",
1524 "group": "influxdb",
1525 "version": "v0",
1526 "spec": {
1527 "groupBy": [
1528 {
1529 "params": [
1530 "$interval"
1531 ],
1532 "type": "time"
1533 },
1534 {
1535 "params": [
1536 "action::tag"
1537 ],
1538 "type": "tag"
1539 },
1540 {
1541 "params": [
1542 "null"
1543 ],
1544 "type": "fill"
1545 }
1546 ],
1547 "measurement": "samba_file_access",
1548 "orderByTime": "ASC",
1549 "policy": "default",
1550 "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)",
1551 "rawQuery": false,
1552 "resultFormat": "time_series",
1553 "select": [
1554 [
1555 {
1556 "params": [
1557 "path"
1558 ],
1559 "type": "field"
1560 },
1561 {
1562 "params": [],
1563 "type": "count"
1564 }
1565 ]
1566 ],
1567 "tags": []
1568 },
1569 "labels": {
1570 "grafana.app/export-label": "influxdb-1"
1571 }
1572 },
1573 "refId": "A",
1574 "hidden": false
1575 }
1576 }
1577 ],
1578 "transformations": [],
1579 "queryOptions": {}
1580 }
1581 },
1582 "vizConfig": {
1583 "kind": "VizConfig",
1584 "group": "timeseries",
1585 "version": "13.0.1+security-01",
1586 "spec": {
1587 "options": {
1588 "annotations": {
1589 "clustering": -1,
1590 "multiLane": false
1591 },
1592 "legend": {
1593 "calcs": [],
1594 "displayMode": "list",
1595 "placement": "bottom",
1596 "showLegend": true
1597 },
1598 "tooltip": {
1599 "hideZeros": false,
1600 "mode": "single",
1601 "sort": "none"
1602 }
1603 },
1604 "fieldConfig": {
1605 "defaults": {
1606 "thresholds": {
1607 "mode": "absolute",
1608 "steps": [
1609 {
1610 "value": 0,
1611 "color": "green"
1612 },
1613 {
1614 "value": 80,
1615 "color": "red"
1616 }
1617 ]
1618 },
1619 "color": {
1620 "mode": "palette-classic"
1621 },
1622 "custom": {
1623 "axisBorderShow": false,
1624 "axisCenteredZero": false,
1625 "axisColorMode": "text",
1626 "axisLabel": "",
1627 "axisPlacement": "auto",
1628 "barAlignment": 0,
1629 "barWidthFactor": 0.6,
1630 "drawStyle": "line",
1631 "fillOpacity": 0,
1632 "gradientMode": "none",
1633 "hideFrom": {
1634 "legend": false,
1635 "tooltip": false,
1636 "viz": false
1637 },
1638 "insertNulls": false,
1639 "lineInterpolation": "linear",
1640 "lineWidth": 1,
1641 "pointSize": 5,
1642 "scaleDistribution": {
1643 "type": "linear"
1644 },
1645 "showPoints": "auto",
1646 "showValues": false,
1647 "spanNulls": false,
1648 "stacking": {
1649 "group": "A",
1650 "mode": "none"
1651 },
1652 "thresholdsStyle": {
1653 "mode": "off"
1654 }
1655 }
1656 },
1657 "overrides": []
1658 }
1659 }
1660 }
1661 }
1662 },
1663 "panel-17": {
1664 "kind": "Panel",
1665 "spec": {
1666 "id": 17,
1667 "title": "Iostat await",
1668 "description": "",
1669 "links": [],
1670 "data": {
1671 "kind": "QueryGroup",
1672 "spec": {
1673 "queries": [
1674 {
1675 "kind": "PanelQuery",
1676 "spec": {
1677 "query": {
1678 "kind": "DataQuery",
1679 "group": "influxdb",
1680 "version": "v0",
1681 "spec": {
1682 "alias": "$tag_device f_await",
1683 "groupBy": [
1684 {
1685 "params": [
1686 "$interval"
1687 ],
1688 "type": "time"
1689 },
1690 {
1691 "params": [
1692 "device::tag"
1693 ],
1694 "type": "tag"
1695 },
1696 {
1697 "params": [
1698 "null"
1699 ],
1700 "type": "fill"
1701 }
1702 ],
1703 "measurement": "host_iostat",
1704 "orderByTime": "ASC",
1705 "policy": "default",
1706 "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)",
1707 "rawQuery": false,
1708 "resultFormat": "time_series",
1709 "select": [
1710 [
1711 {
1712 "params": [
1713 "f_await"
1714 ],
1715 "type": "field"
1716 },
1717 {
1718 "params": [],
1719 "type": "mean"
1720 }
1721 ]
1722 ],
1723 "tags": []
1724 },
1725 "labels": {
1726 "grafana.app/export-label": "influxdb-1"
1727 }
1728 },
1729 "refId": "A",
1730 "hidden": false
1731 }
1732 },
1733 {
1734 "kind": "PanelQuery",
1735 "spec": {
1736 "query": {
1737 "kind": "DataQuery",
1738 "group": "influxdb",
1739 "version": "v0",
1740 "spec": {
1741 "alias": "$tag_device r_await",
1742 "groupBy": [
1743 {
1744 "params": [
1745 "$interval"
1746 ],
1747 "type": "time"
1748 },
1749 {
1750 "params": [
1751 "device::tag"
1752 ],
1753 "type": "tag"
1754 },
1755 {
1756 "params": [
1757 "null"
1758 ],
1759 "type": "fill"
1760 }
1761 ],
1762 "measurement": "host_iostat",
1763 "orderByTime": "ASC",
1764 "policy": "default",
1765 "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)",
1766 "rawQuery": false,
1767 "resultFormat": "time_series",
1768 "select": [
1769 [
1770 {
1771 "params": [
1772 "r_await"
1773 ],
1774 "type": "field"
1775 },
1776 {
1777 "params": [],
1778 "type": "mean"
1779 }
1780 ]
1781 ],
1782 "tags": []
1783 },
1784 "labels": {
1785 "grafana.app/export-label": "influxdb-1"
1786 }
1787 },
1788 "refId": "B",
1789 "hidden": false
1790 }
1791 },
1792 {
1793 "kind": "PanelQuery",
1794 "spec": {
1795 "query": {
1796 "kind": "DataQuery",
1797 "group": "influxdb",
1798 "version": "v0",
1799 "spec": {
1800 "alias": "$tag_device w_await",
1801 "groupBy": [
1802 {
1803 "params": [
1804 "$interval"
1805 ],
1806 "type": "time"
1807 },
1808 {
1809 "params": [
1810 "device::tag"
1811 ],
1812 "type": "tag"
1813 },
1814 {
1815 "params": [
1816 "null"
1817 ],
1818 "type": "fill"
1819 }
1820 ],
1821 "measurement": "host_iostat",
1822 "orderByTime": "ASC",
1823 "policy": "default",
1824 "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)",
1825 "rawQuery": false,
1826 "resultFormat": "time_series",
1827 "select": [
1828 [
1829 {
1830 "params": [
1831 "w_await"
1832 ],
1833 "type": "field"
1834 },
1835 {
1836 "params": [],
1837 "type": "mean"
1838 }
1839 ]
1840 ],
1841 "tags": []
1842 },
1843 "labels": {
1844 "grafana.app/export-label": "influxdb-1"
1845 }
1846 },
1847 "refId": "C",
1848 "hidden": false
1849 }
1850 }
1851 ],
1852 "transformations": [],
1853 "queryOptions": {}
1854 }
1855 },
1856 "vizConfig": {
1857 "kind": "VizConfig",
1858 "group": "timeseries",
1859 "version": "13.0.1+security-01",
1860 "spec": {
1861 "options": {
1862 "annotations": {
1863 "clustering": -1,
1864 "multiLane": false
1865 },
1866 "legend": {
1867 "calcs": [],
1868 "displayMode": "list",
1869 "placement": "bottom",
1870 "showLegend": true
1871 },
1872 "tooltip": {
1873 "hideZeros": false,
1874 "mode": "single",
1875 "sort": "none"
1876 }
1877 },
1878 "fieldConfig": {
1879 "defaults": {
1880 "thresholds": {
1881 "mode": "absolute",
1882 "steps": [
1883 {
1884 "value": 0,
1885 "color": "green"
1886 },
1887 {
1888 "value": 80,
1889 "color": "red"
1890 }
1891 ]
1892 },
1893 "color": {
1894 "mode": "palette-classic"
1895 },
1896 "custom": {
1897 "axisBorderShow": false,
1898 "axisCenteredZero": false,
1899 "axisColorMode": "text",
1900 "axisLabel": "",
1901 "axisPlacement": "auto",
1902 "barAlignment": 0,
1903 "barWidthFactor": 0.6,
1904 "drawStyle": "line",
1905 "fillOpacity": 0,
1906 "gradientMode": "none",
1907 "hideFrom": {
1908 "legend": false,
1909 "tooltip": false,
1910 "viz": false
1911 },
1912 "insertNulls": false,
1913 "lineInterpolation": "linear",
1914 "lineWidth": 1,
1915 "pointSize": 5,
1916 "scaleDistribution": {
1917 "type": "linear"
1918 },
1919 "showPoints": "auto",
1920 "showValues": false,
1921 "spanNulls": false,
1922 "stacking": {
1923 "group": "A",
1924 "mode": "none"
1925 },
1926 "thresholdsStyle": {
1927 "mode": "off"
1928 }
1929 }
1930 },
1931 "overrides": []
1932 }
1933 }
1934 }
1935 }
1936 },
1937 "panel-18": {
1938 "kind": "Panel",
1939 "spec": {
1940 "id": 18,
1941 "title": "pidstat mem",
1942 "description": "minflt/s = Скорость работы с ОЗУ. Сколько раз в секунду процесс запрашивал данные, \n которые ядро Linux успешно выдало из оперативной памяти (из кэша).\n Высокое значение — это норма при активных вычислениях или LDAP-запросах.\n\nmajflt/s = Скорость просадки на диск. Сколько раз в секунду процесс лез за данными \n на физический диск (или в SWAP), потому что их не оказалость в ОЗУ.\n В идеале должно быть равно 0. Если число растет — сервер сильно тормозит.\n\n%MEM = Процент ОЗУ. Доля оперативной памяти сервера, которую съел этот PID.",
1943 "links": [],
1944 "data": {
1945 "kind": "QueryGroup",
1946 "spec": {
1947 "queries": [
1948 {
1949 "kind": "PanelQuery",
1950 "spec": {
1951 "query": {
1952 "kind": "DataQuery",
1953 "group": "influxdb",
1954 "version": "v0",
1955 "spec": {
1956 "alias": "%MEM",
1957 "groupBy": [
1958 {
1959 "params": [
1960 "$interval"
1961 ],
1962 "type": "time"
1963 },
1964 {
1965 "params": [
1966 "comm::tag"
1967 ],
1968 "type": "tag"
1969 },
1970 {
1971 "params": [
1972 "null"
1973 ],
1974 "type": "fill"
1975 }
1976 ],
1977 "measurement": "samba_pidstat",
1978 "orderByTime": "ASC",
1979 "policy": "default",
1980 "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)",
1981 "rawQuery": false,
1982 "resultFormat": "time_series",
1983 "select": [
1984 [
1985 {
1986 "params": [
1987 "mem"
1988 ],
1989 "type": "field"
1990 },
1991 {
1992 "params": [],
1993 "type": "median"
1994 }
1995 ]
1996 ],
1997 "tags": []
1998 },
1999 "labels": {
2000 "grafana.app/export-label": "influxdb-1"
2001 }
2002 },
2003 "refId": "C",
2004 "hidden": false
2005 }
2006 }
2007 ],
2008 "transformations": [],
2009 "queryOptions": {}
2010 }
2011 },
2012 "vizConfig": {
2013 "kind": "VizConfig",
2014 "group": "timeseries",
2015 "version": "13.0.1+security-01",
2016 "spec": {
2017 "options": {
2018 "annotations": {
2019 "clustering": -1,
2020 "multiLane": false
2021 },
2022 "legend": {
2023 "calcs": [],
2024 "displayMode": "list",
2025 "placement": "bottom",
2026 "showLegend": true
2027 },
2028 "tooltip": {
2029 "hideZeros": false,
2030 "mode": "single",
2031 "sort": "none"
2032 }
2033 },
2034 "fieldConfig": {
2035 "defaults": {
2036 "thresholds": {
2037 "mode": "absolute",
2038 "steps": [
2039 {
2040 "value": 0,
2041 "color": "green"
2042 },
2043 {
2044 "value": 80,
2045 "color": "red"
2046 }
2047 ]
2048 },
2049 "color": {
2050 "mode": "palette-classic"
2051 },
2052 "custom": {
2053 "axisBorderShow": false,
2054 "axisCenteredZero": false,
2055 "axisColorMode": "text",
2056 "axisLabel": "",
2057 "axisPlacement": "auto",
2058 "barAlignment": 0,
2059 "barWidthFactor": 0.6,
2060 "drawStyle": "line",
2061 "fillOpacity": 10,
2062 "gradientMode": "none",
2063 "hideFrom": {
2064 "legend": false,
2065 "tooltip": false,
2066 "viz": false
2067 },
2068 "insertNulls": false,
2069 "lineInterpolation": "smooth",
2070 "lineWidth": 1,
2071 "pointSize": 5,
2072 "scaleDistribution": {
2073 "type": "linear"
2074 },
2075 "showPoints": "auto",
2076 "showValues": false,
2077 "spanNulls": false,
2078 "stacking": {
2079 "group": "A",
2080 "mode": "none"
2081 },
2082 "thresholdsStyle": {
2083 "mode": "off"
2084 }
2085 }
2086 },
2087 "overrides": []
2088 }
2089 }
2090 }
2091 }
2092 },
2093 "panel-19": {
2094 "kind": "Panel",
2095 "spec": {
2096 "id": 19,
2097 "title": "RSS",
2098 "description": "minflt/s = Скорость работы с ОЗУ. Сколько раз в секунду процесс запрашивал данные, \n которые ядро Linux успешно выдало из оперативной памяти (из кэша).\n Высокое значение — это норма при активных вычислениях или LDAP-запросах.\n\nmajflt/s = Скорость просадки на диск. Сколько раз в секунду процесс лез за данными \n на физический диск (или в SWAP), потому что их не оказалость в ОЗУ.\n В идеале должно быть равно 0. Если число растет — сервер сильно тормозит.\n\n%MEM = Процент ОЗУ. Доля оперативной памяти сервера, которую съел этот PID.",
2099 "links": [],
2100 "data": {
2101 "kind": "QueryGroup",
2102 "spec": {
2103 "queries": [
2104 {
2105 "kind": "PanelQuery",
2106 "spec": {
2107 "query": {
2108 "kind": "DataQuery",
2109 "group": "influxdb",
2110 "version": "v0",
2111 "spec": {
2112 "alias": "RSS",
2113 "groupBy": [
2114 {
2115 "params": [
2116 "$interval"
2117 ],
2118 "type": "time"
2119 },
2120 {
2121 "params": [
2122 "comm::tag"
2123 ],
2124 "type": "tag"
2125 },
2126 {
2127 "params": [
2128 "null"
2129 ],
2130 "type": "fill"
2131 }
2132 ],
2133 "measurement": "samba_pidstat",
2134 "orderByTime": "ASC",
2135 "policy": "default",
2136 "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)",
2137 "rawQuery": false,
2138 "resultFormat": "time_series",
2139 "select": [
2140 [
2141 {
2142 "params": [
2143 "rss"
2144 ],
2145 "type": "field"
2146 },
2147 {
2148 "params": [],
2149 "type": "median"
2150 }
2151 ]
2152 ],
2153 "tags": []
2154 },
2155 "labels": {
2156 "grafana.app/export-label": "influxdb-1"
2157 }
2158 },
2159 "refId": "C",
2160 "hidden": false
2161 }
2162 }
2163 ],
2164 "transformations": [],
2165 "queryOptions": {}
2166 }
2167 },
2168 "vizConfig": {
2169 "kind": "VizConfig",
2170 "group": "timeseries",
2171 "version": "13.0.1+security-01",
2172 "spec": {
2173 "options": {
2174 "annotations": {
2175 "clustering": -1,
2176 "multiLane": false
2177 },
2178 "legend": {
2179 "calcs": [],
2180 "displayMode": "list",
2181 "placement": "bottom",
2182 "showLegend": true
2183 },
2184 "tooltip": {
2185 "hideZeros": false,
2186 "mode": "single",
2187 "sort": "none"
2188 }
2189 },
2190 "fieldConfig": {
2191 "defaults": {
2192 "thresholds": {
2193 "mode": "absolute",
2194 "steps": [
2195 {
2196 "value": 0,
2197 "color": "green"
2198 },
2199 {
2200 "value": 80,
2201 "color": "red"
2202 }
2203 ]
2204 },
2205 "color": {
2206 "mode": "palette-classic"
2207 },
2208 "custom": {
2209 "axisBorderShow": false,
2210 "axisCenteredZero": false,
2211 "axisColorMode": "text",
2212 "axisLabel": "",
2213 "axisPlacement": "auto",
2214 "barAlignment": 0,
2215 "barWidthFactor": 0.6,
2216 "drawStyle": "line",
2217 "fillOpacity": 10,
2218 "gradientMode": "none",
2219 "hideFrom": {
2220 "legend": false,
2221 "tooltip": false,
2222 "viz": false
2223 },
2224 "insertNulls": false,
2225 "lineInterpolation": "smooth",
2226 "lineWidth": 1,
2227 "pointSize": 5,
2228 "scaleDistribution": {
2229 "type": "linear"
2230 },
2231 "showPoints": "auto",
2232 "showValues": false,
2233 "spanNulls": false,
2234 "stacking": {
2235 "group": "A",
2236 "mode": "none"
2237 },
2238 "thresholdsStyle": {
2239 "mode": "off"
2240 }
2241 }
2242 },
2243 "overrides": []
2244 }
2245 }
2246 }
2247 }
2248 },
2249 "panel-2": {
2250 "kind": "Panel",
2251 "spec": {
2252 "id": 2,
2253 "title": "DSDB: изменения по операциям",
2254 "description": "Число изменений объектов каталога (samba_dsdb), разбивка по типу операции.",
2255 "links": [],
2256 "data": {
2257 "kind": "QueryGroup",
2258 "spec": {
2259 "queries": [
2260 {
2261 "kind": "PanelQuery",
2262 "spec": {
2263 "query": {
2264 "kind": "DataQuery",
2265 "group": "influxdb",
2266 "version": "v0",
2267 "spec": {
2268 "groupBy": [],
2269 "measurement": "samba_dsdb",
2270 "orderByTime": "ASC",
2271 "policy": "default",
2272 "query": "SELECT count(\"status_code\") FROM \"samba_dsdb\" WHERE $timeFilter GROUP BY time($interval), \"operation\"::tag fill(null)",
2273 "rawQuery": true,
2274 "resultFormat": "time_series",
2275 "select": [],
2276 "tags": []
2277 },
2278 "labels": {
2279 "grafana.app/export-label": "influxdb-1"
2280 }
2281 },
2282 "refId": "A",
2283 "hidden": false
2284 }
2285 }
2286 ],
2287 "transformations": [],
2288 "queryOptions": {}
2289 }
2290 },
2291 "vizConfig": {
2292 "kind": "VizConfig",
2293 "group": "timeseries",
2294 "version": "13.0.1+security-01",
2295 "spec": {
2296 "options": {
2297 "annotations": {
2298 "clustering": -1,
2299 "multiLane": false
2300 },
2301 "legend": {
2302 "calcs": [],
2303 "displayMode": "list",
2304 "placement": "bottom",
2305 "showLegend": true
2306 },
2307 "tooltip": {
2308 "hideZeros": false,
2309 "mode": "multi",
2310 "sort": "desc"
2311 }
2312 },
2313 "fieldConfig": {
2314 "defaults": {
2315 "thresholds": {
2316 "mode": "absolute",
2317 "steps": [
2318 {
2319 "value": 0,
2320 "color": "green"
2321 },
2322 {
2323 "value": 80,
2324 "color": "red"
2325 }
2326 ]
2327 },
2328 "color": {
2329 "mode": "palette-classic"
2330 },
2331 "custom": {
2332 "axisBorderShow": false,
2333 "axisCenteredZero": false,
2334 "axisColorMode": "text",
2335 "axisLabel": "",
2336 "axisPlacement": "auto",
2337 "barAlignment": 0,
2338 "barWidthFactor": 0.6,
2339 "drawStyle": "bars",
2340 "fillOpacity": 50,
2341 "gradientMode": "none",
2342 "hideFrom": {
2343 "legend": false,
2344 "tooltip": false,
2345 "viz": false
2346 },
2347 "insertNulls": false,
2348 "lineInterpolation": "linear",
2349 "lineWidth": 1,
2350 "pointSize": 5,
2351 "scaleDistribution": {
2352 "type": "linear"
2353 },
2354 "showPoints": "auto",
2355 "showValues": false,
2356 "spanNulls": false,
2357 "stacking": {
2358 "group": "A",
2359 "mode": "normal"
2360 },
2361 "thresholdsStyle": {
2362 "mode": "off"
2363 }
2364 }
2365 },
2366 "overrides": []
2367 }
2368 }
2369 }
2370 }
2371 },
2372 "panel-20": {
2373 "kind": "Panel",
2374 "spec": {
2375 "id": 20,
2376 "title": "ldb ops",
2377 "description": "* Режим чистого чтения [ R ]: Метрика ldb_search_events растет (пользователи входят \n в сеть), а syscall_fsync_events держится около нуля. База в RAM работает идеально.\n* Режим записи [ W ] / [ CW ]: Метрика syscall_fsync_events начинает расти синхронно \n с действиями пользователей. Это означает, что изменения фиксируются на диск. \n Если график упирается в производительность ваших дисков, время ответа Samba \n будет увеличиваться (растут задержки аутентификации).\n\nO=Open (Открытие файла для записи/изменения)\n\nRO=Read Only (Открытие файла строго для чтения)\n\nR=Read (Чтение данных из файла)\n\nW=Write (Запись измененных данных в кэш памяти)\n\nCW=Commit/Close Write (Фиксация транзакции и принудительный сброс на диск)",
2378 "links": [],
2379 "data": {
2380 "kind": "QueryGroup",
2381 "spec": {
2382 "queries": [
2383 {
2384 "kind": "PanelQuery",
2385 "spec": {
2386 "query": {
2387 "kind": "DataQuery",
2388 "group": "influxdb",
2389 "version": "v0",
2390 "spec": {
2391 "groupBy": [
2392 {
2393 "params": [
2394 "$interval"
2395 ],
2396 "type": "time"
2397 },
2398 {
2399 "params": [
2400 "null"
2401 ],
2402 "type": "fill"
2403 }
2404 ],
2405 "measurement": "samba_file_access",
2406 "orderByTime": "ASC",
2407 "policy": "default",
2408 "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)",
2409 "rawQuery": false,
2410 "resultFormat": "time_series",
2411 "select": [
2412 [
2413 {
2414 "params": [
2415 "path"
2416 ],
2417 "type": "field"
2418 },
2419 {
2420 "params": [],
2421 "type": "count"
2422 }
2423 ]
2424 ],
2425 "tags": []
2426 },
2427 "labels": {
2428 "grafana.app/export-label": "influxdb-1"
2429 }
2430 },
2431 "refId": "A",
2432 "hidden": false
2433 }
2434 }
2435 ],
2436 "transformations": [],
2437 "queryOptions": {}
2438 }
2439 },
2440 "vizConfig": {
2441 "kind": "VizConfig",
2442 "group": "timeseries",
2443 "version": "13.0.1+security-01",
2444 "spec": {
2445 "options": {
2446 "annotations": {
2447 "clustering": -1,
2448 "multiLane": false
2449 },
2450 "legend": {
2451 "calcs": [],
2452 "displayMode": "list",
2453 "placement": "bottom",
2454 "showLegend": true
2455 },
2456 "tooltip": {
2457 "hideZeros": false,
2458 "mode": "single",
2459 "sort": "none"
2460 }
2461 },
2462 "fieldConfig": {
2463 "defaults": {
2464 "thresholds": {
2465 "mode": "absolute",
2466 "steps": [
2467 {
2468 "value": 0,
2469 "color": "green"
2470 },
2471 {
2472 "value": 80,
2473 "color": "red"
2474 }
2475 ]
2476 },
2477 "color": {
2478 "mode": "palette-classic"
2479 },
2480 "custom": {
2481 "axisBorderShow": false,
2482 "axisCenteredZero": false,
2483 "axisColorMode": "text",
2484 "axisLabel": "",
2485 "axisPlacement": "auto",
2486 "barAlignment": 0,
2487 "barWidthFactor": 0.6,
2488 "drawStyle": "line",
2489 "fillOpacity": 10,
2490 "gradientMode": "none",
2491 "hideFrom": {
2492 "legend": false,
2493 "tooltip": false,
2494 "viz": false
2495 },
2496 "insertNulls": false,
2497 "lineInterpolation": "smooth",
2498 "lineWidth": 1,
2499 "pointSize": 5,
2500 "scaleDistribution": {
2501 "type": "linear"
2502 },
2503 "showPoints": "auto",
2504 "showValues": false,
2505 "spanNulls": false,
2506 "stacking": {
2507 "group": "A",
2508 "mode": "none"
2509 },
2510 "thresholdsStyle": {
2511 "mode": "off"
2512 }
2513 }
2514 },
2515 "overrides": []
2516 }
2517 }
2518 }
2519 }
2520 },
2521 "panel-21": {
2522 "kind": "Panel",
2523 "spec": {
2524 "id": 21,
2525 "title": "ldb ops summ",
2526 "description": "* Режим чистого чтения [ R ]: Метрика ldb_search_events растет (пользователи входят \n в сеть), а syscall_fsync_events держится около нуля. База в RAM работает идеально.\n* Режим записи [ W ] / [ CW ]: Метрика syscall_fsync_events начинает расти синхронно \n с действиями пользователей. Это означает, что изменения фиксируются на диск. \n Если график упирается в производительность ваших дисков, время ответа Samba \n будет увеличиваться (растут задержки аутентификации).\n\nO=Open (Открытие файла для записи/изменения)\n\nRO=Read Only (Открытие файла строго для чтения)\n\nR=Read (Чтение данных из файла)\n\nW=Write (Запись измененных данных в кэш памяти)\n\nCW=Commit/Close Write (Фиксация транзакции и принудительный сброс на диск)",
2527 "links": [],
2528 "data": {
2529 "kind": "QueryGroup",
2530 "spec": {
2531 "queries": [
2532 {
2533 "kind": "PanelQuery",
2534 "spec": {
2535 "query": {
2536 "kind": "DataQuery",
2537 "group": "influxdb",
2538 "version": "v0",
2539 "spec": {
2540 "groupBy": [
2541 {
2542 "params": [
2543 "$interval"
2544 ],
2545 "type": "time"
2546 },
2547 {
2548 "params": [
2549 "null"
2550 ],
2551 "type": "fill"
2552 }
2553 ],
2554 "measurement": "samba_file_access",
2555 "orderByTime": "ASC",
2556 "policy": "default",
2557 "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)",
2558 "rawQuery": false,
2559 "resultFormat": "time_series",
2560 "select": [
2561 [
2562 {
2563 "params": [
2564 "path"
2565 ],
2566 "type": "field"
2567 },
2568 {
2569 "params": [],
2570 "type": "count"
2571 },
2572 {
2573 "params": [],
2574 "type": "cumulative_sum"
2575 }
2576 ]
2577 ],
2578 "tags": []
2579 },
2580 "labels": {
2581 "grafana.app/export-label": "influxdb-1"
2582 }
2583 },
2584 "refId": "A",
2585 "hidden": false
2586 }
2587 }
2588 ],
2589 "transformations": [],
2590 "queryOptions": {}
2591 }
2592 },
2593 "vizConfig": {
2594 "kind": "VizConfig",
2595 "group": "stat",
2596 "version": "13.0.1+security-01",
2597 "spec": {
2598 "options": {
2599 "colorMode": "value",
2600 "graphMode": "area",
2601 "justifyMode": "auto",
2602 "orientation": "auto",
2603 "percentChangeColorMode": "standard",
2604 "reduceOptions": {
2605 "calcs": [
2606 "lastNotNull"
2607 ],
2608 "fields": "",
2609 "values": false
2610 },
2611 "showPercentChange": false,
2612 "textMode": "auto",
2613 "wideLayout": true
2614 },
2615 "fieldConfig": {
2616 "defaults": {
2617 "thresholds": {
2618 "mode": "absolute",
2619 "steps": [
2620 {
2621 "value": 0,
2622 "color": "green"
2623 },
2624 {
2625 "value": 80,
2626 "color": "red"
2627 }
2628 ]
2629 },
2630 "color": {
2631 "mode": "palette-classic"
2632 }
2633 },
2634 "overrides": []
2635 }
2636 }
2637 }
2638 }
2639 },
2640 "panel-22": {
2641 "kind": "Panel",
2642 "spec": {
2643 "id": 22,
2644 "title": "Iostat kb/s",
2645 "description": "",
2646 "links": [],
2647 "data": {
2648 "kind": "QueryGroup",
2649 "spec": {
2650 "queries": [
2651 {
2652 "kind": "PanelQuery",
2653 "spec": {
2654 "query": {
2655 "kind": "DataQuery",
2656 "group": "influxdb",
2657 "version": "v0",
2658 "spec": {
2659 "alias": "$tag_device d kb/s",
2660 "groupBy": [
2661 {
2662 "params": [
2663 "$interval"
2664 ],
2665 "type": "time"
2666 },
2667 {
2668 "params": [
2669 "device::tag"
2670 ],
2671 "type": "tag"
2672 },
2673 {
2674 "params": [
2675 "null"
2676 ],
2677 "type": "fill"
2678 }
2679 ],
2680 "measurement": "host_iostat",
2681 "orderByTime": "ASC",
2682 "policy": "default",
2683 "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)",
2684 "rawQuery": false,
2685 "resultFormat": "time_series",
2686 "select": [
2687 [
2688 {
2689 "params": [
2690 "dkb_s"
2691 ],
2692 "type": "field"
2693 },
2694 {
2695 "params": [],
2696 "type": "mean"
2697 }
2698 ]
2699 ],
2700 "tags": []
2701 },
2702 "labels": {
2703 "grafana.app/export-label": "influxdb-1"
2704 }
2705 },
2706 "refId": "A",
2707 "hidden": false
2708 }
2709 },
2710 {
2711 "kind": "PanelQuery",
2712 "spec": {
2713 "query": {
2714 "kind": "DataQuery",
2715 "group": "influxdb",
2716 "version": "v0",
2717 "spec": {
2718 "alias": "$tag_device r kb/s",
2719 "groupBy": [
2720 {
2721 "params": [
2722 "$interval"
2723 ],
2724 "type": "time"
2725 },
2726 {
2727 "params": [
2728 "device::tag"
2729 ],
2730 "type": "tag"
2731 },
2732 {
2733 "params": [
2734 "null"
2735 ],
2736 "type": "fill"
2737 }
2738 ],
2739 "measurement": "host_iostat",
2740 "orderByTime": "ASC",
2741 "policy": "default",
2742 "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)",
2743 "rawQuery": false,
2744 "resultFormat": "time_series",
2745 "select": [
2746 [
2747 {
2748 "params": [
2749 "rkb_s"
2750 ],
2751 "type": "field"
2752 },
2753 {
2754 "params": [],
2755 "type": "mean"
2756 }
2757 ]
2758 ],
2759 "tags": []
2760 },
2761 "labels": {
2762 "grafana.app/export-label": "influxdb-1"
2763 }
2764 },
2765 "refId": "B",
2766 "hidden": false
2767 }
2768 },
2769 {
2770 "kind": "PanelQuery",
2771 "spec": {
2772 "query": {
2773 "kind": "DataQuery",
2774 "group": "influxdb",
2775 "version": "v0",
2776 "spec": {
2777 "alias": "$tag_device w kb/s",
2778 "groupBy": [
2779 {
2780 "params": [
2781 "$interval"
2782 ],
2783 "type": "time"
2784 },
2785 {
2786 "params": [
2787 "device::tag"
2788 ],
2789 "type": "tag"
2790 },
2791 {
2792 "params": [
2793 "null"
2794 ],
2795 "type": "fill"
2796 }
2797 ],
2798 "measurement": "host_iostat",
2799 "orderByTime": "ASC",
2800 "policy": "default",
2801 "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)",
2802 "rawQuery": false,
2803 "resultFormat": "time_series",
2804 "select": [
2805 [
2806 {
2807 "params": [
2808 "wkb_s"
2809 ],
2810 "type": "field"
2811 },
2812 {
2813 "params": [],
2814 "type": "mean"
2815 }
2816 ]
2817 ],
2818 "tags": []
2819 },
2820 "labels": {
2821 "grafana.app/export-label": "influxdb-1"
2822 }
2823 },
2824 "refId": "C",
2825 "hidden": false
2826 }
2827 }
2828 ],
2829 "transformations": [],
2830 "queryOptions": {}
2831 }
2832 },
2833 "vizConfig": {
2834 "kind": "VizConfig",
2835 "group": "timeseries",
2836 "version": "13.0.1+security-01",
2837 "spec": {
2838 "options": {
2839 "annotations": {
2840 "clustering": -1,
2841 "multiLane": false
2842 },
2843 "legend": {
2844 "calcs": [],
2845 "displayMode": "list",
2846 "placement": "bottom",
2847 "showLegend": true
2848 },
2849 "tooltip": {
2850 "hideZeros": false,
2851 "mode": "single",
2852 "sort": "none"
2853 }
2854 },
2855 "fieldConfig": {
2856 "defaults": {
2857 "thresholds": {
2858 "mode": "absolute",
2859 "steps": [
2860 {
2861 "value": 0,
2862 "color": "green"
2863 },
2864 {
2865 "value": 80,
2866 "color": "red"
2867 }
2868 ]
2869 },
2870 "color": {
2871 "mode": "palette-classic"
2872 },
2873 "custom": {
2874 "axisBorderShow": false,
2875 "axisCenteredZero": false,
2876 "axisColorMode": "text",
2877 "axisLabel": "",
2878 "axisPlacement": "auto",
2879 "barAlignment": 0,
2880 "barWidthFactor": 0.6,
2881 "drawStyle": "line",
2882 "fillOpacity": 0,
2883 "gradientMode": "none",
2884 "hideFrom": {
2885 "legend": false,
2886 "tooltip": false,
2887 "viz": false
2888 },
2889 "insertNulls": false,
2890 "lineInterpolation": "linear",
2891 "lineWidth": 1,
2892 "pointSize": 5,
2893 "scaleDistribution": {
2894 "type": "linear"
2895 },
2896 "showPoints": "auto",
2897 "showValues": false,
2898 "spanNulls": false,
2899 "stacking": {
2900 "group": "A",
2901 "mode": "none"
2902 },
2903 "thresholdsStyle": {
2904 "mode": "off"
2905 }
2906 }
2907 },
2908 "overrides": []
2909 }
2910 }
2911 }
2912 }
2913 },
2914 "panel-23": {
2915 "kind": "Panel",
2916 "spec": {
2917 "id": 23,
2918 "title": "Iostat util",
2919 "description": "",
2920 "links": [],
2921 "data": {
2922 "kind": "QueryGroup",
2923 "spec": {
2924 "queries": [
2925 {
2926 "kind": "PanelQuery",
2927 "spec": {
2928 "query": {
2929 "kind": "DataQuery",
2930 "group": "influxdb",
2931 "version": "v0",
2932 "spec": {
2933 "alias": "$tag_device util",
2934 "groupBy": [
2935 {
2936 "params": [
2937 "$interval"
2938 ],
2939 "type": "time"
2940 },
2941 {
2942 "params": [
2943 "device::tag"
2944 ],
2945 "type": "tag"
2946 },
2947 {
2948 "params": [
2949 "null"
2950 ],
2951 "type": "fill"
2952 }
2953 ],
2954 "measurement": "host_iostat",
2955 "orderByTime": "ASC",
2956 "policy": "default",
2957 "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)",
2958 "rawQuery": false,
2959 "resultFormat": "time_series",
2960 "select": [
2961 [
2962 {
2963 "params": [
2964 "util"
2965 ],
2966 "type": "field"
2967 },
2968 {
2969 "params": [],
2970 "type": "mean"
2971 }
2972 ]
2973 ],
2974 "tags": []
2975 },
2976 "labels": {
2977 "grafana.app/export-label": "influxdb-1"
2978 }
2979 },
2980 "refId": "A",
2981 "hidden": false
2982 }
2983 }
2984 ],
2985 "transformations": [],
2986 "queryOptions": {}
2987 }
2988 },
2989 "vizConfig": {
2990 "kind": "VizConfig",
2991 "group": "timeseries",
2992 "version": "13.0.1+security-01",
2993 "spec": {
2994 "options": {
2995 "annotations": {
2996 "clustering": -1,
2997 "multiLane": false
2998 },
2999 "legend": {
3000 "calcs": [],
3001 "displayMode": "list",
3002 "placement": "bottom",
3003 "showLegend": true
3004 },
3005 "tooltip": {
3006 "hideZeros": false,
3007 "mode": "single",
3008 "sort": "none"
3009 }
3010 },
3011 "fieldConfig": {
3012 "defaults": {
3013 "thresholds": {
3014 "mode": "absolute",
3015 "steps": [
3016 {
3017 "value": 0,
3018 "color": "green"
3019 },
3020 {
3021 "value": 80,
3022 "color": "red"
3023 }
3024 ]
3025 },
3026 "color": {
3027 "mode": "palette-classic"
3028 },
3029 "custom": {
3030 "axisBorderShow": false,
3031 "axisCenteredZero": false,
3032 "axisColorMode": "text",
3033 "axisLabel": "",
3034 "axisPlacement": "auto",
3035 "barAlignment": 0,
3036 "barWidthFactor": 0.6,
3037 "drawStyle": "line",
3038 "fillOpacity": 0,
3039 "gradientMode": "none",
3040 "hideFrom": {
3041 "legend": false,
3042 "tooltip": false,
3043 "viz": false
3044 },
3045 "insertNulls": false,
3046 "lineInterpolation": "linear",
3047 "lineWidth": 1,
3048 "pointSize": 5,
3049 "scaleDistribution": {
3050 "type": "linear"
3051 },
3052 "showPoints": "auto",
3053 "showValues": false,
3054 "spanNulls": false,
3055 "stacking": {
3056 "group": "A",
3057 "mode": "none"
3058 },
3059 "thresholdsStyle": {
3060 "mode": "off"
3061 }
3062 }
3063 },
3064 "overrides": []
3065 }
3066 }
3067 }
3068 }
3069 },
3070 "panel-24": {
3071 "kind": "Panel",
3072 "spec": {
3073 "id": 24,
3074 "title": "Iostat s",
3075 "description": "",
3076 "links": [],
3077 "data": {
3078 "kind": "QueryGroup",
3079 "spec": {
3080 "queries": [
3081 {
3082 "kind": "PanelQuery",
3083 "spec": {
3084 "query": {
3085 "kind": "DataQuery",
3086 "group": "influxdb",
3087 "version": "v0",
3088 "spec": {
3089 "alias": "$tag_device f/s",
3090 "groupBy": [
3091 {
3092 "params": [
3093 "$interval"
3094 ],
3095 "type": "time"
3096 },
3097 {
3098 "params": [
3099 "device::tag"
3100 ],
3101 "type": "tag"
3102 },
3103 {
3104 "params": [
3105 "null"
3106 ],
3107 "type": "fill"
3108 }
3109 ],
3110 "measurement": "host_iostat",
3111 "orderByTime": "ASC",
3112 "policy": "default",
3113 "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)",
3114 "rawQuery": false,
3115 "resultFormat": "time_series",
3116 "select": [
3117 [
3118 {
3119 "params": [
3120 "f_s"
3121 ],
3122 "type": "field"
3123 },
3124 {
3125 "params": [],
3126 "type": "mean"
3127 }
3128 ]
3129 ],
3130 "tags": []
3131 },
3132 "labels": {
3133 "grafana.app/export-label": "influxdb-1"
3134 }
3135 },
3136 "refId": "A",
3137 "hidden": false
3138 }
3139 },
3140 {
3141 "kind": "PanelQuery",
3142 "spec": {
3143 "query": {
3144 "kind": "DataQuery",
3145 "group": "influxdb",
3146 "version": "v0",
3147 "spec": {
3148 "alias": "$tag_device r/s",
3149 "groupBy": [
3150 {
3151 "params": [
3152 "$interval"
3153 ],
3154 "type": "time"
3155 },
3156 {
3157 "params": [
3158 "device::tag"
3159 ],
3160 "type": "tag"
3161 },
3162 {
3163 "params": [
3164 "null"
3165 ],
3166 "type": "fill"
3167 }
3168 ],
3169 "measurement": "host_iostat",
3170 "orderByTime": "ASC",
3171 "policy": "default",
3172 "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)",
3173 "rawQuery": false,
3174 "resultFormat": "time_series",
3175 "select": [
3176 [
3177 {
3178 "params": [
3179 "r_s"
3180 ],
3181 "type": "field"
3182 },
3183 {
3184 "params": [],
3185 "type": "mean"
3186 }
3187 ]
3188 ],
3189 "tags": []
3190 },
3191 "labels": {
3192 "grafana.app/export-label": "influxdb-1"
3193 }
3194 },
3195 "refId": "B",
3196 "hidden": false
3197 }
3198 },
3199 {
3200 "kind": "PanelQuery",
3201 "spec": {
3202 "query": {
3203 "kind": "DataQuery",
3204 "group": "influxdb",
3205 "version": "v0",
3206 "spec": {
3207 "alias": "$tag_device w/s",
3208 "groupBy": [
3209 {
3210 "params": [
3211 "$interval"
3212 ],
3213 "type": "time"
3214 },
3215 {
3216 "params": [
3217 "device::tag"
3218 ],
3219 "type": "tag"
3220 },
3221 {
3222 "params": [
3223 "null"
3224 ],
3225 "type": "fill"
3226 }
3227 ],
3228 "measurement": "host_iostat",
3229 "orderByTime": "ASC",
3230 "policy": "default",
3231 "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)",
3232 "rawQuery": false,
3233 "resultFormat": "time_series",
3234 "select": [
3235 [
3236 {
3237 "params": [
3238 "w_s"
3239 ],
3240 "type": "field"
3241 },
3242 {
3243 "params": [],
3244 "type": "mean"
3245 }
3246 ]
3247 ],
3248 "tags": []
3249 },
3250 "labels": {
3251 "grafana.app/export-label": "influxdb-1"
3252 }
3253 },
3254 "refId": "C",
3255 "hidden": false
3256 }
3257 }
3258 ],
3259 "transformations": [],
3260 "queryOptions": {}
3261 }
3262 },
3263 "vizConfig": {
3264 "kind": "VizConfig",
3265 "group": "timeseries",
3266 "version": "13.0.1+security-01",
3267 "spec": {
3268 "options": {
3269 "annotations": {
3270 "clustering": -1,
3271 "multiLane": false
3272 },
3273 "legend": {
3274 "calcs": [],
3275 "displayMode": "list",
3276 "placement": "bottom",
3277 "showLegend": true
3278 },
3279 "tooltip": {
3280 "hideZeros": false,
3281 "mode": "single",
3282 "sort": "none"
3283 }
3284 },
3285 "fieldConfig": {
3286 "defaults": {
3287 "thresholds": {
3288 "mode": "absolute",
3289 "steps": [
3290 {
3291 "value": 0,
3292 "color": "green"
3293 },
3294 {
3295 "value": 80,
3296 "color": "red"
3297 }
3298 ]
3299 },
3300 "color": {
3301 "mode": "palette-classic"
3302 },
3303 "custom": {
3304 "axisBorderShow": false,
3305 "axisCenteredZero": false,
3306 "axisColorMode": "text",
3307 "axisLabel": "",
3308 "axisPlacement": "auto",
3309 "barAlignment": 0,
3310 "barWidthFactor": 0.6,
3311 "drawStyle": "line",
3312 "fillOpacity": 0,
3313 "gradientMode": "none",
3314 "hideFrom": {
3315 "legend": false,
3316 "tooltip": false,
3317 "viz": false
3318 },
3319 "insertNulls": false,
3320 "lineInterpolation": "linear",
3321 "lineWidth": 1,
3322 "pointSize": 5,
3323 "scaleDistribution": {
3324 "type": "linear"
3325 },
3326 "showPoints": "auto",
3327 "showValues": false,
3328 "spanNulls": false,
3329 "stacking": {
3330 "group": "A",
3331 "mode": "none"
3332 },
3333 "thresholdsStyle": {
3334 "mode": "off"
3335 }
3336 }
3337 },
3338 "overrides": []
3339 }
3340 }
3341 }
3342 }
3343 },
3344 "panel-25": {
3345 "kind": "Panel",
3346 "spec": {
3347 "id": 25,
3348 "title": "vmstat idle",
3349 "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 — процессор загружен полностью.",
3350 "links": [],
3351 "data": {
3352 "kind": "QueryGroup",
3353 "spec": {
3354 "queries": [
3355 {
3356 "kind": "PanelQuery",
3357 "spec": {
3358 "query": {
3359 "kind": "DataQuery",
3360 "group": "influxdb",
3361 "version": "v0",
3362 "spec": {
3363 "alias": "idle",
3364 "groupBy": [
3365 {
3366 "params": [
3367 "$interval"
3368 ],
3369 "type": "time"
3370 },
3371 {
3372 "params": [
3373 "null"
3374 ],
3375 "type": "fill"
3376 }
3377 ],
3378 "measurement": "host_vmstat",
3379 "orderByTime": "ASC",
3380 "policy": "default",
3381 "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)",
3382 "rawQuery": false,
3383 "resultFormat": "time_series",
3384 "select": [
3385 [
3386 {
3387 "params": [
3388 "idle"
3389 ],
3390 "type": "field"
3391 },
3392 {
3393 "params": [],
3394 "type": "sum"
3395 }
3396 ]
3397 ],
3398 "tags": []
3399 },
3400 "labels": {
3401 "grafana.app/export-label": "influxdb-1"
3402 }
3403 },
3404 "refId": "D",
3405 "hidden": false
3406 }
3407 }
3408 ],
3409 "transformations": [],
3410 "queryOptions": {}
3411 }
3412 },
3413 "vizConfig": {
3414 "kind": "VizConfig",
3415 "group": "timeseries",
3416 "version": "13.0.1+security-01",
3417 "spec": {
3418 "options": {
3419 "annotations": {
3420 "clustering": -1,
3421 "multiLane": false
3422 },
3423 "legend": {
3424 "calcs": [],
3425 "displayMode": "list",
3426 "placement": "bottom",
3427 "showLegend": true
3428 },
3429 "tooltip": {
3430 "hideZeros": false,
3431 "mode": "single",
3432 "sort": "none"
3433 }
3434 },
3435 "fieldConfig": {
3436 "defaults": {
3437 "thresholds": {
3438 "mode": "absolute",
3439 "steps": [
3440 {
3441 "value": 0,
3442 "color": "green"
3443 },
3444 {
3445 "value": 80,
3446 "color": "red"
3447 }
3448 ]
3449 },
3450 "color": {
3451 "mode": "palette-classic"
3452 },
3453 "custom": {
3454 "axisBorderShow": false,
3455 "axisCenteredZero": false,
3456 "axisColorMode": "text",
3457 "axisLabel": "",
3458 "axisPlacement": "auto",
3459 "barAlignment": 0,
3460 "barWidthFactor": 0.6,
3461 "drawStyle": "line",
3462 "fillOpacity": 10,
3463 "gradientMode": "none",
3464 "hideFrom": {
3465 "legend": false,
3466 "tooltip": false,
3467 "viz": false
3468 },
3469 "insertNulls": false,
3470 "lineInterpolation": "smooth",
3471 "lineWidth": 1,
3472 "pointSize": 5,
3473 "scaleDistribution": {
3474 "type": "linear"
3475 },
3476 "showPoints": "auto",
3477 "showValues": false,
3478 "spanNulls": false,
3479 "stacking": {
3480 "group": "A",
3481 "mode": "none"
3482 },
3483 "thresholdsStyle": {
3484 "mode": "off"
3485 }
3486 }
3487 },
3488 "overrides": []
3489 }
3490 }
3491 }
3492 }
3493 },
3494 "panel-26": {
3495 "kind": "Panel",
3496 "spec": {
3497 "id": 26,
3498 "title": "vmstat interrupts",
3499 "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 — процессор загружен полностью.",
3500 "links": [],
3501 "data": {
3502 "kind": "QueryGroup",
3503 "spec": {
3504 "queries": [
3505 {
3506 "kind": "PanelQuery",
3507 "spec": {
3508 "query": {
3509 "kind": "DataQuery",
3510 "group": "influxdb",
3511 "version": "v0",
3512 "spec": {
3513 "alias": "in",
3514 "groupBy": [
3515 {
3516 "params": [
3517 "$interval"
3518 ],
3519 "type": "time"
3520 },
3521 {
3522 "params": [
3523 "null"
3524 ],
3525 "type": "fill"
3526 }
3527 ],
3528 "measurement": "host_vmstat",
3529 "orderByTime": "ASC",
3530 "policy": "default",
3531 "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)",
3532 "rawQuery": false,
3533 "resultFormat": "time_series",
3534 "select": [
3535 [
3536 {
3537 "params": [
3538 "intr"
3539 ],
3540 "type": "field"
3541 },
3542 {
3543 "params": [],
3544 "type": "sum"
3545 }
3546 ]
3547 ],
3548 "tags": []
3549 },
3550 "labels": {
3551 "grafana.app/export-label": "influxdb-1"
3552 }
3553 },
3554 "refId": "C",
3555 "hidden": false
3556 }
3557 }
3558 ],
3559 "transformations": [],
3560 "queryOptions": {}
3561 }
3562 },
3563 "vizConfig": {
3564 "kind": "VizConfig",
3565 "group": "timeseries",
3566 "version": "13.0.1+security-01",
3567 "spec": {
3568 "options": {
3569 "annotations": {
3570 "clustering": -1,
3571 "multiLane": false
3572 },
3573 "legend": {
3574 "calcs": [],
3575 "displayMode": "list",
3576 "placement": "bottom",
3577 "showLegend": true
3578 },
3579 "tooltip": {
3580 "hideZeros": false,
3581 "mode": "single",
3582 "sort": "none"
3583 }
3584 },
3585 "fieldConfig": {
3586 "defaults": {
3587 "thresholds": {
3588 "mode": "absolute",
3589 "steps": [
3590 {
3591 "value": 0,
3592 "color": "green"
3593 },
3594 {
3595 "value": 80,
3596 "color": "red"
3597 }
3598 ]
3599 },
3600 "color": {
3601 "mode": "palette-classic"
3602 },
3603 "custom": {
3604 "axisBorderShow": false,
3605 "axisCenteredZero": false,
3606 "axisColorMode": "text",
3607 "axisLabel": "",
3608 "axisPlacement": "auto",
3609 "barAlignment": 0,
3610 "barWidthFactor": 0.6,
3611 "drawStyle": "line",
3612 "fillOpacity": 10,
3613 "gradientMode": "none",
3614 "hideFrom": {
3615 "legend": false,
3616 "tooltip": false,
3617 "viz": false
3618 },
3619 "insertNulls": false,
3620 "lineInterpolation": "smooth",
3621 "lineWidth": 1,
3622 "pointSize": 5,
3623 "scaleDistribution": {
3624 "type": "linear"
3625 },
3626 "showPoints": "auto",
3627 "showValues": false,
3628 "spanNulls": false,
3629 "stacking": {
3630 "group": "A",
3631 "mode": "none"
3632 },
3633 "thresholdsStyle": {
3634 "mode": "off"
3635 }
3636 }
3637 },
3638 "overrides": []
3639 }
3640 }
3641 }
3642 }
3643 },
3644 "panel-27": {
3645 "kind": "Panel",
3646 "spec": {
3647 "id": 27,
3648 "title": "ebpf",
3649 "description": "",
3650 "links": [],
3651 "data": {
3652 "kind": "QueryGroup",
3653 "spec": {
3654 "queries": [
3655 {
3656 "kind": "PanelQuery",
3657 "spec": {
3658 "query": {
3659 "kind": "DataQuery",
3660 "group": "influxdb",
3661 "version": "v0",
3662 "spec": {
3663 "alias": "fsync",
3664 "groupBy": [
3665 {
3666 "params": [
3667 "$interval"
3668 ],
3669 "type": "time"
3670 },
3671 {
3672 "params": [
3673 "null"
3674 ],
3675 "type": "fill"
3676 }
3677 ],
3678 "measurement": "samba_ebpf",
3679 "orderByTime": "ASC",
3680 "policy": "default",
3681 "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)",
3682 "rawQuery": false,
3683 "resultFormat": "time_series",
3684 "select": [
3685 [
3686 {
3687 "params": [
3688 "fsync"
3689 ],
3690 "type": "field"
3691 },
3692 {
3693 "params": [],
3694 "type": "sum"
3695 }
3696 ]
3697 ],
3698 "tags": []
3699 },
3700 "labels": {
3701 "grafana.app/export-label": "influxdb-1"
3702 }
3703 },
3704 "refId": "A",
3705 "hidden": false
3706 }
3707 },
3708 {
3709 "kind": "PanelQuery",
3710 "spec": {
3711 "query": {
3712 "kind": "DataQuery",
3713 "group": "influxdb",
3714 "version": "v0",
3715 "spec": {
3716 "alias": "ldb",
3717 "groupBy": [
3718 {
3719 "params": [
3720 "$interval"
3721 ],
3722 "type": "time"
3723 },
3724 {
3725 "params": [
3726 "null"
3727 ],
3728 "type": "fill"
3729 }
3730 ],
3731 "measurement": "samba_ebpf",
3732 "orderByTime": "ASC",
3733 "policy": "default",
3734 "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)",
3735 "rawQuery": false,
3736 "resultFormat": "time_series",
3737 "select": [
3738 [
3739 {
3740 "params": [
3741 "ldb"
3742 ],
3743 "type": "field"
3744 },
3745 {
3746 "params": [],
3747 "type": "sum"
3748 }
3749 ]
3750 ],
3751 "tags": []
3752 },
3753 "labels": {
3754 "grafana.app/export-label": "influxdb-1"
3755 }
3756 },
3757 "refId": "B",
3758 "hidden": false
3759 }
3760 }
3761 ],
3762 "transformations": [],
3763 "queryOptions": {}
3764 }
3765 },
3766 "vizConfig": {
3767 "kind": "VizConfig",
3768 "group": "timeseries",
3769 "version": "13.0.1+security-01",
3770 "spec": {
3771 "options": {
3772 "annotations": {
3773 "clustering": -1,
3774 "multiLane": false
3775 },
3776 "legend": {
3777 "calcs": [],
3778 "displayMode": "list",
3779 "placement": "bottom",
3780 "showLegend": true
3781 },
3782 "tooltip": {
3783 "hideZeros": false,
3784 "mode": "single",
3785 "sort": "none"
3786 }
3787 },
3788 "fieldConfig": {
3789 "defaults": {
3790 "thresholds": {
3791 "mode": "absolute",
3792 "steps": [
3793 {
3794 "value": 0,
3795 "color": "green"
3796 },
3797 {
3798 "value": 80,
3799 "color": "red"
3800 }
3801 ]
3802 },
3803 "color": {
3804 "mode": "palette-classic"
3805 },
3806 "custom": {
3807 "axisBorderShow": false,
3808 "axisCenteredZero": false,
3809 "axisColorMode": "text",
3810 "axisLabel": "",
3811 "axisPlacement": "auto",
3812 "barAlignment": 0,
3813 "barWidthFactor": 0.6,
3814 "drawStyle": "line",
3815 "fillOpacity": 10,
3816 "gradientMode": "none",
3817 "hideFrom": {
3818 "legend": false,
3819 "tooltip": false,
3820 "viz": false
3821 },
3822 "insertNulls": false,
3823 "lineInterpolation": "smooth",
3824 "lineWidth": 1,
3825 "pointSize": 5,
3826 "scaleDistribution": {
3827 "type": "linear"
3828 },
3829 "showPoints": "auto",
3830 "showValues": false,
3831 "spanNulls": false,
3832 "stacking": {
3833 "group": "A",
3834 "mode": "none"
3835 },
3836 "thresholdsStyle": {
3837 "mode": "off"
3838 }
3839 }
3840 },
3841 "overrides": []
3842 }
3843 }
3844 }
3845 }
3846 },
3847 "panel-28": {
3848 "kind": "Panel",
3849 "spec": {
3850 "id": 28,
3851 "title": "ebpf summ",
3852 "description": "* Режим чистого чтения [ R ]: Метрика ldb_search_events растет (пользователи входят \n в сеть), а syscall_fsync_events держится около нуля. База в RAM работает идеально.\n* Режим записи [ W ] / [ CW ]: Метрика syscall_fsync_events начинает расти синхронно \n с действиями пользователей. Это означает, что изменения фиксируются на диск. \n Если график упирается в производительность ваших дисков, время ответа Samba \n будет увеличиваться (растут задержки аутентификации).\n\nO=Open (Открытие файла для записи/изменения)\n\nRO=Read Only (Открытие файла строго для чтения)\n\nR=Read (Чтение данных из файла)\n\nW=Write (Запись измененных данных в кэш памяти)\n\nCW=Commit/Close Write (Фиксация транзакции и принудительный сброс на диск)",
3853 "links": [],
3854 "data": {
3855 "kind": "QueryGroup",
3856 "spec": {
3857 "queries": [
3858 {
3859 "kind": "PanelQuery",
3860 "spec": {
3861 "query": {
3862 "kind": "DataQuery",
3863 "group": "influxdb",
3864 "version": "v0",
3865 "spec": {
3866 "alias": "fsync",
3867 "groupBy": [
3868 {
3869 "params": [
3870 "$interval"
3871 ],
3872 "type": "time"
3873 },
3874 {
3875 "params": [
3876 "null"
3877 ],
3878 "type": "fill"
3879 }
3880 ],
3881 "measurement": "samba_ebpf",
3882 "orderByTime": "ASC",
3883 "policy": "default",
3884 "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)",
3885 "rawQuery": false,
3886 "resultFormat": "time_series",
3887 "select": [
3888 [
3889 {
3890 "params": [
3891 "fsync"
3892 ],
3893 "type": "field"
3894 },
3895 {
3896 "params": [],
3897 "type": "sum"
3898 },
3899 {
3900 "params": [],
3901 "type": "cumulative_sum"
3902 }
3903 ]
3904 ],
3905 "tags": []
3906 },
3907 "labels": {
3908 "grafana.app/export-label": "influxdb-1"
3909 }
3910 },
3911 "refId": "A",
3912 "hidden": false
3913 }
3914 },
3915 {
3916 "kind": "PanelQuery",
3917 "spec": {
3918 "query": {
3919 "kind": "DataQuery",
3920 "group": "influxdb",
3921 "version": "v0",
3922 "spec": {
3923 "alias": "ldb",
3924 "groupBy": [
3925 {
3926 "params": [
3927 "$interval"
3928 ],
3929 "type": "time"
3930 },
3931 {
3932 "params": [
3933 "null"
3934 ],
3935 "type": "fill"
3936 }
3937 ],
3938 "measurement": "samba_ebpf",
3939 "orderByTime": "ASC",
3940 "policy": "default",
3941 "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)",
3942 "rawQuery": false,
3943 "resultFormat": "time_series",
3944 "select": [
3945 [
3946 {
3947 "params": [
3948 "ldb"
3949 ],
3950 "type": "field"
3951 },
3952 {
3953 "params": [],
3954 "type": "sum"
3955 },
3956 {
3957 "params": [],
3958 "type": "cumulative_sum"
3959 }
3960 ]
3961 ],
3962 "tags": []
3963 },
3964 "labels": {
3965 "grafana.app/export-label": "influxdb-1"
3966 }
3967 },
3968 "refId": "B",
3969 "hidden": false
3970 }
3971 }
3972 ],
3973 "transformations": [],
3974 "queryOptions": {}
3975 }
3976 },
3977 "vizConfig": {
3978 "kind": "VizConfig",
3979 "group": "stat",
3980 "version": "13.0.1+security-01",
3981 "spec": {
3982 "options": {
3983 "colorMode": "value",
3984 "graphMode": "area",
3985 "justifyMode": "auto",
3986 "orientation": "auto",
3987 "percentChangeColorMode": "standard",
3988 "reduceOptions": {
3989 "calcs": [
3990 "lastNotNull"
3991 ],
3992 "fields": "",
3993 "values": false
3994 },
3995 "showPercentChange": false,
3996 "textMode": "auto",
3997 "wideLayout": true
3998 },
3999 "fieldConfig": {
4000 "defaults": {
4001 "thresholds": {
4002 "mode": "absolute",
4003 "steps": [
4004 {
4005 "value": 0,
4006 "color": "green"
4007 },
4008 {
4009 "value": 80,
4010 "color": "red"
4011 }
4012 ]
4013 },
4014 "color": {
4015 "mode": "palette-classic"
4016 }
4017 },
4018 "overrides": []
4019 }
4020 }
4021 }
4022 }
4023 },
4024 "panel-29": {
4025 "kind": "Panel",
4026 "spec": {
4027 "id": 29,
4028 "title": "DNS activity",
4029 "description": "",
4030 "links": [],
4031 "data": {
4032 "kind": "QueryGroup",
4033 "spec": {
4034 "queries": [
4035 {
4036 "kind": "PanelQuery",
4037 "spec": {
4038 "query": {
4039 "kind": "DataQuery",
4040 "group": "influxdb",
4041 "version": "v0",
4042 "spec": {
4043 "alias": "rcode=0",
4044 "groupBy": [
4045 {
4046 "params": [
4047 "$interval"
4048 ],
4049 "type": "time"
4050 },
4051 {
4052 "params": [
4053 "null"
4054 ],
4055 "type": "fill"
4056 }
4057 ],
4058 "measurement": "samba_dns_rcode",
4059 "orderByTime": "ASC",
4060 "policy": "default",
4061 "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)",
4062 "rawQuery": false,
4063 "resultFormat": "time_series",
4064 "select": [
4065 [
4066 {
4067 "params": [
4068 "rcode"
4069 ],
4070 "type": "field"
4071 },
4072 {
4073 "params": [],
4074 "type": "count"
4075 }
4076 ]
4077 ],
4078 "tags": [
4079 {
4080 "key": "rcode::field",
4081 "operator": "=",
4082 "value": "0"
4083 },
4084 {
4085 "condition": "AND",
4086 "key": "direction::tag",
4087 "operator": "=",
4088 "value": "out_packet"
4089 }
4090 ]
4091 },
4092 "labels": {
4093 "grafana.app/export-label": "influxdb-1"
4094 }
4095 },
4096 "refId": "A",
4097 "hidden": false
4098 }
4099 },
4100 {
4101 "kind": "PanelQuery",
4102 "spec": {
4103 "query": {
4104 "kind": "DataQuery",
4105 "group": "influxdb",
4106 "version": "v0",
4107 "spec": {
4108 "alias": "rcode=3",
4109 "groupBy": [
4110 {
4111 "params": [
4112 "$interval"
4113 ],
4114 "type": "time"
4115 },
4116 {
4117 "params": [
4118 "null"
4119 ],
4120 "type": "fill"
4121 }
4122 ],
4123 "measurement": "samba_dns_rcode",
4124 "orderByTime": "ASC",
4125 "policy": "default",
4126 "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)",
4127 "rawQuery": false,
4128 "resultFormat": "time_series",
4129 "select": [
4130 [
4131 {
4132 "params": [
4133 "rcode"
4134 ],
4135 "type": "field"
4136 },
4137 {
4138 "params": [],
4139 "type": "count"
4140 }
4141 ]
4142 ],
4143 "tags": [
4144 {
4145 "key": "rcode::field",
4146 "operator": "=",
4147 "value": "3"
4148 },
4149 {
4150 "condition": "AND",
4151 "key": "direction::tag",
4152 "operator": "=",
4153 "value": "out_packet"
4154 }
4155 ]
4156 },
4157 "labels": {
4158 "grafana.app/export-label": "influxdb-1"
4159 }
4160 },
4161 "refId": "B",
4162 "hidden": false
4163 }
4164 }
4165 ],
4166 "transformations": [],
4167 "queryOptions": {}
4168 }
4169 },
4170 "vizConfig": {
4171 "kind": "VizConfig",
4172 "group": "timeseries",
4173 "version": "13.0.1+security-01",
4174 "spec": {
4175 "options": {
4176 "annotations": {
4177 "clustering": -1,
4178 "multiLane": false
4179 },
4180 "legend": {
4181 "calcs": [],
4182 "displayMode": "list",
4183 "placement": "bottom",
4184 "showLegend": true
4185 },
4186 "tooltip": {
4187 "hideZeros": false,
4188 "mode": "single",
4189 "sort": "none"
4190 }
4191 },
4192 "fieldConfig": {
4193 "defaults": {
4194 "thresholds": {
4195 "mode": "absolute",
4196 "steps": [
4197 {
4198 "value": 0,
4199 "color": "green"
4200 },
4201 {
4202 "value": 80,
4203 "color": "red"
4204 }
4205 ]
4206 },
4207 "color": {
4208 "mode": "palette-classic"
4209 },
4210 "custom": {
4211 "axisBorderShow": false,
4212 "axisCenteredZero": false,
4213 "axisColorMode": "text",
4214 "axisLabel": "",
4215 "axisPlacement": "auto",
4216 "barAlignment": 0,
4217 "barWidthFactor": 0.6,
4218 "drawStyle": "line",
4219 "fillOpacity": 10,
4220 "gradientMode": "none",
4221 "hideFrom": {
4222 "legend": false,
4223 "tooltip": false,
4224 "viz": false
4225 },
4226 "insertNulls": false,
4227 "lineInterpolation": "smooth",
4228 "lineWidth": 1,
4229 "pointSize": 5,
4230 "scaleDistribution": {
4231 "type": "linear"
4232 },
4233 "showPoints": "auto",
4234 "showValues": false,
4235 "spanNulls": false,
4236 "stacking": {
4237 "group": "A",
4238 "mode": "none"
4239 },
4240 "thresholdsStyle": {
4241 "mode": "off"
4242 }
4243 }
4244 },
4245 "overrides": []
4246 }
4247 }
4248 }
4249 }
4250 },
4251 "panel-3": {
4252 "kind": "Panel",
4253 "spec": {
4254 "id": 3,
4255 "title": "DSDB: система vs пользователь",
4256 "description": "Изменения каталога с разбивкой по performedAsSystem (true = выполнено системой).",
4257 "links": [],
4258 "data": {
4259 "kind": "QueryGroup",
4260 "spec": {
4261 "queries": [
4262 {
4263 "kind": "PanelQuery",
4264 "spec": {
4265 "query": {
4266 "kind": "DataQuery",
4267 "group": "influxdb",
4268 "version": "v0",
4269 "spec": {
4270 "groupBy": [],
4271 "measurement": "samba_dsdb",
4272 "orderByTime": "ASC",
4273 "policy": "default",
4274 "query": "SELECT count(\"status_code\") FROM \"samba_dsdb\" WHERE $timeFilter GROUP BY time($interval), \"as_system\"::tag fill(null)",
4275 "rawQuery": true,
4276 "resultFormat": "time_series",
4277 "select": [],
4278 "tags": []
4279 },
4280 "labels": {
4281 "grafana.app/export-label": "influxdb-1"
4282 }
4283 },
4284 "refId": "A",
4285 "hidden": false
4286 }
4287 }
4288 ],
4289 "transformations": [],
4290 "queryOptions": {}
4291 }
4292 },
4293 "vizConfig": {
4294 "kind": "VizConfig",
4295 "group": "timeseries",
4296 "version": "13.0.1+security-01",
4297 "spec": {
4298 "options": {
4299 "annotations": {
4300 "clustering": -1,
4301 "multiLane": false
4302 },
4303 "legend": {
4304 "calcs": [],
4305 "displayMode": "list",
4306 "placement": "bottom",
4307 "showLegend": true
4308 },
4309 "tooltip": {
4310 "hideZeros": false,
4311 "mode": "multi",
4312 "sort": "desc"
4313 }
4314 },
4315 "fieldConfig": {
4316 "defaults": {
4317 "thresholds": {
4318 "mode": "absolute",
4319 "steps": [
4320 {
4321 "value": 0,
4322 "color": "green"
4323 },
4324 {
4325 "value": 80,
4326 "color": "red"
4327 }
4328 ]
4329 },
4330 "color": {
4331 "mode": "palette-classic"
4332 },
4333 "custom": {
4334 "axisBorderShow": false,
4335 "axisCenteredZero": false,
4336 "axisColorMode": "text",
4337 "axisLabel": "",
4338 "axisPlacement": "auto",
4339 "barAlignment": 0,
4340 "barWidthFactor": 0.6,
4341 "drawStyle": "line",
4342 "fillOpacity": 20,
4343 "gradientMode": "none",
4344 "hideFrom": {
4345 "legend": false,
4346 "tooltip": false,
4347 "viz": false
4348 },
4349 "insertNulls": false,
4350 "lineInterpolation": "smooth",
4351 "lineWidth": 1,
4352 "pointSize": 5,
4353 "scaleDistribution": {
4354 "type": "linear"
4355 },
4356 "showPoints": "auto",
4357 "showValues": false,
4358 "spanNulls": false,
4359 "stacking": {
4360 "group": "A",
4361 "mode": "none"
4362 },
4363 "thresholdsStyle": {
4364 "mode": "off"
4365 }
4366 }
4367 },
4368 "overrides": []
4369 }
4370 }
4371 }
4372 }
4373 },
4374 "panel-30": {
4375 "kind": "Panel",
4376 "spec": {
4377 "id": 30,
4378 "title": "SMB activity",
4379 "description": "",
4380 "links": [],
4381 "data": {
4382 "kind": "QueryGroup",
4383 "spec": {
4384 "queries": [
4385 {
4386 "kind": "PanelQuery",
4387 "spec": {
4388 "query": {
4389 "kind": "DataQuery",
4390 "group": "influxdb",
4391 "version": "v0",
4392 "spec": {
4393 "alias": "user_smb",
4394 "groupBy": [
4395 {
4396 "params": [
4397 "$interval"
4398 ],
4399 "type": "time"
4400 },
4401 {
4402 "params": [
4403 "domain::tag"
4404 ],
4405 "type": "tag"
4406 },
4407 {
4408 "params": [
4409 "null"
4410 ],
4411 "type": "fill"
4412 }
4413 ],
4414 "measurement": "samba_authz",
4415 "orderByTime": "ASC",
4416 "policy": "default",
4417 "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)",
4418 "rawQuery": false,
4419 "resultFormat": "time_series",
4420 "select": [
4421 [
4422 {
4423 "params": [
4424 "auth_type"
4425 ],
4426 "type": "field"
4427 },
4428 {
4429 "params": [],
4430 "type": "count"
4431 },
4432 {
4433 "params": [],
4434 "type": "cumulative_sum"
4435 }
4436 ]
4437 ],
4438 "tags": [
4439 {
4440 "key": "service::tag",
4441 "operator": "=",
4442 "value": "SMB2"
4443 },
4444 {
4445 "condition": "AND",
4446 "key": "auth_type::field",
4447 "operator": "=",
4448 "value": "krb5"
4449 },
4450 {
4451 "condition": "AND",
4452 "key": "account::tag",
4453 "operator": "=~",
4454 "value": "/^user-/"
4455 },
4456 {
4457 "condition": "OR",
4458 "key": "account::tag",
4459 "operator": "=~",
4460 "value": "/^tuser/"
4461 }
4462 ]
4463 },
4464 "labels": {
4465 "grafana.app/export-label": "influxdb-1"
4466 }
4467 },
4468 "refId": "A",
4469 "hidden": false
4470 }
4471 },
4472 {
4473 "kind": "PanelQuery",
4474 "spec": {
4475 "query": {
4476 "kind": "DataQuery",
4477 "group": "influxdb",
4478 "version": "v0",
4479 "spec": {
4480 "alias": "machine_smb",
4481 "groupBy": [
4482 {
4483 "params": [
4484 "$interval"
4485 ],
4486 "type": "time"
4487 },
4488 {
4489 "params": [
4490 "domain::tag"
4491 ],
4492 "type": "tag"
4493 },
4494 {
4495 "params": [
4496 "null"
4497 ],
4498 "type": "fill"
4499 }
4500 ],
4501 "measurement": "samba_authz",
4502 "orderByTime": "ASC",
4503 "policy": "default",
4504 "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)",
4505 "rawQuery": false,
4506 "resultFormat": "time_series",
4507 "select": [
4508 [
4509 {
4510 "params": [
4511 "auth_type"
4512 ],
4513 "type": "field"
4514 },
4515 {
4516 "params": [],
4517 "type": "count"
4518 },
4519 {
4520 "params": [],
4521 "type": "cumulative_sum"
4522 }
4523 ]
4524 ],
4525 "tags": [
4526 {
4527 "key": "service::tag",
4528 "operator": "=",
4529 "value": "SMB2"
4530 },
4531 {
4532 "condition": "AND",
4533 "key": "auth_type::field",
4534 "operator": "=",
4535 "value": "krb5"
4536 },
4537 {
4538 "condition": "AND",
4539 "key": "account::tag",
4540 "operator": "=~",
4541 "value": "/^MACHINE/"
4542 }
4543 ]
4544 },
4545 "labels": {
4546 "grafana.app/export-label": "influxdb-1"
4547 }
4548 },
4549 "refId": "B",
4550 "hidden": false
4551 }
4552 }
4553 ],
4554 "transformations": [],
4555 "queryOptions": {}
4556 }
4557 },
4558 "vizConfig": {
4559 "kind": "VizConfig",
4560 "group": "stat",
4561 "version": "13.0.1+security-01",
4562 "spec": {
4563 "options": {
4564 "colorMode": "value",
4565 "graphMode": "area",
4566 "justifyMode": "auto",
4567 "orientation": "auto",
4568 "percentChangeColorMode": "standard",
4569 "reduceOptions": {
4570 "calcs": [
4571 "lastNotNull"
4572 ],
4573 "fields": "",
4574 "values": false
4575 },
4576 "showPercentChange": false,
4577 "textMode": "auto",
4578 "wideLayout": true
4579 },
4580 "fieldConfig": {
4581 "defaults": {
4582 "thresholds": {
4583 "mode": "absolute",
4584 "steps": [
4585 {
4586 "value": 0,
4587 "color": "green"
4588 },
4589 {
4590 "value": 80,
4591 "color": "red"
4592 }
4593 ]
4594 },
4595 "color": {
4596 "mode": "palette-classic"
4597 }
4598 },
4599 "overrides": []
4600 }
4601 }
4602 }
4603 }
4604 },
4605 "panel-32": {
4606 "kind": "Panel",
4607 "spec": {
4608 "id": 32,
4609 "title": "Логины (user) MIN/MAX/AVG",
4610 "description": "Успешные пользовательские логины (account =~ /^user|^loadtest|^tuser/, status = NT_STATUS_OK) за один интервал $interval, максимум по выбранному диапазону времени.",
4611 "links": [],
4612 "data": {
4613 "kind": "QueryGroup",
4614 "spec": {
4615 "queries": [
4616 {
4617 "kind": "PanelQuery",
4618 "spec": {
4619 "query": {
4620 "kind": "DataQuery",
4621 "group": "influxdb",
4622 "version": "v0",
4623 "spec": {
4624 "alias": "user_logins",
4625 "groupBy": [
4626 {
4627 "params": [
4628 "$interval"
4629 ],
4630 "type": "time"
4631 },
4632 {
4633 "params": [
4634 "null"
4635 ],
4636 "type": "fill"
4637 }
4638 ],
4639 "measurement": "samba_auth",
4640 "orderByTime": "ASC",
4641 "policy": "default",
4642 "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND (\"account\"::tag =~ /^user/ OR \"account\"::tag =~ /^loadtest/ OR \"account\"::tag =~ /^tuser/)) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
4643 "rawQuery": true,
4644 "resultFormat": "time_series",
4645 "select": [
4646 [
4647 {
4648 "params": [
4649 "client_account"
4650 ],
4651 "type": "field"
4652 },
4653 {
4654 "params": [],
4655 "type": "count"
4656 }
4657 ]
4658 ],
4659 "tags": [
4660 {
4661 "key": "status::tag",
4662 "operator": "=",
4663 "value": "NT_STATUS_OK"
4664 },
4665 {
4666 "condition": "AND",
4667 "key": "account::tag",
4668 "operator": "=~",
4669 "value": "/^user/"
4670 },
4671 {
4672 "condition": "OR",
4673 "key": "account::tag",
4674 "operator": "=~",
4675 "value": "/^loadtest/"
4676 },
4677 {
4678 "condition": "OR",
4679 "key": "account::tag",
4680 "operator": "=~",
4681 "value": "/^tuser/"
4682 }
4683 ]
4684 },
4685 "labels": {
4686 "grafana.app/export-label": "influxdb-1"
4687 }
4688 },
4689 "refId": "A",
4690 "hidden": true
4691 }
4692 },
4693 {
4694 "kind": "PanelQuery",
4695 "spec": {
4696 "query": {
4697 "kind": "DataQuery",
4698 "group": "__expr__",
4699 "version": "v0",
4700 "spec": {
4701 "conditions": [
4702 {
4703 "evaluator": {
4704 "params": [
4705 0,
4706 0
4707 ],
4708 "type": "gt"
4709 },
4710 "query": {
4711 "params": []
4712 },
4713 "reducer": {
4714 "params": [],
4715 "type": "last"
4716 },
4717 "type": "query"
4718 }
4719 ],
4720 "downsampler": "max",
4721 "expression": "A",
4722 "reducer": "min",
4723 "type": "reduce",
4724 "upsampler": "backfilling",
4725 "window": "$interval"
4726 },
4727 "labels": {
4728 "grafana.app/export-label": "__expr__-1"
4729 }
4730 },
4731 "refId": "B",
4732 "hidden": false
4733 }
4734 },
4735 {
4736 "kind": "PanelQuery",
4737 "spec": {
4738 "query": {
4739 "kind": "DataQuery",
4740 "group": "__expr__",
4741 "version": "v0",
4742 "spec": {
4743 "conditions": [
4744 {
4745 "evaluator": {
4746 "params": [
4747 0,
4748 0
4749 ],
4750 "type": "gt"
4751 },
4752 "query": {
4753 "params": []
4754 },
4755 "reducer": {
4756 "params": [],
4757 "type": "last"
4758 },
4759 "type": "query"
4760 }
4761 ],
4762 "downsampler": "max",
4763 "expression": "A",
4764 "reducer": "max",
4765 "type": "reduce",
4766 "upsampler": "backfilling",
4767 "window": "$interval"
4768 },
4769 "labels": {
4770 "grafana.app/export-label": "__expr__-1"
4771 }
4772 },
4773 "refId": "C",
4774 "hidden": false
4775 }
4776 },
4777 {
4778 "kind": "PanelQuery",
4779 "spec": {
4780 "query": {
4781 "kind": "DataQuery",
4782 "group": "__expr__",
4783 "version": "v0",
4784 "spec": {
4785 "conditions": [
4786 {
4787 "evaluator": {
4788 "params": [
4789 0,
4790 0
4791 ],
4792 "type": "gt"
4793 },
4794 "query": {
4795 "params": []
4796 },
4797 "reducer": {
4798 "params": [],
4799 "type": "last"
4800 },
4801 "type": "query"
4802 }
4803 ],
4804 "downsampler": "max",
4805 "expression": "A",
4806 "reducer": "median",
4807 "type": "reduce",
4808 "upsampler": "backfilling",
4809 "window": "$interval"
4810 },
4811 "labels": {
4812 "grafana.app/export-label": "__expr__-1"
4813 }
4814 },
4815 "refId": "D",
4816 "hidden": false
4817 }
4818 }
4819 ],
4820 "transformations": [],
4821 "queryOptions": {}
4822 }
4823 },
4824 "vizConfig": {
4825 "kind": "VizConfig",
4826 "group": "gauge",
4827 "version": "13.0.1+security-01",
4828 "spec": {
4829 "options": {
4830 "barShape": "flat",
4831 "barWidthFactor": 0.5,
4832 "effects": {
4833 "barGlow": false,
4834 "centerGlow": false,
4835 "gradient": true
4836 },
4837 "endpointMarker": "point",
4838 "minVizHeight": 75,
4839 "minVizWidth": 75,
4840 "orientation": "auto",
4841 "reduceOptions": {
4842 "calcs": [
4843 "max"
4844 ],
4845 "fields": "",
4846 "values": false
4847 },
4848 "segmentCount": 1,
4849 "segmentSpacing": 0.3,
4850 "shape": "gauge",
4851 "showThresholdLabels": false,
4852 "showThresholdMarkers": true,
4853 "sizing": "auto",
4854 "sparkline": true,
4855 "textMode": "auto"
4856 },
4857 "fieldConfig": {
4858 "defaults": {
4859 "thresholds": {
4860 "mode": "absolute",
4861 "steps": [
4862 {
4863 "value": 0,
4864 "color": "green"
4865 },
4866 {
4867 "value": 80,
4868 "color": "red"
4869 }
4870 ]
4871 },
4872 "color": {
4873 "mode": "thresholds"
4874 }
4875 },
4876 "overrides": []
4877 }
4878 }
4879 }
4880 }
4881 },
4882 "panel-4": {
4883 "kind": "Panel",
4884 "spec": {
4885 "id": 4,
4886 "title": "DSDB: топ инициаторов (SID)",
4887 "description": "Кто инициировал изменения каталога — разбивка по userSid.",
4888 "links": [],
4889 "data": {
4890 "kind": "QueryGroup",
4891 "spec": {
4892 "queries": [
4893 {
4894 "kind": "PanelQuery",
4895 "spec": {
4896 "query": {
4897 "kind": "DataQuery",
4898 "group": "influxdb",
4899 "version": "v0",
4900 "spec": {
4901 "groupBy": [],
4902 "measurement": "samba_dsdb",
4903 "orderByTime": "ASC",
4904 "policy": "default",
4905 "query": "SELECT count(\"status_code\") FROM \"samba_dsdb\" WHERE $timeFilter GROUP BY time($interval), \"user_sid\"::tag fill(null)",
4906 "rawQuery": true,
4907 "resultFormat": "time_series",
4908 "select": [],
4909 "tags": []
4910 },
4911 "labels": {
4912 "grafana.app/export-label": "influxdb-1"
4913 }
4914 },
4915 "refId": "A",
4916 "hidden": false
4917 }
4918 }
4919 ],
4920 "transformations": [],
4921 "queryOptions": {}
4922 }
4923 },
4924 "vizConfig": {
4925 "kind": "VizConfig",
4926 "group": "timeseries",
4927 "version": "13.0.1+security-01",
4928 "spec": {
4929 "options": {
4930 "annotations": {
4931 "clustering": -1,
4932 "multiLane": false
4933 },
4934 "legend": {
4935 "calcs": [
4936 "sum"
4937 ],
4938 "displayMode": "table",
4939 "placement": "right",
4940 "showLegend": true
4941 },
4942 "tooltip": {
4943 "hideZeros": false,
4944 "mode": "multi",
4945 "sort": "desc"
4946 }
4947 },
4948 "fieldConfig": {
4949 "defaults": {
4950 "thresholds": {
4951 "mode": "absolute",
4952 "steps": [
4953 {
4954 "value": 0,
4955 "color": "green"
4956 },
4957 {
4958 "value": 80,
4959 "color": "red"
4960 }
4961 ]
4962 },
4963 "color": {
4964 "mode": "palette-classic"
4965 },
4966 "custom": {
4967 "axisBorderShow": false,
4968 "axisCenteredZero": false,
4969 "axisColorMode": "text",
4970 "axisLabel": "",
4971 "axisPlacement": "auto",
4972 "barAlignment": 0,
4973 "barWidthFactor": 0.6,
4974 "drawStyle": "bars",
4975 "fillOpacity": 50,
4976 "gradientMode": "none",
4977 "hideFrom": {
4978 "legend": false,
4979 "tooltip": false,
4980 "viz": false
4981 },
4982 "insertNulls": false,
4983 "lineInterpolation": "linear",
4984 "lineWidth": 1,
4985 "pointSize": 5,
4986 "scaleDistribution": {
4987 "type": "linear"
4988 },
4989 "showPoints": "auto",
4990 "showValues": false,
4991 "spanNulls": false,
4992 "stacking": {
4993 "group": "A",
4994 "mode": "normal"
4995 },
4996 "thresholdsStyle": {
4997 "mode": "off"
4998 }
4999 }
5000 },
5001 "overrides": []
5002 }
5003 }
5004 }
5005 }
5006 },
5007 "panel-5": {
5008 "kind": "Panel",
5009 "spec": {
5010 "id": 5,
5011 "title": "Транзакции: длительность (mean/max)",
5012 "description": "Длительность транзакций каталога (samba_dsdb_tx) в микросекундах.",
5013 "links": [],
5014 "data": {
5015 "kind": "QueryGroup",
5016 "spec": {
5017 "queries": [
5018 {
5019 "kind": "PanelQuery",
5020 "spec": {
5021 "query": {
5022 "kind": "DataQuery",
5023 "group": "influxdb",
5024 "version": "v0",
5025 "spec": {
5026 "groupBy": [],
5027 "measurement": "samba_dsdb_tx",
5028 "orderByTime": "ASC",
5029 "policy": "default",
5030 "query": "SELECT mean(\"duration\") AS \"mean\", max(\"duration\") AS \"max\" FROM \"samba_dsdb_tx\" WHERE $timeFilter GROUP BY time($interval) fill(null)",
5031 "rawQuery": true,
5032 "resultFormat": "time_series",
5033 "select": [],
5034 "tags": []
5035 },
5036 "labels": {
5037 "grafana.app/export-label": "influxdb-1"
5038 }
5039 },
5040 "refId": "A",
5041 "hidden": false
5042 }
5043 }
5044 ],
5045 "transformations": [],
5046 "queryOptions": {}
5047 }
5048 },
5049 "vizConfig": {
5050 "kind": "VizConfig",
5051 "group": "timeseries",
5052 "version": "13.0.1+security-01",
5053 "spec": {
5054 "options": {
5055 "annotations": {
5056 "clustering": -1,
5057 "multiLane": false
5058 },
5059 "legend": {
5060 "calcs": [
5061 "mean",
5062 "max"
5063 ],
5064 "displayMode": "table",
5065 "placement": "bottom",
5066 "showLegend": true
5067 },
5068 "tooltip": {
5069 "hideZeros": false,
5070 "mode": "multi",
5071 "sort": "desc"
5072 }
5073 },
5074 "fieldConfig": {
5075 "defaults": {
5076 "unit": "µs",
5077 "thresholds": {
5078 "mode": "absolute",
5079 "steps": [
5080 {
5081 "value": 0,
5082 "color": "green"
5083 },
5084 {
5085 "value": 80,
5086 "color": "red"
5087 }
5088 ]
5089 },
5090 "color": {
5091 "mode": "palette-classic"
5092 },
5093 "custom": {
5094 "axisBorderShow": false,
5095 "axisCenteredZero": false,
5096 "axisColorMode": "text",
5097 "axisLabel": "",
5098 "axisPlacement": "auto",
5099 "barAlignment": 0,
5100 "barWidthFactor": 0.6,
5101 "drawStyle": "line",
5102 "fillOpacity": 10,
5103 "gradientMode": "none",
5104 "hideFrom": {
5105 "legend": false,
5106 "tooltip": false,
5107 "viz": false
5108 },
5109 "insertNulls": false,
5110 "lineInterpolation": "smooth",
5111 "lineWidth": 1,
5112 "pointSize": 5,
5113 "scaleDistribution": {
5114 "type": "linear"
5115 },
5116 "showPoints": "auto",
5117 "showValues": false,
5118 "spanNulls": false,
5119 "stacking": {
5120 "group": "A",
5121 "mode": "none"
5122 },
5123 "thresholdsStyle": {
5124 "mode": "off"
5125 }
5126 }
5127 },
5128 "overrides": []
5129 }
5130 }
5131 }
5132 }
5133 },
5134 "panel-6": {
5135 "kind": "Panel",
5136 "spec": {
5137 "id": 6,
5138 "title": "Транзакции по типу действия",
5139 "description": "Число транзакций каталога, разбивка по action (commit / rollback / prepare commit / begin).",
5140 "links": [],
5141 "data": {
5142 "kind": "QueryGroup",
5143 "spec": {
5144 "queries": [
5145 {
5146 "kind": "PanelQuery",
5147 "spec": {
5148 "query": {
5149 "kind": "DataQuery",
5150 "group": "influxdb",
5151 "version": "v0",
5152 "spec": {
5153 "groupBy": [],
5154 "measurement": "samba_dsdb_tx",
5155 "orderByTime": "ASC",
5156 "policy": "default",
5157 "query": "SELECT count(\"duration\") FROM \"samba_dsdb_tx\" WHERE $timeFilter GROUP BY time($interval), \"action\"::tag fill(null)",
5158 "rawQuery": true,
5159 "resultFormat": "time_series",
5160 "select": [],
5161 "tags": []
5162 },
5163 "labels": {
5164 "grafana.app/export-label": "influxdb-1"
5165 }
5166 },
5167 "refId": "A",
5168 "hidden": false
5169 }
5170 }
5171 ],
5172 "transformations": [],
5173 "queryOptions": {}
5174 }
5175 },
5176 "vizConfig": {
5177 "kind": "VizConfig",
5178 "group": "timeseries",
5179 "version": "13.0.1+security-01",
5180 "spec": {
5181 "options": {
5182 "annotations": {
5183 "clustering": -1,
5184 "multiLane": false
5185 },
5186 "legend": {
5187 "calcs": [],
5188 "displayMode": "list",
5189 "placement": "bottom",
5190 "showLegend": true
5191 },
5192 "tooltip": {
5193 "hideZeros": false,
5194 "mode": "multi",
5195 "sort": "desc"
5196 }
5197 },
5198 "fieldConfig": {
5199 "defaults": {
5200 "thresholds": {
5201 "mode": "absolute",
5202 "steps": [
5203 {
5204 "value": 0,
5205 "color": "green"
5206 },
5207 {
5208 "value": 80,
5209 "color": "red"
5210 }
5211 ]
5212 },
5213 "color": {
5214 "mode": "palette-classic"
5215 },
5216 "custom": {
5217 "axisBorderShow": false,
5218 "axisCenteredZero": false,
5219 "axisColorMode": "text",
5220 "axisLabel": "",
5221 "axisPlacement": "auto",
5222 "barAlignment": 0,
5223 "barWidthFactor": 0.6,
5224 "drawStyle": "bars",
5225 "fillOpacity": 50,
5226 "gradientMode": "none",
5227 "hideFrom": {
5228 "legend": false,
5229 "tooltip": false,
5230 "viz": false
5231 },
5232 "insertNulls": false,
5233 "lineInterpolation": "linear",
5234 "lineWidth": 1,
5235 "pointSize": 5,
5236 "scaleDistribution": {
5237 "type": "linear"
5238 },
5239 "showPoints": "auto",
5240 "showValues": false,
5241 "spanNulls": false,
5242 "stacking": {
5243 "group": "A",
5244 "mode": "normal"
5245 },
5246 "thresholdsStyle": {
5247 "mode": "off"
5248 }
5249 }
5250 },
5251 "overrides": []
5252 }
5253 }
5254 }
5255 }
5256 },
5257 "panel-7": {
5258 "kind": "Panel",
5259 "spec": {
5260 "id": 7,
5261 "title": "SMB activity",
5262 "description": "",
5263 "links": [],
5264 "data": {
5265 "kind": "QueryGroup",
5266 "spec": {
5267 "queries": [
5268 {
5269 "kind": "PanelQuery",
5270 "spec": {
5271 "query": {
5272 "kind": "DataQuery",
5273 "group": "influxdb",
5274 "version": "v0",
5275 "spec": {
5276 "alias": "user_smb",
5277 "groupBy": [
5278 {
5279 "params": [
5280 "$interval"
5281 ],
5282 "type": "time"
5283 },
5284 {
5285 "params": [
5286 "domain::tag"
5287 ],
5288 "type": "tag"
5289 },
5290 {
5291 "params": [
5292 "null"
5293 ],
5294 "type": "fill"
5295 }
5296 ],
5297 "measurement": "samba_authz",
5298 "orderByTime": "ASC",
5299 "policy": "default",
5300 "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)",
5301 "rawQuery": false,
5302 "resultFormat": "time_series",
5303 "select": [
5304 [
5305 {
5306 "params": [
5307 "auth_type"
5308 ],
5309 "type": "field"
5310 },
5311 {
5312 "params": [],
5313 "type": "count"
5314 }
5315 ]
5316 ],
5317 "tags": [
5318 {
5319 "key": "service::tag",
5320 "operator": "=",
5321 "value": "SMB2"
5322 },
5323 {
5324 "condition": "AND",
5325 "key": "auth_type::field",
5326 "operator": "=",
5327 "value": "krb5"
5328 },
5329 {
5330 "condition": "AND",
5331 "key": "account::tag",
5332 "operator": "=~",
5333 "value": "/^user-/"
5334 },
5335 {
5336 "condition": "OR",
5337 "key": "account::tag",
5338 "operator": "=~",
5339 "value": "/^tuser/"
5340 }
5341 ]
5342 },
5343 "labels": {
5344 "grafana.app/export-label": "influxdb-1"
5345 }
5346 },
5347 "refId": "A",
5348 "hidden": false
5349 }
5350 },
5351 {
5352 "kind": "PanelQuery",
5353 "spec": {
5354 "query": {
5355 "kind": "DataQuery",
5356 "group": "influxdb",
5357 "version": "v0",
5358 "spec": {
5359 "alias": "machine_smb",
5360 "groupBy": [
5361 {
5362 "params": [
5363 "$interval"
5364 ],
5365 "type": "time"
5366 },
5367 {
5368 "params": [
5369 "domain::tag"
5370 ],
5371 "type": "tag"
5372 },
5373 {
5374 "params": [
5375 "null"
5376 ],
5377 "type": "fill"
5378 }
5379 ],
5380 "measurement": "samba_authz",
5381 "orderByTime": "ASC",
5382 "policy": "default",
5383 "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)",
5384 "rawQuery": false,
5385 "resultFormat": "time_series",
5386 "select": [
5387 [
5388 {
5389 "params": [
5390 "auth_type"
5391 ],
5392 "type": "field"
5393 },
5394 {
5395 "params": [],
5396 "type": "count"
5397 }
5398 ]
5399 ],
5400 "tags": [
5401 {
5402 "key": "service::tag",
5403 "operator": "=",
5404 "value": "SMB2"
5405 },
5406 {
5407 "condition": "AND",
5408 "key": "auth_type::field",
5409 "operator": "=",
5410 "value": "krb5"
5411 },
5412 {
5413 "condition": "AND",
5414 "key": "account::tag",
5415 "operator": "=~",
5416 "value": "/^MACHINE/"
5417 }
5418 ]
5419 },
5420 "labels": {
5421 "grafana.app/export-label": "influxdb-1"
5422 }
5423 },
5424 "refId": "B",
5425 "hidden": false
5426 }
5427 }
5428 ],
5429 "transformations": [],
5430 "queryOptions": {}
5431 }
5432 },
5433 "vizConfig": {
5434 "kind": "VizConfig",
5435 "group": "timeseries",
5436 "version": "13.0.1+security-01",
5437 "spec": {
5438 "options": {
5439 "annotations": {
5440 "clustering": -1,
5441 "multiLane": false
5442 },
5443 "legend": {
5444 "calcs": [],
5445 "displayMode": "list",
5446 "placement": "bottom",
5447 "showLegend": true
5448 },
5449 "tooltip": {
5450 "hideZeros": false,
5451 "mode": "single",
5452 "sort": "none"
5453 }
5454 },
5455 "fieldConfig": {
5456 "defaults": {
5457 "thresholds": {
5458 "mode": "absolute",
5459 "steps": [
5460 {
5461 "value": 0,
5462 "color": "green"
5463 },
5464 {
5465 "value": 80,
5466 "color": "red"
5467 }
5468 ]
5469 },
5470 "color": {
5471 "mode": "palette-classic"
5472 },
5473 "custom": {
5474 "axisBorderShow": false,
5475 "axisCenteredZero": false,
5476 "axisColorMode": "text",
5477 "axisLabel": "",
5478 "axisPlacement": "auto",
5479 "barAlignment": 0,
5480 "barWidthFactor": 0.6,
5481 "drawStyle": "line",
5482 "fillOpacity": 10,
5483 "gradientMode": "none",
5484 "hideFrom": {
5485 "legend": false,
5486 "tooltip": false,
5487 "viz": false
5488 },
5489 "insertNulls": false,
5490 "lineInterpolation": "smooth",
5491 "lineWidth": 1,
5492 "pointSize": 5,
5493 "scaleDistribution": {
5494 "type": "linear"
5495 },
5496 "showPoints": "auto",
5497 "showValues": false,
5498 "spanNulls": false,
5499 "stacking": {
5500 "group": "A",
5501 "mode": "none"
5502 },
5503 "thresholdsStyle": {
5504 "mode": "off"
5505 }
5506 }
5507 },
5508 "overrides": []
5509 }
5510 }
5511 }
5512 }
5513 },
5514 "panel-8": {
5515 "kind": "Panel",
5516 "spec": {
5517 "id": 8,
5518 "title": "all DNS query count",
5519 "description": "",
5520 "links": [],
5521 "data": {
5522 "kind": "QueryGroup",
5523 "spec": {
5524 "queries": [
5525 {
5526 "kind": "PanelQuery",
5527 "spec": {
5528 "query": {
5529 "kind": "DataQuery",
5530 "group": "influxdb",
5531 "version": "v0",
5532 "spec": {
5533 "alias": "count",
5534 "groupBy": [
5535 {
5536 "params": [
5537 "$interval"
5538 ],
5539 "type": "time"
5540 },
5541 {
5542 "params": [
5543 "null"
5544 ],
5545 "type": "fill"
5546 }
5547 ],
5548 "measurement": "dns_query",
5549 "orderByTime": "ASC",
5550 "policy": "default",
5551 "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)",
5552 "rawQuery": false,
5553 "resultFormat": "time_series",
5554 "select": [
5555 [
5556 {
5557 "params": [
5558 "server"
5559 ],
5560 "type": "field"
5561 },
5562 {
5563 "params": [],
5564 "type": "count"
5565 },
5566 {
5567 "params": [],
5568 "type": "cumulative_sum"
5569 }
5570 ]
5571 ],
5572 "tags": []
5573 },
5574 "labels": {
5575 "grafana.app/export-label": "influxdb-1"
5576 }
5577 },
5578 "refId": "A",
5579 "hidden": false
5580 }
5581 }
5582 ],
5583 "transformations": [],
5584 "queryOptions": {}
5585 }
5586 },
5587 "vizConfig": {
5588 "kind": "VizConfig",
5589 "group": "stat",
5590 "version": "13.0.1+security-01",
5591 "spec": {
5592 "options": {
5593 "colorMode": "value",
5594 "graphMode": "area",
5595 "justifyMode": "auto",
5596 "orientation": "auto",
5597 "percentChangeColorMode": "standard",
5598 "reduceOptions": {
5599 "calcs": [
5600 "lastNotNull"
5601 ],
5602 "fields": "",
5603 "values": false
5604 },
5605 "showPercentChange": false,
5606 "textMode": "auto",
5607 "wideLayout": true
5608 },
5609 "fieldConfig": {
5610 "defaults": {
5611 "thresholds": {
5612 "mode": "absolute",
5613 "steps": [
5614 {
5615 "value": 0,
5616 "color": "green"
5617 },
5618 {
5619 "value": 80,
5620 "color": "red"
5621 }
5622 ]
5623 },
5624 "color": {
5625 "mode": "palette-classic"
5626 }
5627 },
5628 "overrides": []
5629 }
5630 }
5631 }
5632 }
5633 },
5634 "panel-9": {
5635 "kind": "Panel",
5636 "spec": {
5637 "id": 9,
5638 "title": "Samba: клиентов сейчас",
5639 "description": "Текущее число подключённых SMB-клиентов (последний опрос smbstatus -v, первый блок).",
5640 "links": [],
5641 "data": {
5642 "kind": "QueryGroup",
5643 "spec": {
5644 "queries": [
5645 {
5646 "kind": "PanelQuery",
5647 "spec": {
5648 "query": {
5649 "kind": "DataQuery",
5650 "group": "influxdb",
5651 "version": "v0",
5652 "spec": {
5653 "alias": "clients",
5654 "groupBy": [
5655 {
5656 "params": [
5657 "$interval"
5658 ],
5659 "type": "time"
5660 },
5661 {
5662 "params": [
5663 "null"
5664 ],
5665 "type": "fill"
5666 }
5667 ],
5668 "measurement": "samba_clients",
5669 "orderByTime": "ASC",
5670 "policy": "default",
5671 "query": "SELECT last(\"count\") FROM \"samba_clients\" WHERE $timeFilter GROUP BY time($interval) fill(null)",
5672 "rawQuery": false,
5673 "resultFormat": "time_series",
5674 "select": [
5675 [
5676 {
5677 "params": [
5678 "count"
5679 ],
5680 "type": "field"
5681 },
5682 {
5683 "params": [],
5684 "type": "last"
5685 }
5686 ]
5687 ],
5688 "tags": []
5689 },
5690 "labels": {
5691 "grafana.app/export-label": "influxdb-1"
5692 }
5693 },
5694 "refId": "A",
5695 "hidden": false
5696 }
5697 }
5698 ],
5699 "transformations": [],
5700 "queryOptions": {}
5701 }
5702 },
5703 "vizConfig": {
5704 "kind": "VizConfig",
5705 "group": "stat",
5706 "version": "13.0.1+security-01",
5707 "spec": {
5708 "options": {
5709 "colorMode": "value",
5710 "graphMode": "area",
5711 "justifyMode": "auto",
5712 "orientation": "auto",
5713 "percentChangeColorMode": "standard",
5714 "reduceOptions": {
5715 "calcs": [
5716 "lastNotNull"
5717 ],
5718 "fields": "",
5719 "values": false
5720 },
5721 "showPercentChange": false,
5722 "textMode": "auto",
5723 "wideLayout": true
5724 },
5725 "fieldConfig": {
5726 "defaults": {
5727 "unit": "none",
5728 "thresholds": {
5729 "mode": "absolute",
5730 "steps": [
5731 {
5732 "value": 0,
5733 "color": "green"
5734 },
5735 {
5736 "value": null,
5737 "color": "red"
5738 }
5739 ]
5740 },
5741 "color": {
5742 "mode": "palette-classic"
5743 }
5744 },
5745 "overrides": []
5746 }
5747 }
5748 }
5749 }
5750 }
5751 },
5752 "layout": {
5753 "kind": "GridLayout",
5754 "spec": {
5755 "items": [
5756 {
5757 "kind": "GridLayoutItem",
5758 "spec": {
5759 "x": 0,
5760 "y": 0,
5761 "width": 6,
5762 "height": 8,
5763 "element": {
5764 "kind": "ElementReference",
5765 "name": "panel-11"
5766 }
5767 }
5768 },
5769 {
5770 "kind": "GridLayoutItem",
5771 "spec": {
5772 "x": 6,
5773 "y": 0,
5774 "width": 5,
5775 "height": 8,
5776 "element": {
5777 "kind": "ElementReference",
5778 "name": "panel-32"
5779 }
5780 }
5781 },
5782 {
5783 "kind": "GridLayoutItem",
5784 "spec": {
5785 "x": 11,
5786 "y": 0,
5787 "width": 13,
5788 "height": 8,
5789 "element": {
5790 "kind": "ElementReference",
5791 "name": "panel-1"
5792 }
5793 }
5794 },
5795 {
5796 "kind": "GridLayoutItem",
5797 "spec": {
5798 "x": 0,
5799 "y": 8,
5800 "width": 24,
5801 "height": 8,
5802 "element": {
5803 "kind": "ElementReference",
5804 "name": "panel-12"
5805 }
5806 }
5807 },
5808 {
5809 "kind": "GridLayoutItem",
5810 "spec": {
5811 "x": 0,
5812 "y": 16,
5813 "width": 9,
5814 "height": 10,
5815 "element": {
5816 "kind": "ElementReference",
5817 "name": "panel-28"
5818 }
5819 }
5820 },
5821 {
5822 "kind": "GridLayoutItem",
5823 "spec": {
5824 "x": 9,
5825 "y": 16,
5826 "width": 15,
5827 "height": 10,
5828 "element": {
5829 "kind": "ElementReference",
5830 "name": "panel-27"
5831 }
5832 }
5833 },
5834 {
5835 "kind": "GridLayoutItem",
5836 "spec": {
5837 "x": 0,
5838 "y": 26,
5839 "width": 8,
5840 "height": 11,
5841 "element": {
5842 "kind": "ElementReference",
5843 "name": "panel-21"
5844 }
5845 }
5846 },
5847 {
5848 "kind": "GridLayoutItem",
5849 "spec": {
5850 "x": 8,
5851 "y": 26,
5852 "width": 16,
5853 "height": 11,
5854 "element": {
5855 "kind": "ElementReference",
5856 "name": "panel-20"
5857 }
5858 }
5859 },
5860 {
5861 "kind": "GridLayoutItem",
5862 "spec": {
5863 "x": 0,
5864 "y": 37,
5865 "width": 11,
5866 "height": 11,
5867 "element": {
5868 "kind": "ElementReference",
5869 "name": "panel-16"
5870 }
5871 }
5872 },
5873 {
5874 "kind": "GridLayoutItem",
5875 "spec": {
5876 "x": 11,
5877 "y": 37,
5878 "width": 13,
5879 "height": 11,
5880 "element": {
5881 "kind": "ElementReference",
5882 "name": "panel-13"
5883 }
5884 }
5885 },
5886 {
5887 "kind": "GridLayoutItem",
5888 "spec": {
5889 "x": 0,
5890 "y": 48,
5891 "width": 11,
5892 "height": 10,
5893 "element": {
5894 "kind": "ElementReference",
5895 "name": "panel-17"
5896 }
5897 }
5898 },
5899 {
5900 "kind": "GridLayoutItem",
5901 "spec": {
5902 "x": 11,
5903 "y": 48,
5904 "width": 13,
5905 "height": 10,
5906 "element": {
5907 "kind": "ElementReference",
5908 "name": "panel-22"
5909 }
5910 }
5911 },
5912 {
5913 "kind": "GridLayoutItem",
5914 "spec": {
5915 "x": 0,
5916 "y": 58,
5917 "width": 16,
5918 "height": 10,
5919 "element": {
5920 "kind": "ElementReference",
5921 "name": "panel-24"
5922 }
5923 }
5924 },
5925 {
5926 "kind": "GridLayoutItem",
5927 "spec": {
5928 "x": 16,
5929 "y": 58,
5930 "width": 8,
5931 "height": 10,
5932 "element": {
5933 "kind": "ElementReference",
5934 "name": "panel-23"
5935 }
5936 }
5937 },
5938 {
5939 "kind": "GridLayoutItem",
5940 "spec": {
5941 "x": 0,
5942 "y": 68,
5943 "width": 8,
5944 "height": 9,
5945 "element": {
5946 "kind": "ElementReference",
5947 "name": "panel-14"
5948 }
5949 }
5950 },
5951 {
5952 "kind": "GridLayoutItem",
5953 "spec": {
5954 "x": 8,
5955 "y": 68,
5956 "width": 9,
5957 "height": 9,
5958 "element": {
5959 "kind": "ElementReference",
5960 "name": "panel-26"
5961 }
5962 }
5963 },
5964 {
5965 "kind": "GridLayoutItem",
5966 "spec": {
5967 "x": 17,
5968 "y": 68,
5969 "width": 7,
5970 "height": 9,
5971 "element": {
5972 "kind": "ElementReference",
5973 "name": "panel-25"
5974 }
5975 }
5976 },
5977 {
5978 "kind": "GridLayoutItem",
5979 "spec": {
5980 "x": 0,
5981 "y": 77,
5982 "width": 8,
5983 "height": 8,
5984 "element": {
5985 "kind": "ElementReference",
5986 "name": "panel-15"
5987 }
5988 }
5989 },
5990 {
5991 "kind": "GridLayoutItem",
5992 "spec": {
5993 "x": 8,
5994 "y": 77,
5995 "width": 8,
5996 "height": 8,
5997 "element": {
5998 "kind": "ElementReference",
5999 "name": "panel-18"
6000 }
6001 }
6002 },
6003 {
6004 "kind": "GridLayoutItem",
6005 "spec": {
6006 "x": 16,
6007 "y": 77,
6008 "width": 8,
6009 "height": 8,
6010 "element": {
6011 "kind": "ElementReference",
6012 "name": "panel-19"
6013 }
6014 }
6015 },
6016 {
6017 "kind": "GridLayoutItem",
6018 "spec": {
6019 "x": 0,
6020 "y": 85,
6021 "width": 14,
6022 "height": 7,
6023 "element": {
6024 "kind": "ElementReference",
6025 "name": "panel-29"
6026 }
6027 }
6028 },
6029 {
6030 "kind": "GridLayoutItem",
6031 "spec": {
6032 "x": 14,
6033 "y": 85,
6034 "width": 10,
6035 "height": 7,
6036 "element": {
6037 "kind": "ElementReference",
6038 "name": "panel-8"
6039 }
6040 }
6041 },
6042 {
6043 "kind": "GridLayoutItem",
6044 "spec": {
6045 "x": 0,
6046 "y": 92,
6047 "width": 15,
6048 "height": 7,
6049 "element": {
6050 "kind": "ElementReference",
6051 "name": "panel-7"
6052 }
6053 }
6054 },
6055 {
6056 "kind": "GridLayoutItem",
6057 "spec": {
6058 "x": 15,
6059 "y": 92,
6060 "width": 9,
6061 "height": 7,
6062 "element": {
6063 "kind": "ElementReference",
6064 "name": "panel-30"
6065 }
6066 }
6067 },
6068 {
6069 "kind": "GridLayoutItem",
6070 "spec": {
6071 "x": 0,
6072 "y": 99,
6073 "width": 12,
6074 "height": 8,
6075 "element": {
6076 "kind": "ElementReference",
6077 "name": "panel-2"
6078 }
6079 }
6080 },
6081 {
6082 "kind": "GridLayoutItem",
6083 "spec": {
6084 "x": 12,
6085 "y": 99,
6086 "width": 12,
6087 "height": 8,
6088 "element": {
6089 "kind": "ElementReference",
6090 "name": "panel-3"
6091 }
6092 }
6093 },
6094 {
6095 "kind": "GridLayoutItem",
6096 "spec": {
6097 "x": 0,
6098 "y": 107,
6099 "width": 12,
6100 "height": 8,
6101 "element": {
6102 "kind": "ElementReference",
6103 "name": "panel-4"
6104 }
6105 }
6106 },
6107 {
6108 "kind": "GridLayoutItem",
6109 "spec": {
6110 "x": 12,
6111 "y": 107,
6112 "width": 12,
6113 "height": 8,
6114 "element": {
6115 "kind": "ElementReference",
6116 "name": "panel-5"
6117 }
6118 }
6119 },
6120 {
6121 "kind": "GridLayoutItem",
6122 "spec": {
6123 "x": 0,
6124 "y": 115,
6125 "width": 12,
6126 "height": 8,
6127 "element": {
6128 "kind": "ElementReference",
6129 "name": "panel-6"
6130 }
6131 }
6132 },
6133 {
6134 "kind": "GridLayoutItem",
6135 "spec": {
6136 "x": 0,
6137 "y": 123,
6138 "width": 6,
6139 "height": 8,
6140 "element": {
6141 "kind": "ElementReference",
6142 "name": "panel-9"
6143 }
6144 }
6145 },
6146 {
6147 "kind": "GridLayoutItem",
6148 "spec": {
6149 "x": 6,
6150 "y": 123,
6151 "width": 18,
6152 "height": 8,
6153 "element": {
6154 "kind": "ElementReference",
6155 "name": "panel-10"
6156 }
6157 }
6158 }
6159 ]
6160 }
6161 },
6162 "links": [],
6163 "liveNow": false,
6164 "preload": false,
6165 "tags": [
6166 "samba",
6167 "ad",
6168 "audit"
6169 ],
6170 "timeSettings": {
6171 "timezone": "browser",
6172 "from": "now-6h",
6173 "to": "now",
6174 "autoRefresh": "",
6175 "autoRefreshIntervals": [
6176 "5s",
6177 "10s",
6178 "30s",
6179 "1m",
6180 "5m",
6181 "15m",
6182 "30m",
6183 "1h",
6184 "2h",
6185 "1d"
6186 ],
6187 "hideTimepicker": false,
6188 "fiscalYearStartMonth": 0
6189 },
6190 "title": "Samba AD audit3",
6191 "variables": [
6192 {
6193 "kind": "IntervalVariable",
6194 "spec": {
6195 "name": "interval",
6196 "query": "1s,3s,5s,10s,30s,1m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
6197 "current": {
6198 "text": "1m",
6199 "value": "1m"
6200 },
6201 "options": [
6202 {
6203 "selected": true,
6204 "text": "1m",
6205 "value": "1m"
6206 },
6207 {
6208 "selected": false,
6209 "text": "10m",
6210 "value": "10m"
6211 },
6212 {
6213 "selected": false,
6214 "text": "30m",
6215 "value": "30m"
6216 },
6217 {
6218 "selected": false,
6219 "text": "1h",
6220 "value": "1h"
6221 },
6222 {
6223 "selected": false,
6224 "text": "6h",
6225 "value": "6h"
6226 },
6227 {
6228 "selected": false,
6229 "text": "12h",
6230 "value": "12h"
6231 },
6232 {
6233 "selected": false,
6234 "text": "1d",
6235 "value": "1d"
6236 }
6237 ],
6238 "auto": false,
6239 "auto_min": "10s",
6240 "auto_count": 30,
6241 "refresh": "onTimeRangeChanged",
6242 "hide": "dontHide",
6243 "skipUrlSync": false
6244 }
6245 }
6246 ],
6247 "preferences": {
6248 "layout": {
6249 "kind": "GridLayout",
6250 "spec": {
6251 "items": []
6252 }
6253 }
6254 }
6255 }
6256}