Последняя активность 1 month ago

fedya-lxc-dashboard.json Исходник
1{
2 "annotations": {
3 "list": [
4 {
5 "builtIn": 1,
6 "datasource": "-- Grafana --",
7 "enable": true,
8 "hide": true,
9 "iconColor": "rgba(0, 211, 255, 1)",
10 "name": "Annotations & Alerts",
11 "type": "dashboard"
12 }
13 ]
14 },
15 "description": "Advanced LXC container monitoring dashboard for Proxmox",
16 "editable": true,
17 "fiscalYearStartMonth": 0,
18 "gnetId": null,
19 "graphTooltip": 1,
20 "id": null,
21 "links": [],
22 "liveNow": false,
23 "panels": [
24 {
25 "datasource": "Prometheus",
26 "fieldConfig": {
27 "defaults": {
28 "color": {
29 "mode": "thresholds"
30 },
31 "mappings": [
32 {
33 "options": {
34 "0": {
35 "color": "red",
36 "index": 0,
37 "text": "DOWN"
38 },
39 "1": {
40 "color": "green",
41 "index": 1,
42 "text": "UP"
43 }
44 },
45 "type": "value"
46 }
47 ],
48 "thresholds": {
49 "mode": "absolute",
50 "steps": [
51 {
52 "color": "red",
53 "value": null
54 },
55 {
56 "color": "green",
57 "value": 1
58 }
59 ]
60 }
61 }
62 },
63 "gridPos": {
64 "h": 9,
65 "w": 24,
66 "x": 0,
67 "y": 0
68 },
69 "id": 1,
70 "options": {
71 "showHeader": true,
72 "sortBy": [
73 {
74 "desc": false,
75 "displayName": "Status"
76 }
77 ]
78 },
79 "pluginVersion": "9.5.2",
80 "targets": [
81 {
82 "expr": "up{type=\"lxc-container\"}",
83 "format": "table",
84 "instant": true,
85 "refId": "A"
86 },
87 {
88 "expr": "100 - (avg by(instance, alias) (irate(node_cpu_seconds_total{mode=\"idle\", type=\"lxc-container\"}[5m])) * 100)",
89 "format": "table",
90 "instant": true,
91 "refId": "B"
92 },
93 {
94 "expr": "(node_memory_MemTotal_bytes{type=\"lxc-container\"} - node_memory_MemAvailable_bytes{type=\"lxc-container\"}) / node_memory_MemTotal_bytes{type=\"lxc-container\"} * 100",
95 "format": "table",
96 "instant": true,
97 "refId": "C"
98 },
99 {
100 "expr": "(node_filesystem_avail_bytes{mountpoint=\"/\", type=\"lxc-container\"} / node_filesystem_size_bytes{mountpoint=\"/\", type=\"lxc-container\"}) * 100",
101 "format": "table",
102 "instant": true,
103 "refId": "D"
104 },
105 {
106 "expr": "node_load5{type=\"lxc-container\"}",
107 "format": "table",
108 "instant": true,
109 "refId": "E"
110 }
111 ],
112 "title": "📋 Overview - All LXC Containers",
113 "transformations": [
114 {
115 "id": "merge",
116 "options": {}
117 },
118 {
119 "id": "organize",
120 "options": {
121 "excludeByName": {
122 "Time": true,
123 "__name__": true,
124 "device": true,
125 "fstype": true,
126 "job": true,
127 "mountpoint": true,
128 "type": true
129 },
130 "indexByName": {
131 "alias": 0,
132 "instance": 1,
133 "Value #A": 2,
134 "Value #B": 3,
135 "Value #C": 4,
136 "Value #D": 5,
137 "Value #E": 6
138 },
139 "renameByName": {
140 "Value #A": "Status",
141 "Value #B": "CPU %",
142 "Value #C": "RAM %",
143 "Value #D": "Disk Free %",
144 "Value #E": "Load Avg",
145 "alias": "Container",
146 "instance": "IP Address"
147 }
148 }
149 }
150 ],
151 "type": "table"
152 },
153 {
154 "datasource": "Prometheus",
155 "fieldConfig": {
156 "defaults": {
157 "color": {
158 "mode": "palette-classic"
159 },
160 "custom": {
161 "hideFrom": {
162 "legend": false,
163 "tooltip": false,
164 "viz": false
165 }
166 },
167 "mappings": [],
168 "unit": "short"
169 }
170 },
171 "gridPos": {
172 "h": 6,
173 "w": 6,
174 "x": 0,
175 "y": 9
176 },
177 "id": 20,
178 "options": {
179 "displayLabels": [
180 "percent"
181 ],
182 "legend": {
183 "displayMode": "table",
184 "placement": "right",
185 "values": [
186 "value"
187 ]
188 },
189 "pieType": "donut",
190 "reduceOptions": {
191 "calcs": [
192 "lastNotNull"
193 ],
194 "fields": "",
195 "values": false
196 },
197 "tooltip": {
198 "mode": "single"
199 }
200 },
201 "targets": [
202 {
203 "expr": "count(up{type=\"lxc-container\"} == 1)",
204 "legendFormat": "UP",
205 "refId": "A"
206 },
207 {
208 "expr": "count(up{type=\"lxc-container\"} == 0)",
209 "legendFormat": "DOWN",
210 "refId": "B"
211 }
212 ],
213 "title": "🎯 Container Status",
214 "type": "piechart"
215 },
216 {
217 "datasource": "Prometheus",
218 "fieldConfig": {
219 "defaults": {
220 "color": {
221 "mode": "thresholds"
222 },
223 "mappings": [],
224 "thresholds": {
225 "mode": "absolute",
226 "steps": [
227 {
228 "color": "green",
229 "value": null
230 }
231 ]
232 },
233 "unit": "short"
234 }
235 },
236 "gridPos": {
237 "h": 3,
238 "w": 3,
239 "x": 6,
240 "y": 9
241 },
242 "id": 21,
243 "options": {
244 "colorMode": "background",
245 "graphMode": "none",
246 "justifyMode": "auto",
247 "orientation": "auto",
248 "reduceOptions": {
249 "calcs": [
250 "lastNotNull"
251 ],
252 "fields": "",
253 "values": false
254 },
255 "textMode": "auto"
256 },
257 "targets": [
258 {
259 "expr": "count(up{type=\"lxc-container\"})",
260 "refId": "A"
261 }
262 ],
263 "title": "📦 Total Containers",
264 "type": "stat"
265 },
266 {
267 "datasource": "Prometheus",
268 "fieldConfig": {
269 "defaults": {
270 "color": {
271 "mode": "thresholds"
272 },
273 "mappings": [],
274 "thresholds": {
275 "mode": "absolute",
276 "steps": [
277 {
278 "color": "green",
279 "value": null
280 },
281 {
282 "color": "yellow",
283 "value": 1
284 },
285 {
286 "color": "red",
287 "value": 3
288 }
289 ]
290 },
291 "unit": "short"
292 }
293 },
294 "gridPos": {
295 "h": 3,
296 "w": 3,
297 "x": 9,
298 "y": 9
299 },
300 "id": 22,
301 "options": {
302 "colorMode": "background",
303 "graphMode": "none",
304 "justifyMode": "auto",
305 "orientation": "auto",
306 "reduceOptions": {
307 "calcs": [
308 "lastNotNull"
309 ],
310 "fields": "",
311 "values": false
312 },
313 "textMode": "auto"
314 },
315 "targets": [
316 {
317 "expr": "count(ALERTS{alertstate=\"firing\"})",
318 "refId": "A"
319 }
320 ],
321 "title": "🚨 Active Alerts",
322 "type": "stat"
323 },
324 {
325 "datasource": "Prometheus",
326 "fieldConfig": {
327 "defaults": {
328 "color": {
329 "mode": "thresholds"
330 },
331 "mappings": [],
332 "thresholds": {
333 "mode": "absolute",
334 "steps": [
335 {
336 "color": "green",
337 "value": null
338 },
339 {
340 "color": "yellow",
341 "value": 60
342 },
343 {
344 "color": "red",
345 "value": 80
346 }
347 ]
348 },
349 "unit": "percent"
350 }
351 },
352 "gridPos": {
353 "h": 3,
354 "w": 6,
355 "x": 12,
356 "y": 9
357 },
358 "id": 23,
359 "options": {
360 "colorMode": "background",
361 "graphMode": "area",
362 "justifyMode": "auto",
363 "orientation": "auto",
364 "reduceOptions": {
365 "calcs": [
366 "lastNotNull"
367 ],
368 "fields": "",
369 "values": false
370 },
371 "textMode": "auto"
372 },
373 "targets": [
374 {
375 "expr": "avg(100 - (avg by(instance) (irate(node_cpu_seconds_total{mode=\"idle\", type=\"lxc-container\"}[5m])) * 100))",
376 "legendFormat": "Average CPU",
377 "refId": "A"
378 }
379 ],
380 "title": "🔥 Average CPU Load",
381 "type": "stat"
382 },
383 {
384 "datasource": "Prometheus",
385 "fieldConfig": {
386 "defaults": {
387 "color": {
388 "mode": "thresholds"
389 },
390 "mappings": [],
391 "thresholds": {
392 "mode": "absolute",
393 "steps": [
394 {
395 "color": "green",
396 "value": null
397 },
398 {
399 "color": "yellow",
400 "value": 60
401 },
402 {
403 "color": "red",
404 "value": 80
405 }
406 ]
407 },
408 "unit": "percent"
409 }
410 },
411 "gridPos": {
412 "h": 3,
413 "w": 6,
414 "x": 18,
415 "y": 9
416 },
417 "id": 24,
418 "options": {
419 "colorMode": "background",
420 "graphMode": "area",
421 "justifyMode": "auto",
422 "orientation": "auto",
423 "reduceOptions": {
424 "calcs": [
425 "lastNotNull"
426 ],
427 "fields": "",
428 "values": false
429 },
430 "textMode": "auto"
431 },
432 "targets": [
433 {
434 "expr": "avg((node_memory_MemTotal_bytes{type=\"lxc-container\"} - node_memory_MemAvailable_bytes{type=\"lxc-container\"}) / node_memory_MemTotal_bytes{type=\"lxc-container\"} * 100)",
435 "legendFormat": "Average RAM",
436 "refId": "A"
437 }
438 ],
439 "title": "💾 Average RAM Usage",
440 "type": "stat"
441 },
442 {
443 "datasource": "Prometheus",
444 "fieldConfig": {
445 "defaults": {
446 "color": {
447 "mode": "thresholds"
448 },
449 "mappings": [],
450 "thresholds": {
451 "mode": "absolute",
452 "steps": [
453 {
454 "color": "blue",
455 "value": null
456 }
457 ]
458 },
459 "unit": "Bps"
460 }
461 },
462 "gridPos": {
463 "h": 3,
464 "w": 3,
465 "x": 6,
466 "y": 12
467 },
468 "id": 25,
469 "options": {
470 "colorMode": "background",
471 "graphMode": "area",
472 "justifyMode": "auto",
473 "orientation": "auto",
474 "reduceOptions": {
475 "calcs": [
476 "lastNotNull"
477 ],
478 "fields": "",
479 "values": false
480 },
481 "textMode": "auto"
482 },
483 "targets": [
484 {
485 "expr": "sum(rate(node_network_receive_bytes_total{type=\"lxc-container\"}[5m]))",
486 "refId": "A"
487 }
488 ],
489 "title": "📥 Network IN",
490 "type": "stat"
491 },
492 {
493 "datasource": "Prometheus",
494 "fieldConfig": {
495 "defaults": {
496 "color": {
497 "mode": "thresholds"
498 },
499 "mappings": [],
500 "thresholds": {
501 "mode": "absolute",
502 "steps": [
503 {
504 "color": "blue",
505 "value": null
506 }
507 ]
508 },
509 "unit": "Bps"
510 }
511 },
512 "gridPos": {
513 "h": 3,
514 "w": 3,
515 "x": 9,
516 "y": 12
517 },
518 "id": 26,
519 "options": {
520 "colorMode": "background",
521 "graphMode": "area",
522 "justifyMode": "auto",
523 "orientation": "auto",
524 "reduceOptions": {
525 "calcs": [
526 "lastNotNull"
527 ],
528 "fields": "",
529 "values": false
530 },
531 "textMode": "auto"
532 },
533 "targets": [
534 {
535 "expr": "sum(rate(node_network_transmit_bytes_total{type=\"lxc-container\"}[5m]))",
536 "refId": "A"
537 }
538 ],
539 "title": "📤 Network OUT",
540 "type": "stat"
541 },
542 {
543 "datasource": "Prometheus",
544 "fieldConfig": {
545 "defaults": {
546 "color": {
547 "mode": "thresholds"
548 },
549 "mappings": [],
550 "thresholds": {
551 "mode": "absolute",
552 "steps": [
553 {
554 "color": "green",
555 "value": null
556 },
557 {
558 "color": "yellow",
559 "value": 20
560 },
561 {
562 "color": "red",
563 "value": 10
564 }
565 ]
566 },
567 "unit": "percent"
568 }
569 },
570 "gridPos": {
571 "h": 3,
572 "w": 6,
573 "x": 12,
574 "y": 12
575 },
576 "id": 27,
577 "options": {
578 "colorMode": "background",
579 "graphMode": "area",
580 "justifyMode": "auto",
581 "orientation": "auto",
582 "reduceOptions": {
583 "calcs": [
584 "lastNotNull"
585 ],
586 "fields": "",
587 "values": false
588 },
589 "textMode": "auto"
590 },
591 "targets": [
592 {
593 "expr": "avg((node_filesystem_avail_bytes{mountpoint=\"/\", type=\"lxc-container\"} / node_filesystem_size_bytes{mountpoint=\"/\", type=\"lxc-container\"}) * 100)",
594 "refId": "A"
595 }
596 ],
597 "title": "💿 Average Free Space",
598 "type": "stat"
599 },
600 {
601 "datasource": "Prometheus",
602 "fieldConfig": {
603 "defaults": {
604 "color": {
605 "mode": "thresholds"
606 },
607 "mappings": [],
608 "thresholds": {
609 "mode": "absolute",
610 "steps": [
611 {
612 "color": "purple",
613 "value": null
614 }
615 ]
616 },
617 "unit": "Bps"
618 }
619 },
620 "gridPos": {
621 "h": 3,
622 "w": 6,
623 "x": 18,
624 "y": 12
625 },
626 "id": 28,
627 "options": {
628 "colorMode": "background",
629 "graphMode": "area",
630 "justifyMode": "auto",
631 "orientation": "auto",
632 "reduceOptions": {
633 "calcs": [
634 "lastNotNull"
635 ],
636 "fields": "",
637 "values": false
638 },
639 "textMode": "auto"
640 },
641 "targets": [
642 {
643 "expr": "sum(rate(node_disk_read_bytes_total{type=\"lxc-container\"}[5m]))",
644 "legendFormat": "Read",
645 "refId": "A"
646 },
647 {
648 "expr": "sum(rate(node_disk_written_bytes_total{type=\"lxc-container\"}[5m]))",
649 "legendFormat": "Write",
650 "refId": "B"
651 }
652 ],
653 "title": "💽 Total Disk I/O",
654 "type": "stat"
655 },
656 {
657 "datasource": "Prometheus",
658 "fieldConfig": {
659 "defaults": {
660 "color": {
661 "mode": "palette-classic"
662 },
663 "custom": {
664 "axisPlacement": "auto",
665 "drawStyle": "line",
666 "fillOpacity": 20,
667 "lineWidth": 2,
668 "showPoints": "never",
669 "spanNulls": true,
670 "thresholdsStyle": {
671 "mode": "line"
672 }
673 },
674 "max": 100,
675 "min": 0,
676 "thresholds": {
677 "mode": "absolute",
678 "steps": [
679 {
680 "color": "green",
681 "value": null
682 },
683 {
684 "color": "yellow",
685 "value": 60
686 },
687 {
688 "color": "red",
689 "value": 80
690 }
691 ]
692 },
693 "unit": "percent"
694 }
695 },
696 "gridPos": {
697 "h": 9,
698 "w": 12,
699 "x": 0,
700 "y": 15
701 },
702 "id": 2,
703 "options": {
704 "legend": {
705 "calcs": [
706 "last",
707 "max",
708 "mean"
709 ],
710 "displayMode": "table",
711 "placement": "bottom",
712 "showLegend": true
713 },
714 "tooltip": {
715 "mode": "multi",
716 "sort": "desc"
717 }
718 },
719 "targets": [
720 {
721 "expr": "100 - (avg by(alias) (irate(node_cpu_seconds_total{mode=\"idle\", type=\"lxc-container\"}[5m])) * 100)",
722 "legendFormat": "{{alias}}",
723 "refId": "A"
724 }
725 ],
726 "title": "🔥 CPU Usage by Container",
727 "type": "timeseries"
728 },
729 {
730 "datasource": "Prometheus",
731 "fieldConfig": {
732 "defaults": {
733 "color": {
734 "mode": "palette-classic"
735 },
736 "custom": {
737 "axisPlacement": "auto",
738 "drawStyle": "line",
739 "fillOpacity": 20,
740 "lineWidth": 2,
741 "showPoints": "never",
742 "spanNulls": true,
743 "thresholdsStyle": {
744 "mode": "line"
745 }
746 },
747 "max": 100,
748 "min": 0,
749 "thresholds": {
750 "mode": "absolute",
751 "steps": [
752 {
753 "color": "green",
754 "value": null
755 },
756 {
757 "color": "yellow",
758 "value": 60
759 },
760 {
761 "color": "red",
762 "value": 80
763 }
764 ]
765 },
766 "unit": "percent"
767 }
768 },
769 "gridPos": {
770 "h": 9,
771 "w": 12,
772 "x": 12,
773 "y": 15
774 },
775 "id": 3,
776 "options": {
777 "legend": {
778 "calcs": [
779 "last",
780 "max",
781 "mean"
782 ],
783 "displayMode": "table",
784 "placement": "bottom",
785 "showLegend": true
786 },
787 "tooltip": {
788 "mode": "multi",
789 "sort": "desc"
790 }
791 },
792 "targets": [
793 {
794 "expr": "(node_memory_MemTotal_bytes{type=\"lxc-container\"} - node_memory_MemAvailable_bytes{type=\"lxc-container\"}) / node_memory_MemTotal_bytes{type=\"lxc-container\"} * 100",
795 "legendFormat": "{{alias}}",
796 "refId": "A"
797 }
798 ],
799 "title": "💾 RAM Usage by Container",
800 "type": "timeseries"
801 },
802 {
803 "datasource": "Prometheus",
804 "fieldConfig": {
805 "defaults": {
806 "color": {
807 "mode": "thresholds"
808 },
809 "max": 100,
810 "min": 0,
811 "thresholds": {
812 "mode": "absolute",
813 "steps": [
814 {
815 "color": "red",
816 "value": null
817 },
818 {
819 "color": "yellow",
820 "value": 20
821 },
822 {
823 "color": "green",
824 "value": 40
825 }
826 ]
827 },
828 "unit": "percent"
829 }
830 },
831 "gridPos": {
832 "h": 8,
833 "w": 12,
834 "x": 0,
835 "y": 24
836 },
837 "id": 4,
838 "options": {
839 "orientation": "auto",
840 "reduceOptions": {
841 "calcs": [
842 "lastNotNull"
843 ],
844 "fields": "",
845 "values": false
846 },
847 "showThresholdLabels": true,
848 "showThresholdMarkers": true
849 },
850 "targets": [
851 {
852 "expr": "(node_filesystem_avail_bytes{mountpoint=\"/\", type=\"lxc-container\"} / node_filesystem_size_bytes{mountpoint=\"/\", type=\"lxc-container\"}) * 100",
853 "legendFormat": "{{alias}}",
854 "refId": "A"
855 }
856 ],
857 "title": "💿 Free Disk Space by Container",
858 "type": "gauge"
859 },
860 {
861 "datasource": "Prometheus",
862 "fieldConfig": {
863 "defaults": {
864 "color": {
865 "mode": "palette-classic"
866 },
867 "custom": {
868 "axisPlacement": "auto",
869 "drawStyle": "line",
870 "fillOpacity": 10,
871 "lineWidth": 2,
872 "showPoints": "never",
873 "spanNulls": true
874 },
875 "unit": "iops"
876 }
877 },
878 "gridPos": {
879 "h": 8,
880 "w": 12,
881 "x": 12,
882 "y": 24
883 },
884 "id": 29,
885 "options": {
886 "legend": {
887 "calcs": [
888 "last",
889 "max"
890 ],
891 "displayMode": "table",
892 "placement": "bottom",
893 "showLegend": true
894 },
895 "tooltip": {
896 "mode": "multi",
897 "sort": "desc"
898 }
899 },
900 "targets": [
901 {
902 "expr": "rate(node_disk_reads_completed_total{type=\"lxc-container\"}[5m])",
903 "legendFormat": "{{alias}} - Read",
904 "refId": "A"
905 },
906 {
907 "expr": "rate(node_disk_writes_completed_total{type=\"lxc-container\"}[5m])",
908 "legendFormat": "{{alias}} - Write",
909 "refId": "B"
910 }
911 ],
912 "title": "💽 Disk IOPS by Container",
913 "type": "timeseries"
914 },
915 {
916 "datasource": "Prometheus",
917 "fieldConfig": {
918 "defaults": {
919 "color": {
920 "mode": "palette-classic"
921 },
922 "custom": {
923 "axisPlacement": "auto",
924 "drawStyle": "line",
925 "fillOpacity": 20,
926 "lineWidth": 2,
927 "showPoints": "never",
928 "spanNulls": true
929 },
930 "unit": "Bps"
931 },
932 "overrides": [
933 {
934 "matcher": {
935 "id": "byRegexp",
936 "options": "/.*Receive.*|.*RX.*/"
937 },
938 "properties": [
939 {
940 "id": "custom.transform",
941 "value": "negative-Y"
942 }
943 ]
944 }
945 ]
946 },
947 "gridPos": {
948 "h": 9,
949 "w": 24,
950 "x": 0,
951 "y": 32
952 },
953 "id": 5,
954 "options": {
955 "legend": {
956 "calcs": [
957 "mean",
958 "max",
959 "last"
960 ],
961 "displayMode": "table",
962 "placement": "bottom",
963 "showLegend": true
964 },
965 "tooltip": {
966 "mode": "multi",
967 "sort": "desc"
968 }
969 },
970 "targets": [
971 {
972 "expr": "rate(node_network_receive_bytes_total{device!=\"lo\", type=\"lxc-container\"}[5m])",
973 "legendFormat": "{{alias}} - RX",
974 "refId": "A"
975 },
976 {
977 "expr": "rate(node_network_transmit_bytes_total{device!=\"lo\", type=\"lxc-container\"}[5m])",
978 "legendFormat": "{{alias}} - TX",
979 "refId": "B"
980 }
981 ],
982 "title": "🌐 Network Traffic by Container",
983 "type": "timeseries"
984 },
985 {
986 "datasource": "Prometheus",
987 "fieldConfig": {
988 "defaults": {
989 "color": {
990 "mode": "thresholds"
991 },
992 "thresholds": {
993 "mode": "absolute",
994 "steps": [
995 {
996 "color": "green",
997 "value": null
998 },
999 {
1000 "color": "yellow",
1001 "value": 1
1002 },
1003 {
1004 "color": "red",
1005 "value": 2
1006 }
1007 ]
1008 },
1009 "unit": "short"
1010 }
1011 },
1012 "gridPos": {
1013 "h": 8,
1014 "w": 6,
1015 "x": 0,
1016 "y": 41
1017 },
1018 "id": 6,
1019 "options": {
1020 "colorMode": "background",
1021 "graphMode": "area",
1022 "justifyMode": "auto",
1023 "orientation": "auto",
1024 "reduceOptions": {
1025 "calcs": [
1026 "lastNotNull"
1027 ],
1028 "fields": "",
1029 "values": false
1030 },
1031 "textMode": "auto"
1032 },
1033 "targets": [
1034 {
1035 "expr": "node_load5{type=\"lxc-container\"}",
1036 "legendFormat": "{{alias}}",
1037 "refId": "A"
1038 }
1039 ],
1040 "title": "📊 Load Average (5min)",
1041 "type": "stat"
1042 },
1043 {
1044 "datasource": "Prometheus",
1045 "fieldConfig": {
1046 "defaults": {
1047 "color": {
1048 "mode": "thresholds"
1049 },
1050 "thresholds": {
1051 "mode": "absolute",
1052 "steps": [
1053 {
1054 "color": "green",
1055 "value": null
1056 }
1057 ]
1058 },
1059 "unit": "dtdurations"
1060 }
1061 },
1062 "gridPos": {
1063 "h": 8,
1064 "w": 6,
1065 "x": 6,
1066 "y": 41
1067 },
1068 "id": 7,
1069 "options": {
1070 "colorMode": "background",
1071 "graphMode": "none",
1072 "justifyMode": "auto",
1073 "orientation": "auto",
1074 "reduceOptions": {
1075 "calcs": [
1076 "lastNotNull"
1077 ],
1078 "fields": "",
1079 "values": false
1080 },
1081 "textMode": "value_and_name"
1082 },
1083 "targets": [
1084 {
1085 "expr": "time() - node_boot_time_seconds{type=\"lxc-container\"}",
1086 "legendFormat": "{{alias}}",
1087 "refId": "A"
1088 }
1089 ],
1090 "title": "⏰ Container Uptime",
1091 "type": "stat"
1092 },
1093 {
1094 "datasource": "Prometheus",
1095 "description": "Containers with highest CPU usage",
1096 "fieldConfig": {
1097 "defaults": {
1098 "color": {
1099 "mode": "thresholds"
1100 },
1101 "mappings": [],
1102 "thresholds": {
1103 "mode": "absolute",
1104 "steps": [
1105 {
1106 "color": "green",
1107 "value": null
1108 },
1109 {
1110 "color": "yellow",
1111 "value": 30
1112 },
1113 {
1114 "color": "red",
1115 "value": 50
1116 }
1117 ]
1118 },
1119 "unit": "percent"
1120 }
1121 },
1122 "gridPos": {
1123 "h": 8,
1124 "w": 6,
1125 "x": 12,
1126 "y": 41
1127 },
1128 "id": 30,
1129 "options": {
1130 "colorMode": "background",
1131 "graphMode": "area",
1132 "justifyMode": "auto",
1133 "orientation": "auto",
1134 "reduceOptions": {
1135 "calcs": [
1136 "lastNotNull"
1137 ],
1138 "fields": "",
1139 "values": false
1140 },
1141 "textMode": "value_and_name"
1142 },
1143 "targets": [
1144 {
1145 "expr": "topk(3, avg by(alias) (100 - (avg by(instance) (irate(node_cpu_seconds_total{mode=\"idle\", type=\"lxc-container\"}[5m])) * 100)))",
1146 "legendFormat": "{{alias}}",
1147 "refId": "A"
1148 }
1149 ],
1150 "title": "🏆 Top 3 CPU Users",
1151 "type": "stat"
1152 },
1153 {
1154 "datasource": "Prometheus",
1155 "description": "Containers with highest RAM usage",
1156 "fieldConfig": {
1157 "defaults": {
1158 "color": {
1159 "mode": "thresholds"
1160 },
1161 "mappings": [],
1162 "thresholds": {
1163 "mode": "absolute",
1164 "steps": [
1165 {
1166 "color": "green",
1167 "value": null
1168 },
1169 {
1170 "color": "yellow",
1171 "value": 60
1172 },
1173 {
1174 "color": "red",
1175 "value": 80
1176 }
1177 ]
1178 },
1179 "unit": "percent"
1180 }
1181 },
1182 "gridPos": {
1183 "h": 8,
1184 "w": 6,
1185 "x": 18,
1186 "y": 41
1187 },
1188 "id": 31,
1189 "options": {
1190 "colorMode": "background",
1191 "graphMode": "area",
1192 "justifyMode": "auto",
1193 "orientation": "auto",
1194 "reduceOptions": {
1195 "calcs": [
1196 "lastNotNull"
1197 ],
1198 "fields": "",
1199 "values": false
1200 },
1201 "textMode": "value_and_name"
1202 },
1203 "targets": [
1204 {
1205 "expr": "topk(3, avg by(alias) ((node_memory_MemTotal_bytes{type=\"lxc-container\"} - node_memory_MemAvailable_bytes{type=\"lxc-container\"}) / node_memory_MemTotal_bytes{type=\"lxc-container\"} * 100))",
1206 "legendFormat": "{{alias}}",
1207 "refId": "A"
1208 }
1209 ],
1210 "title": "🏆 Top 3 RAM Users",
1211 "type": "stat"
1212 }
1213 ],
1214 "refresh": "30s",
1215 "schemaVersion": 37,
1216 "style": "dark",
1217 "tags": [
1218 "fedia-deepseek",
1219 "proxmox",
1220 "lxc",
1221 "monitoring"
1222 ],
1223 "templating": {
1224 "list": []
1225 },
1226 "time": {
1227 "from": "now-1h",
1228 "to": "now"
1229 },
1230 "timepicker": {
1231 "refresh_intervals": [
1232 "10s",
1233 "30s",
1234 "1m",
1235 "5m",
1236 "15m",
1237 "30m",
1238 "1h"
1239 ],
1240 "time_options": [
1241 "5m",
1242 "15m",
1243 "1h",
1244 "6h",
1245 "12h",
1246 "24h",
1247 "2d",
1248 "7d",
1249 "30d"
1250 ]
1251 },
1252 "timezone": "browser",
1253 "title": "fedia-deepseek LXC Monitoring Dashboard",
1254 "uid": "fedia-deepseek-lxc-monitoring",
1255 "version": 1,
1256 "weekStart": ""
1257}