@cloudcare/guance-front-tools 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4282 @@
1
+ {
2
+ "annotations": {
3
+ "list": [
4
+ {
5
+ "builtIn": 1,
6
+ "datasource": {
7
+ "type": "datasource",
8
+ "uid": "grafana"
9
+ },
10
+ "enable": true,
11
+ "hide": true,
12
+ "iconColor": "rgba(0, 211, 255, 1)",
13
+ "name": "Annotations & Alerts",
14
+ "target": {
15
+ "limit": 100,
16
+ "matchAny": false,
17
+ "tags": [],
18
+ "type": "dashboard"
19
+ },
20
+ "type": "dashboard"
21
+ }
22
+ ]
23
+ },
24
+ "description": "",
25
+ "editable": true,
26
+ "fiscalYearStartMonth": 0,
27
+ "gnetId": 15757,
28
+ "graphTooltip": 0,
29
+ "id": 268,
30
+ "links": [],
31
+ "liveNow": false,
32
+ "panels": [
33
+ {
34
+ "collapsed": false,
35
+ "datasource": {
36
+ "type": "prometheus",
37
+ "uid": "prometheus"
38
+ },
39
+ "gridPos": {
40
+ "h": 1,
41
+ "w": 24,
42
+ "x": 0,
43
+ "y": 0
44
+ },
45
+ "id": 67,
46
+ "panels": [],
47
+ "title": "概览 【$cluster】",
48
+ "type": "row"
49
+ },
50
+ {
51
+ "datasource": {
52
+ "type": "prometheus",
53
+ "uid": "${datasource}"
54
+ },
55
+ "fieldConfig": {
56
+ "defaults": {
57
+ "color": {
58
+ "mode": "continuous-GrYlRd"
59
+ },
60
+ "mappings": [],
61
+ "max": 1,
62
+ "min": 0,
63
+ "thresholds": {
64
+ "mode": "absolute",
65
+ "steps": [
66
+ {
67
+ "color": "green",
68
+ "value": null
69
+ },
70
+ {
71
+ "color": "red",
72
+ "value": 80
73
+ }
74
+ ]
75
+ },
76
+ "unit": "percentunit"
77
+ },
78
+ "overrides": []
79
+ },
80
+ "gridPos": {
81
+ "h": 8,
82
+ "w": 6,
83
+ "x": 0,
84
+ "y": 1
85
+ },
86
+ "id": 77,
87
+ "options": {
88
+ "displayMode": "lcd",
89
+ "maxVizHeight": 300,
90
+ "minVizHeight": 10,
91
+ "minVizWidth": 0,
92
+ "namePlacement": "auto",
93
+ "orientation": "horizontal",
94
+ "reduceOptions": {
95
+ "calcs": [
96
+ "lastNotNull"
97
+ ],
98
+ "fields": "",
99
+ "values": false
100
+ },
101
+ "showUnfilled": true,
102
+ "sizing": "auto",
103
+ "valueMode": "color"
104
+ },
105
+ "pluginVersion": "9.2.4",
106
+ "targets": [
107
+ {
108
+ "datasource": {
109
+ "type": "prometheus",
110
+ "uid": "${datasource}"
111
+ },
112
+ "editorMode": "code",
113
+ "exemplar": true,
114
+ "expr": "avg(sum by (instance, cpu) (rate(node_cpu_seconds_total{mode!~\"idle|iowait|steal\", cluster=\"$cluster\"}[$__rate_interval])))",
115
+ "interval": "",
116
+ "legendFormat": "Real",
117
+ "range": true,
118
+ "refId": "A"
119
+ },
120
+ {
121
+ "datasource": {
122
+ "type": "prometheus",
123
+ "uid": "${datasource}"
124
+ },
125
+ "editorMode": "code",
126
+ "expr": "sum(kube_pod_container_resource_requests{resource=\"cpu\", cluster=\"$cluster\"}) / sum(machine_cpu_cores{cluster=\"$cluster\"})",
127
+ "hide": false,
128
+ "legendFormat": "Requests",
129
+ "range": true,
130
+ "refId": "B"
131
+ },
132
+ {
133
+ "datasource": {
134
+ "type": "prometheus",
135
+ "uid": "${datasource}"
136
+ },
137
+ "editorMode": "code",
138
+ "expr": "sum(kube_pod_container_resource_limits{resource=\"cpu\", cluster=\"$cluster\"}) / sum(machine_cpu_cores{cluster=\"$cluster\"})",
139
+ "hide": false,
140
+ "legendFormat": "Limits",
141
+ "range": true,
142
+ "refId": "C"
143
+ }
144
+ ],
145
+ "title": "Global CPU Usage",
146
+ "type": "bargauge"
147
+ },
148
+ {
149
+ "datasource": {
150
+ "type": "prometheus",
151
+ "uid": "${datasource}"
152
+ },
153
+ "fieldConfig": {
154
+ "defaults": {
155
+ "color": {
156
+ "mode": "continuous-GrYlRd"
157
+ },
158
+ "decimals": 2,
159
+ "mappings": [],
160
+ "max": 1,
161
+ "min": 0,
162
+ "thresholds": {
163
+ "mode": "percentage",
164
+ "steps": [
165
+ {
166
+ "color": "green",
167
+ "value": null
168
+ },
169
+ {
170
+ "color": "red",
171
+ "value": 80
172
+ }
173
+ ]
174
+ },
175
+ "unit": "percentunit"
176
+ },
177
+ "overrides": []
178
+ },
179
+ "gridPos": {
180
+ "h": 8,
181
+ "w": 6,
182
+ "x": 6,
183
+ "y": 1
184
+ },
185
+ "id": 78,
186
+ "options": {
187
+ "displayMode": "lcd",
188
+ "maxVizHeight": 300,
189
+ "minVizHeight": 10,
190
+ "minVizWidth": 0,
191
+ "namePlacement": "auto",
192
+ "orientation": "horizontal",
193
+ "reduceOptions": {
194
+ "calcs": [
195
+ "lastNotNull"
196
+ ],
197
+ "fields": "",
198
+ "values": false
199
+ },
200
+ "showUnfilled": true,
201
+ "sizing": "auto",
202
+ "text": {},
203
+ "valueMode": "color"
204
+ },
205
+ "pluginVersion": "9.2.4",
206
+ "targets": [
207
+ {
208
+ "datasource": {
209
+ "type": "prometheus",
210
+ "uid": "${datasource}"
211
+ },
212
+ "editorMode": "code",
213
+ "exemplar": true,
214
+ "expr": "sum(node_memory_MemTotal_bytes{cluster=\"$cluster\"} - node_memory_MemAvailable_bytes{cluster=\"$cluster\"}) / sum(node_memory_MemTotal_bytes{cluster=\"$cluster\"})",
215
+ "interval": "",
216
+ "legendFormat": "Real",
217
+ "range": true,
218
+ "refId": "A"
219
+ },
220
+ {
221
+ "datasource": {
222
+ "type": "prometheus",
223
+ "uid": "${datasource}"
224
+ },
225
+ "editorMode": "code",
226
+ "expr": "sum(kube_pod_container_resource_requests{resource=\"memory\", cluster=\"$cluster\"}) / sum(machine_memory_bytes{cluster=\"$cluster\"})",
227
+ "hide": false,
228
+ "legendFormat": "Requests",
229
+ "range": true,
230
+ "refId": "B"
231
+ },
232
+ {
233
+ "datasource": {
234
+ "type": "prometheus",
235
+ "uid": "${datasource}"
236
+ },
237
+ "editorMode": "code",
238
+ "expr": "sum(kube_pod_container_resource_limits{resource=\"memory\", cluster=\"$cluster\"}) / sum(machine_memory_bytes{cluster=\"$cluster\"})",
239
+ "hide": false,
240
+ "legendFormat": "Limits",
241
+ "range": true,
242
+ "refId": "C"
243
+ }
244
+ ],
245
+ "title": "Global RAM Usage",
246
+ "type": "bargauge"
247
+ },
248
+ {
249
+ "datasource": {
250
+ "type": "prometheus",
251
+ "uid": "${datasource}"
252
+ },
253
+ "fieldConfig": {
254
+ "defaults": {
255
+ "mappings": [],
256
+ "noValue": "0",
257
+ "thresholds": {
258
+ "mode": "absolute",
259
+ "steps": [
260
+ {
261
+ "color": "blue",
262
+ "value": null
263
+ }
264
+ ]
265
+ }
266
+ },
267
+ "overrides": []
268
+ },
269
+ "gridPos": {
270
+ "h": 4,
271
+ "w": 2,
272
+ "x": 12,
273
+ "y": 1
274
+ },
275
+ "id": 63,
276
+ "options": {
277
+ "colorMode": "value",
278
+ "graphMode": "none",
279
+ "justifyMode": "auto",
280
+ "orientation": "auto",
281
+ "reduceOptions": {
282
+ "calcs": [
283
+ "last"
284
+ ],
285
+ "fields": "",
286
+ "values": false
287
+ },
288
+ "text": {},
289
+ "textMode": "value",
290
+ "wideLayout": true
291
+ },
292
+ "pluginVersion": "9.2.4",
293
+ "targets": [
294
+ {
295
+ "datasource": {
296
+ "type": "prometheus",
297
+ "uid": "${datasource}"
298
+ },
299
+ "exemplar": true,
300
+ "expr": "count(count by (node) (kube_node_info{cluster=\"$cluster\"}))",
301
+ "interval": "",
302
+ "legendFormat": "",
303
+ "refId": "A"
304
+ }
305
+ ],
306
+ "title": "Nodes",
307
+ "type": "stat"
308
+ },
309
+ {
310
+ "datasource": {
311
+ "type": "prometheus",
312
+ "uid": "${datasource}"
313
+ },
314
+ "fieldConfig": {
315
+ "defaults": {
316
+ "color": {
317
+ "mode": "palette-classic"
318
+ },
319
+ "custom": {
320
+ "axisCenteredZero": false,
321
+ "axisColorMode": "text",
322
+ "axisLabel": "",
323
+ "axisPlacement": "auto",
324
+ "barAlignment": 0,
325
+ "drawStyle": "line",
326
+ "fillOpacity": 1,
327
+ "gradientMode": "opacity",
328
+ "hideFrom": {
329
+ "legend": false,
330
+ "tooltip": false,
331
+ "viz": false
332
+ },
333
+ "lineInterpolation": "smooth",
334
+ "lineWidth": 2,
335
+ "pointSize": 5,
336
+ "scaleDistribution": {
337
+ "type": "linear"
338
+ },
339
+ "showPoints": "never",
340
+ "spanNulls": false,
341
+ "stacking": {
342
+ "group": "A",
343
+ "mode": "none"
344
+ },
345
+ "thresholdsStyle": {
346
+ "mode": "off"
347
+ }
348
+ },
349
+ "mappings": [],
350
+ "thresholds": {
351
+ "mode": "absolute",
352
+ "steps": [
353
+ {
354
+ "color": "green",
355
+ "value": null
356
+ },
357
+ {
358
+ "color": "red",
359
+ "value": 80
360
+ }
361
+ ]
362
+ },
363
+ "unit": "short"
364
+ },
365
+ "overrides": []
366
+ },
367
+ "gridPos": {
368
+ "h": 12,
369
+ "w": 10,
370
+ "x": 14,
371
+ "y": 1
372
+ },
373
+ "id": 52,
374
+ "options": {
375
+ "legend": {
376
+ "calcs": [
377
+ "last"
378
+ ],
379
+ "displayMode": "table",
380
+ "placement": "right",
381
+ "showLegend": true,
382
+ "sortBy": "Max",
383
+ "sortDesc": true
384
+ },
385
+ "tooltip": {
386
+ "mode": "multi",
387
+ "sort": "none"
388
+ }
389
+ },
390
+ "pluginVersion": "8.3.3",
391
+ "targets": [
392
+ {
393
+ "datasource": {
394
+ "type": "prometheus",
395
+ "uid": "${datasource}"
396
+ },
397
+ "exemplar": true,
398
+ "expr": "sum(kube_namespace_labels{cluster=\"$cluster\"})",
399
+ "interval": "",
400
+ "legendFormat": "Namespaces",
401
+ "refId": "A"
402
+ },
403
+ {
404
+ "datasource": {
405
+ "type": "prometheus",
406
+ "uid": "${datasource}"
407
+ },
408
+ "expr": "sum(kube_pod_container_status_running{cluster=\"$cluster\"})",
409
+ "interval": "",
410
+ "legendFormat": "Running Containers",
411
+ "refId": "B"
412
+ },
413
+ {
414
+ "datasource": {
415
+ "type": "prometheus",
416
+ "uid": "${datasource}"
417
+ },
418
+ "expr": "sum(kube_pod_status_phase{phase=\"Running\", cluster=\"$cluster\"})",
419
+ "interval": "",
420
+ "legendFormat": "Running Pods",
421
+ "refId": "O"
422
+ },
423
+ {
424
+ "datasource": {
425
+ "type": "prometheus",
426
+ "uid": "${datasource}"
427
+ },
428
+ "expr": "sum(kube_service_info{cluster=\"$cluster\"})",
429
+ "interval": "",
430
+ "legendFormat": "Services",
431
+ "refId": "C"
432
+ },
433
+ {
434
+ "datasource": {
435
+ "type": "prometheus",
436
+ "uid": "${datasource}"
437
+ },
438
+ "expr": "sum(kube_endpoint_info{cluster=\"$cluster\"})",
439
+ "interval": "",
440
+ "legendFormat": "Endpoints",
441
+ "refId": "D"
442
+ },
443
+ {
444
+ "datasource": {
445
+ "type": "prometheus",
446
+ "uid": "${datasource}"
447
+ },
448
+ "expr": "sum(kube_ingress_info{cluster=\"$cluster\"})",
449
+ "interval": "",
450
+ "legendFormat": "Ingresses",
451
+ "refId": "E"
452
+ },
453
+ {
454
+ "datasource": {
455
+ "type": "prometheus",
456
+ "uid": "${datasource}"
457
+ },
458
+ "expr": "sum(kube_deployment_labels{cluster=\"$cluster\"})",
459
+ "interval": "",
460
+ "legendFormat": "Deployments",
461
+ "refId": "F"
462
+ },
463
+ {
464
+ "datasource": {
465
+ "type": "prometheus",
466
+ "uid": "${datasource}"
467
+ },
468
+ "expr": "sum(kube_statefulset_labels{cluster=\"$cluster\"})",
469
+ "interval": "",
470
+ "legendFormat": "Statefulsets",
471
+ "refId": "G"
472
+ },
473
+ {
474
+ "datasource": {
475
+ "type": "prometheus",
476
+ "uid": "${datasource}"
477
+ },
478
+ "expr": "sum(kube_daemonset_labels{cluster=\"$cluster\"})",
479
+ "interval": "",
480
+ "legendFormat": "Daemonsets",
481
+ "refId": "H"
482
+ },
483
+ {
484
+ "datasource": {
485
+ "type": "prometheus",
486
+ "uid": "${datasource}"
487
+ },
488
+ "expr": "sum(kube_persistentvolumeclaim_info{cluster=\"$cluster\"})",
489
+ "interval": "",
490
+ "legendFormat": "Persistent Volume Claims",
491
+ "refId": "I"
492
+ },
493
+ {
494
+ "datasource": {
495
+ "type": "prometheus",
496
+ "uid": "${datasource}"
497
+ },
498
+ "expr": "sum(kube_hpa_labels{cluster=\"$cluster\"})",
499
+ "interval": "",
500
+ "legendFormat": "Horizontal Pod Autoscalers",
501
+ "refId": "J"
502
+ },
503
+ {
504
+ "datasource": {
505
+ "type": "prometheus",
506
+ "uid": "${datasource}"
507
+ },
508
+ "expr": "sum(kube_configmap_info{cluster=\"$cluster\"})",
509
+ "interval": "",
510
+ "legendFormat": "Configmaps",
511
+ "refId": "K"
512
+ },
513
+ {
514
+ "datasource": {
515
+ "type": "prometheus",
516
+ "uid": "${datasource}"
517
+ },
518
+ "expr": "sum(kube_secret_info{cluster=\"$cluster\"})",
519
+ "interval": "",
520
+ "legendFormat": "Secrets",
521
+ "refId": "L"
522
+ },
523
+ {
524
+ "datasource": {
525
+ "type": "prometheus",
526
+ "uid": "${datasource}"
527
+ },
528
+ "expr": "sum(kube_networkpolicy_labels{cluster=\"$cluster\"})",
529
+ "interval": "",
530
+ "legendFormat": "Network Policies",
531
+ "refId": "M"
532
+ },
533
+ {
534
+ "datasource": {
535
+ "type": "prometheus",
536
+ "uid": "${datasource}"
537
+ },
538
+ "editorMode": "code",
539
+ "exemplar": true,
540
+ "expr": "count(count by (node) (kube_node_info{cluster=\"$cluster\"}))",
541
+ "hide": false,
542
+ "interval": "",
543
+ "legendFormat": "Nodes",
544
+ "range": true,
545
+ "refId": "N"
546
+ },
547
+ {
548
+ "datasource": {
549
+ "type": "prometheus",
550
+ "uid": "${datasource}"
551
+ },
552
+ "editorMode": "code",
553
+ "expr": "count(avg(namespace_workload_pod:kube_pod_owner:relabel{cluster=\"$cluster\"}) by (workload, cluster)) by (cluster)",
554
+ "hide": false,
555
+ "instant": false,
556
+ "legendFormat": "workloads",
557
+ "range": true,
558
+ "refId": "P"
559
+ }
560
+ ],
561
+ "title": "Kubernetes Resource Count",
562
+ "type": "timeseries"
563
+ },
564
+ {
565
+ "datasource": {
566
+ "type": "prometheus",
567
+ "uid": "${datasource}"
568
+ },
569
+ "fieldConfig": {
570
+ "defaults": {
571
+ "mappings": [],
572
+ "noValue": "0",
573
+ "thresholds": {
574
+ "mode": "absolute",
575
+ "steps": [
576
+ {
577
+ "color": "blue",
578
+ "value": null
579
+ }
580
+ ]
581
+ }
582
+ },
583
+ "overrides": []
584
+ },
585
+ "gridPos": {
586
+ "h": 4,
587
+ "w": 2,
588
+ "x": 12,
589
+ "y": 5
590
+ },
591
+ "id": 62,
592
+ "options": {
593
+ "colorMode": "value",
594
+ "graphMode": "none",
595
+ "justifyMode": "auto",
596
+ "orientation": "auto",
597
+ "reduceOptions": {
598
+ "calcs": [
599
+ "last"
600
+ ],
601
+ "fields": "",
602
+ "values": false
603
+ },
604
+ "text": {},
605
+ "textMode": "value",
606
+ "wideLayout": true
607
+ },
608
+ "pluginVersion": "9.2.4",
609
+ "targets": [
610
+ {
611
+ "datasource": {
612
+ "type": "prometheus",
613
+ "uid": "${datasource}"
614
+ },
615
+ "expr": "sum(kube_pod_status_phase{phase=\"Running\", cluster=\"$cluster\"})",
616
+ "interval": "",
617
+ "legendFormat": "",
618
+ "refId": "A"
619
+ }
620
+ ],
621
+ "title": "Running Pods",
622
+ "type": "stat"
623
+ },
624
+ {
625
+ "datasource": {
626
+ "type": "prometheus",
627
+ "uid": "${datasource}"
628
+ },
629
+ "fieldConfig": {
630
+ "defaults": {
631
+ "mappings": [],
632
+ "noValue": "0",
633
+ "thresholds": {
634
+ "mode": "absolute",
635
+ "steps": [
636
+ {
637
+ "color": "rgb(255, 255, 255)",
638
+ "value": null
639
+ }
640
+ ]
641
+ },
642
+ "unit": "none"
643
+ },
644
+ "overrides": []
645
+ },
646
+ "gridPos": {
647
+ "h": 4,
648
+ "w": 6,
649
+ "x": 0,
650
+ "y": 9
651
+ },
652
+ "id": 37,
653
+ "options": {
654
+ "colorMode": "none",
655
+ "graphMode": "none",
656
+ "justifyMode": "center",
657
+ "orientation": "auto",
658
+ "reduceOptions": {
659
+ "calcs": [
660
+ "lastNotNull"
661
+ ],
662
+ "fields": "",
663
+ "values": false
664
+ },
665
+ "text": {},
666
+ "textMode": "auto",
667
+ "wideLayout": true
668
+ },
669
+ "pluginVersion": "9.2.4",
670
+ "targets": [
671
+ {
672
+ "datasource": {
673
+ "type": "prometheus",
674
+ "uid": "${datasource}"
675
+ },
676
+ "editorMode": "code",
677
+ "exemplar": true,
678
+ "expr": "sum(rate(node_cpu_seconds_total{mode!~\"idle|iowait|steal\", cluster=\"$cluster\"}[$__rate_interval]))",
679
+ "interval": "",
680
+ "legendFormat": "Real",
681
+ "range": true,
682
+ "refId": "A"
683
+ },
684
+ {
685
+ "datasource": {
686
+ "type": "prometheus",
687
+ "uid": "${datasource}"
688
+ },
689
+ "editorMode": "code",
690
+ "expr": "sum(kube_pod_container_resource_requests{resource=\"cpu\", cluster=\"$cluster\"})",
691
+ "hide": false,
692
+ "legendFormat": "Requests",
693
+ "range": true,
694
+ "refId": "B"
695
+ },
696
+ {
697
+ "datasource": {
698
+ "type": "prometheus",
699
+ "uid": "${datasource}"
700
+ },
701
+ "editorMode": "code",
702
+ "expr": "sum(kube_pod_container_resource_limits{resource=\"cpu\", cluster=\"$cluster\"})",
703
+ "hide": false,
704
+ "legendFormat": "Limits",
705
+ "range": true,
706
+ "refId": "C"
707
+ },
708
+ {
709
+ "datasource": {
710
+ "type": "prometheus",
711
+ "uid": "${datasource}"
712
+ },
713
+ "editorMode": "code",
714
+ "expr": "sum(machine_cpu_cores{cluster=\"$cluster\"})",
715
+ "hide": false,
716
+ "legendFormat": "Total",
717
+ "range": true,
718
+ "refId": "D"
719
+ }
720
+ ],
721
+ "title": "CPU Usage",
722
+ "type": "stat"
723
+ },
724
+ {
725
+ "datasource": {
726
+ "type": "prometheus",
727
+ "uid": "${datasource}"
728
+ },
729
+ "fieldConfig": {
730
+ "defaults": {
731
+ "mappings": [],
732
+ "noValue": "0",
733
+ "thresholds": {
734
+ "mode": "absolute",
735
+ "steps": [
736
+ {
737
+ "color": "rgb(255, 255, 255)",
738
+ "value": null
739
+ }
740
+ ]
741
+ },
742
+ "unit": "bytes"
743
+ },
744
+ "overrides": []
745
+ },
746
+ "gridPos": {
747
+ "h": 4,
748
+ "w": 6,
749
+ "x": 6,
750
+ "y": 9
751
+ },
752
+ "id": 39,
753
+ "options": {
754
+ "colorMode": "none",
755
+ "graphMode": "none",
756
+ "justifyMode": "auto",
757
+ "orientation": "auto",
758
+ "reduceOptions": {
759
+ "calcs": [
760
+ "lastNotNull"
761
+ ],
762
+ "fields": "",
763
+ "values": false
764
+ },
765
+ "text": {},
766
+ "textMode": "auto",
767
+ "wideLayout": true
768
+ },
769
+ "pluginVersion": "9.2.4",
770
+ "targets": [
771
+ {
772
+ "datasource": {
773
+ "type": "prometheus",
774
+ "uid": "${datasource}"
775
+ },
776
+ "editorMode": "code",
777
+ "exemplar": true,
778
+ "expr": "sum(node_memory_MemTotal_bytes{cluster=\"$cluster\"} - node_memory_MemAvailable_bytes{cluster=\"$cluster\"})",
779
+ "interval": "",
780
+ "legendFormat": "Real",
781
+ "range": true,
782
+ "refId": "A"
783
+ },
784
+ {
785
+ "datasource": {
786
+ "type": "prometheus",
787
+ "uid": "${datasource}"
788
+ },
789
+ "editorMode": "code",
790
+ "expr": "sum(kube_pod_container_resource_requests{resource=\"memory\", cluster=\"$cluster\"})",
791
+ "hide": false,
792
+ "legendFormat": "Requests",
793
+ "range": true,
794
+ "refId": "B"
795
+ },
796
+ {
797
+ "datasource": {
798
+ "type": "prometheus",
799
+ "uid": "${datasource}"
800
+ },
801
+ "editorMode": "code",
802
+ "expr": "sum(kube_pod_container_resource_limits{resource=\"memory\", cluster=\"$cluster\"})",
803
+ "hide": false,
804
+ "legendFormat": "Limits",
805
+ "range": true,
806
+ "refId": "C"
807
+ },
808
+ {
809
+ "datasource": {
810
+ "type": "prometheus",
811
+ "uid": "${datasource}"
812
+ },
813
+ "editorMode": "code",
814
+ "expr": "sum(machine_memory_bytes{cluster=\"$cluster\"})",
815
+ "hide": false,
816
+ "legendFormat": "Total",
817
+ "range": true,
818
+ "refId": "D"
819
+ }
820
+ ],
821
+ "title": "RAM Usage",
822
+ "type": "stat"
823
+ },
824
+ {
825
+ "datasource": {
826
+ "type": "prometheus",
827
+ "uid": "${datasource}"
828
+ },
829
+ "fieldConfig": {
830
+ "defaults": {
831
+ "mappings": [],
832
+ "noValue": "0",
833
+ "thresholds": {
834
+ "mode": "absolute",
835
+ "steps": [
836
+ {
837
+ "color": "blue",
838
+ "value": null
839
+ }
840
+ ]
841
+ }
842
+ },
843
+ "overrides": []
844
+ },
845
+ "gridPos": {
846
+ "h": 4,
847
+ "w": 2,
848
+ "x": 12,
849
+ "y": 9
850
+ },
851
+ "id": 59,
852
+ "options": {
853
+ "colorMode": "value",
854
+ "graphMode": "none",
855
+ "justifyMode": "auto",
856
+ "orientation": "auto",
857
+ "reduceOptions": {
858
+ "calcs": [
859
+ "last"
860
+ ],
861
+ "fields": "",
862
+ "values": false
863
+ },
864
+ "text": {},
865
+ "textMode": "value",
866
+ "wideLayout": true
867
+ },
868
+ "pluginVersion": "9.2.4",
869
+ "targets": [
870
+ {
871
+ "datasource": {
872
+ "type": "prometheus",
873
+ "uid": "${datasource}"
874
+ },
875
+ "expr": "count(kube_namespace_created{cluster=\"$cluster\"})",
876
+ "interval": "",
877
+ "legendFormat": "",
878
+ "refId": "A"
879
+ }
880
+ ],
881
+ "title": "Namespaces",
882
+ "type": "stat"
883
+ },
884
+ {
885
+ "collapsed": false,
886
+ "datasource": {
887
+ "type": "prometheus",
888
+ "uid": "prometheus"
889
+ },
890
+ "gridPos": {
891
+ "h": 1,
892
+ "w": 24,
893
+ "x": 0,
894
+ "y": 13
895
+ },
896
+ "id": 71,
897
+ "panels": [],
898
+ "title": "CPU",
899
+ "type": "row"
900
+ },
901
+ {
902
+ "datasource": {
903
+ "type": "prometheus",
904
+ "uid": "${datasource}"
905
+ },
906
+ "fieldConfig": {
907
+ "defaults": {
908
+ "color": {
909
+ "mode": "continuous-GrYlRd",
910
+ "seriesBy": "last"
911
+ },
912
+ "custom": {
913
+ "axisCenteredZero": false,
914
+ "axisColorMode": "text",
915
+ "axisLabel": "CPU %",
916
+ "axisPlacement": "auto",
917
+ "barAlignment": 0,
918
+ "drawStyle": "line",
919
+ "fillOpacity": 0,
920
+ "gradientMode": "scheme",
921
+ "hideFrom": {
922
+ "legend": false,
923
+ "tooltip": false,
924
+ "viz": false
925
+ },
926
+ "lineInterpolation": "smooth",
927
+ "lineStyle": {
928
+ "fill": "solid"
929
+ },
930
+ "lineWidth": 2,
931
+ "pointSize": 5,
932
+ "scaleDistribution": {
933
+ "type": "linear"
934
+ },
935
+ "showPoints": "never",
936
+ "spanNulls": false,
937
+ "stacking": {
938
+ "group": "A",
939
+ "mode": "none"
940
+ },
941
+ "thresholdsStyle": {
942
+ "mode": "off"
943
+ }
944
+ },
945
+ "decimals": 2,
946
+ "mappings": [],
947
+ "thresholds": {
948
+ "mode": "absolute",
949
+ "steps": [
950
+ {
951
+ "color": "green",
952
+ "value": null
953
+ },
954
+ {
955
+ "color": "yellow",
956
+ "value": 0.5
957
+ },
958
+ {
959
+ "color": "red",
960
+ "value": 0.7
961
+ }
962
+ ]
963
+ },
964
+ "unit": "percentunit"
965
+ },
966
+ "overrides": []
967
+ },
968
+ "gridPos": {
969
+ "h": 8,
970
+ "w": 9,
971
+ "x": 0,
972
+ "y": 14
973
+ },
974
+ "id": 72,
975
+ "options": {
976
+ "legend": {
977
+ "calcs": [],
978
+ "displayMode": "hidden",
979
+ "placement": "right",
980
+ "showLegend": false
981
+ },
982
+ "tooltip": {
983
+ "mode": "single",
984
+ "sort": "none"
985
+ }
986
+ },
987
+ "pluginVersion": "8.3.3",
988
+ "targets": [
989
+ {
990
+ "datasource": {
991
+ "type": "prometheus",
992
+ "uid": "${datasource}"
993
+ },
994
+ "exemplar": true,
995
+ "expr": "avg(sum by (instance, cpu) (rate(node_cpu_seconds_total{mode!~\"idle|iowait|steal\", cluster=\"$cluster\"}[$__rate_interval])))",
996
+ "interval": "$resolution",
997
+ "legendFormat": "CPU usage in %",
998
+ "refId": "A"
999
+ }
1000
+ ],
1001
+ "title": "Cluster CPU Utilization",
1002
+ "type": "timeseries"
1003
+ },
1004
+ {
1005
+ "datasource": {
1006
+ "type": "prometheus",
1007
+ "uid": "${datasource}"
1008
+ },
1009
+ "fieldConfig": {
1010
+ "defaults": {
1011
+ "color": {
1012
+ "mode": "palette-classic"
1013
+ },
1014
+ "custom": {
1015
+ "axisCenteredZero": false,
1016
+ "axisColorMode": "text",
1017
+ "axisLabel": "CPU %",
1018
+ "axisPlacement": "auto",
1019
+ "barAlignment": 0,
1020
+ "drawStyle": "line",
1021
+ "fillOpacity": 0,
1022
+ "gradientMode": "opacity",
1023
+ "hideFrom": {
1024
+ "legend": false,
1025
+ "tooltip": false,
1026
+ "viz": false
1027
+ },
1028
+ "lineInterpolation": "smooth",
1029
+ "lineWidth": 2,
1030
+ "pointSize": 5,
1031
+ "scaleDistribution": {
1032
+ "type": "linear"
1033
+ },
1034
+ "showPoints": "never",
1035
+ "spanNulls": false,
1036
+ "stacking": {
1037
+ "group": "A",
1038
+ "mode": "none"
1039
+ },
1040
+ "thresholdsStyle": {
1041
+ "mode": "off"
1042
+ }
1043
+ },
1044
+ "decimals": 2,
1045
+ "mappings": [],
1046
+ "thresholds": {
1047
+ "mode": "absolute",
1048
+ "steps": [
1049
+ {
1050
+ "color": "green",
1051
+ "value": null
1052
+ },
1053
+ {
1054
+ "color": "red",
1055
+ "value": 80
1056
+ }
1057
+ ]
1058
+ },
1059
+ "unit": "percentunit"
1060
+ },
1061
+ "overrides": []
1062
+ },
1063
+ "gridPos": {
1064
+ "h": 8,
1065
+ "w": 15,
1066
+ "x": 9,
1067
+ "y": 14
1068
+ },
1069
+ "id": 54,
1070
+ "options": {
1071
+ "legend": {
1072
+ "calcs": [
1073
+ "last"
1074
+ ],
1075
+ "displayMode": "table",
1076
+ "placement": "right",
1077
+ "showLegend": true,
1078
+ "sortBy": "Max",
1079
+ "sortDesc": true
1080
+ },
1081
+ "tooltip": {
1082
+ "mode": "single",
1083
+ "sort": "none"
1084
+ }
1085
+ },
1086
+ "pluginVersion": "8.3.3",
1087
+ "targets": [
1088
+ {
1089
+ "datasource": {
1090
+ "type": "prometheus",
1091
+ "uid": "${datasource}"
1092
+ },
1093
+ "exemplar": true,
1094
+ "expr": "avg(sum by (instance, cpu) (rate(node_cpu_seconds_total{mode!~\"idle|iowait|steal\", cluster=\"$cluster\"}[$__rate_interval]))) by (instance)",
1095
+ "interval": "$resolution",
1096
+ "legendFormat": "{{ node }}",
1097
+ "refId": "A"
1098
+ }
1099
+ ],
1100
+ "title": "CPU Utilization by instance",
1101
+ "type": "timeseries"
1102
+ },
1103
+ {
1104
+ "datasource": {
1105
+ "type": "prometheus",
1106
+ "uid": "${datasource}"
1107
+ },
1108
+ "fieldConfig": {
1109
+ "defaults": {
1110
+ "color": {
1111
+ "mode": "palette-classic"
1112
+ },
1113
+ "custom": {
1114
+ "axisCenteredZero": false,
1115
+ "axisColorMode": "text",
1116
+ "axisLabel": "CPU CORES",
1117
+ "axisPlacement": "auto",
1118
+ "barAlignment": 0,
1119
+ "drawStyle": "line",
1120
+ "fillOpacity": 0,
1121
+ "gradientMode": "opacity",
1122
+ "hideFrom": {
1123
+ "legend": false,
1124
+ "tooltip": false,
1125
+ "viz": false
1126
+ },
1127
+ "lineInterpolation": "smooth",
1128
+ "lineStyle": {
1129
+ "fill": "solid"
1130
+ },
1131
+ "lineWidth": 2,
1132
+ "pointSize": 5,
1133
+ "scaleDistribution": {
1134
+ "type": "linear"
1135
+ },
1136
+ "showPoints": "never",
1137
+ "spanNulls": false,
1138
+ "stacking": {
1139
+ "group": "A",
1140
+ "mode": "none"
1141
+ },
1142
+ "thresholdsStyle": {
1143
+ "mode": "off"
1144
+ }
1145
+ },
1146
+ "decimals": 2,
1147
+ "mappings": [],
1148
+ "thresholds": {
1149
+ "mode": "absolute",
1150
+ "steps": [
1151
+ {
1152
+ "color": "green"
1153
+ },
1154
+ {
1155
+ "color": "red",
1156
+ "value": 80
1157
+ }
1158
+ ]
1159
+ },
1160
+ "unit": "none"
1161
+ },
1162
+ "overrides": []
1163
+ },
1164
+ "gridPos": {
1165
+ "h": 8,
1166
+ "w": 9,
1167
+ "x": 0,
1168
+ "y": 22
1169
+ },
1170
+ "id": 46,
1171
+ "options": {
1172
+ "legend": {
1173
+ "calcs": [
1174
+ "last"
1175
+ ],
1176
+ "displayMode": "table",
1177
+ "placement": "right",
1178
+ "showLegend": true,
1179
+ "sortBy": "Max",
1180
+ "sortDesc": true
1181
+ },
1182
+ "tooltip": {
1183
+ "mode": "single",
1184
+ "sort": "none"
1185
+ }
1186
+ },
1187
+ "pluginVersion": "8.3.3",
1188
+ "targets": [
1189
+ {
1190
+ "datasource": {
1191
+ "type": "prometheus",
1192
+ "uid": "${datasource}"
1193
+ },
1194
+ "exemplar": true,
1195
+ "expr": "sum(rate(container_cpu_usage_seconds_total{image!=\"\", cluster=\"$cluster\"}[$__rate_interval])) by (namespace)",
1196
+ "interval": "$resolution",
1197
+ "legendFormat": "{{ namespace }}",
1198
+ "refId": "A"
1199
+ }
1200
+ ],
1201
+ "title": "CPU Utilization by namespace",
1202
+ "type": "timeseries"
1203
+ },
1204
+ {
1205
+ "datasource": {
1206
+ "type": "prometheus",
1207
+ "uid": "$datasource"
1208
+ },
1209
+ "fieldConfig": {
1210
+ "defaults": {
1211
+ "color": {
1212
+ "mode": "thresholds"
1213
+ },
1214
+ "custom": {
1215
+ "align": "auto",
1216
+ "displayMode": "auto",
1217
+ "inspect": false
1218
+ },
1219
+ "decimals": 2,
1220
+ "displayName": "",
1221
+ "mappings": [],
1222
+ "thresholds": {
1223
+ "mode": "absolute",
1224
+ "steps": [
1225
+ {
1226
+ "color": "green"
1227
+ },
1228
+ {
1229
+ "color": "red",
1230
+ "value": 80
1231
+ }
1232
+ ]
1233
+ },
1234
+ "unit": "short"
1235
+ },
1236
+ "overrides": [
1237
+ {
1238
+ "matcher": {
1239
+ "id": "byName",
1240
+ "options": "Value #C"
1241
+ },
1242
+ "properties": [
1243
+ {
1244
+ "id": "displayName",
1245
+ "value": "CPU Usage"
1246
+ },
1247
+ {
1248
+ "id": "unit",
1249
+ "value": "short"
1250
+ },
1251
+ {
1252
+ "id": "decimals",
1253
+ "value": 2
1254
+ },
1255
+ {
1256
+ "id": "custom.align"
1257
+ }
1258
+ ]
1259
+ },
1260
+ {
1261
+ "matcher": {
1262
+ "id": "byName",
1263
+ "options": "Value #D"
1264
+ },
1265
+ "properties": [
1266
+ {
1267
+ "id": "displayName",
1268
+ "value": "CPU Requests"
1269
+ },
1270
+ {
1271
+ "id": "unit",
1272
+ "value": "short"
1273
+ },
1274
+ {
1275
+ "id": "decimals",
1276
+ "value": 2
1277
+ },
1278
+ {
1279
+ "id": "custom.align"
1280
+ }
1281
+ ]
1282
+ },
1283
+ {
1284
+ "matcher": {
1285
+ "id": "byName",
1286
+ "options": "Value #E"
1287
+ },
1288
+ "properties": [
1289
+ {
1290
+ "id": "displayName",
1291
+ "value": "CPU Requests %"
1292
+ },
1293
+ {
1294
+ "id": "unit",
1295
+ "value": "percentunit"
1296
+ },
1297
+ {
1298
+ "id": "decimals",
1299
+ "value": 2
1300
+ },
1301
+ {
1302
+ "id": "custom.align"
1303
+ }
1304
+ ]
1305
+ },
1306
+ {
1307
+ "matcher": {
1308
+ "id": "byName",
1309
+ "options": "Value #F"
1310
+ },
1311
+ "properties": [
1312
+ {
1313
+ "id": "displayName",
1314
+ "value": "CPU Limits"
1315
+ },
1316
+ {
1317
+ "id": "unit",
1318
+ "value": "short"
1319
+ },
1320
+ {
1321
+ "id": "decimals",
1322
+ "value": 2
1323
+ },
1324
+ {
1325
+ "id": "custom.align"
1326
+ }
1327
+ ]
1328
+ },
1329
+ {
1330
+ "matcher": {
1331
+ "id": "byName",
1332
+ "options": "Value #G"
1333
+ },
1334
+ "properties": [
1335
+ {
1336
+ "id": "displayName",
1337
+ "value": "CPU Limits %"
1338
+ },
1339
+ {
1340
+ "id": "unit",
1341
+ "value": "percentunit"
1342
+ },
1343
+ {
1344
+ "id": "decimals",
1345
+ "value": 2
1346
+ },
1347
+ {
1348
+ "id": "custom.align"
1349
+ }
1350
+ ]
1351
+ },
1352
+ {
1353
+ "matcher": {
1354
+ "id": "byName",
1355
+ "options": "namespace"
1356
+ },
1357
+ "properties": [
1358
+ {
1359
+ "id": "displayName",
1360
+ "value": "Namespace"
1361
+ },
1362
+ {
1363
+ "id": "unit",
1364
+ "value": "short"
1365
+ },
1366
+ {
1367
+ "id": "decimals",
1368
+ "value": 2
1369
+ },
1370
+ {
1371
+ "id": "links",
1372
+ "value": []
1373
+ },
1374
+ {
1375
+ "id": "custom.align"
1376
+ }
1377
+ ]
1378
+ }
1379
+ ]
1380
+ },
1381
+ "gridPos": {
1382
+ "h": 8,
1383
+ "w": 15,
1384
+ "x": 9,
1385
+ "y": 22
1386
+ },
1387
+ "id": 93,
1388
+ "interval": "1m",
1389
+ "links": [],
1390
+ "options": {
1391
+ "cellHeight": "sm",
1392
+ "footer": {
1393
+ "countRows": false,
1394
+ "fields": "",
1395
+ "reducer": [
1396
+ "sum"
1397
+ ],
1398
+ "show": false
1399
+ },
1400
+ "showHeader": true
1401
+ },
1402
+ "pluginVersion": "9.2.4",
1403
+ "targets": [
1404
+ {
1405
+ "datasource": {
1406
+ "uid": "$datasource"
1407
+ },
1408
+ "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\"}) by (namespace)",
1409
+ "format": "table",
1410
+ "instant": true,
1411
+ "legendFormat": "",
1412
+ "refId": "C"
1413
+ },
1414
+ {
1415
+ "datasource": {
1416
+ "uid": "$datasource"
1417
+ },
1418
+ "expr": "sum(namespace_cpu:kube_pod_container_resource_requests:sum{cluster=\"$cluster\"}) by (namespace)",
1419
+ "format": "table",
1420
+ "instant": true,
1421
+ "legendFormat": "",
1422
+ "refId": "D"
1423
+ },
1424
+ {
1425
+ "datasource": {
1426
+ "uid": "$datasource"
1427
+ },
1428
+ "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\"}) by (namespace) / sum(namespace_cpu:kube_pod_container_resource_requests:sum{cluster=\"$cluster\"}) by (namespace)",
1429
+ "format": "table",
1430
+ "instant": true,
1431
+ "legendFormat": "",
1432
+ "refId": "E"
1433
+ },
1434
+ {
1435
+ "datasource": {
1436
+ "uid": "$datasource"
1437
+ },
1438
+ "expr": "sum(namespace_cpu:kube_pod_container_resource_limits:sum{cluster=\"$cluster\"}) by (namespace)",
1439
+ "format": "table",
1440
+ "instant": true,
1441
+ "legendFormat": "",
1442
+ "refId": "F"
1443
+ },
1444
+ {
1445
+ "datasource": {
1446
+ "uid": "$datasource"
1447
+ },
1448
+ "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\"}) by (namespace) / sum(namespace_cpu:kube_pod_container_resource_limits:sum{cluster=\"$cluster\"}) by (namespace)",
1449
+ "format": "table",
1450
+ "instant": true,
1451
+ "legendFormat": "",
1452
+ "refId": "G"
1453
+ }
1454
+ ],
1455
+ "title": "CPU",
1456
+ "transformations": [
1457
+ {
1458
+ "id": "merge",
1459
+ "options": {
1460
+ "reducers": []
1461
+ }
1462
+ },
1463
+ {
1464
+ "id": "organize",
1465
+ "options": {
1466
+ "excludeByName": {
1467
+ "Time": true
1468
+ },
1469
+ "includeByName": {},
1470
+ "indexByName": {},
1471
+ "renameByName": {}
1472
+ }
1473
+ }
1474
+ ],
1475
+ "type": "table"
1476
+ },
1477
+ {
1478
+ "collapsed": false,
1479
+ "gridPos": {
1480
+ "h": 1,
1481
+ "w": 24,
1482
+ "x": 0,
1483
+ "y": 30
1484
+ },
1485
+ "id": 92,
1486
+ "panels": [],
1487
+ "title": "内存",
1488
+ "type": "row"
1489
+ },
1490
+ {
1491
+ "datasource": {
1492
+ "type": "prometheus",
1493
+ "uid": "${datasource}"
1494
+ },
1495
+ "fieldConfig": {
1496
+ "defaults": {
1497
+ "color": {
1498
+ "mode": "continuous-GrYlRd"
1499
+ },
1500
+ "custom": {
1501
+ "axisCenteredZero": false,
1502
+ "axisColorMode": "text",
1503
+ "axisLabel": "MEMORY",
1504
+ "axisPlacement": "auto",
1505
+ "barAlignment": 0,
1506
+ "drawStyle": "line",
1507
+ "fillOpacity": 0,
1508
+ "gradientMode": "scheme",
1509
+ "hideFrom": {
1510
+ "legend": false,
1511
+ "tooltip": false,
1512
+ "viz": false
1513
+ },
1514
+ "lineInterpolation": "smooth",
1515
+ "lineWidth": 2,
1516
+ "pointSize": 5,
1517
+ "scaleDistribution": {
1518
+ "type": "linear"
1519
+ },
1520
+ "showPoints": "never",
1521
+ "spanNulls": false,
1522
+ "stacking": {
1523
+ "group": "A",
1524
+ "mode": "none"
1525
+ },
1526
+ "thresholdsStyle": {
1527
+ "mode": "off"
1528
+ }
1529
+ },
1530
+ "mappings": [],
1531
+ "thresholds": {
1532
+ "mode": "absolute",
1533
+ "steps": [
1534
+ {
1535
+ "color": "green"
1536
+ },
1537
+ {
1538
+ "color": "#EAB839",
1539
+ "value": 0.5
1540
+ },
1541
+ {
1542
+ "color": "red",
1543
+ "value": 0.7
1544
+ }
1545
+ ]
1546
+ },
1547
+ "unit": "percentunit"
1548
+ },
1549
+ "overrides": []
1550
+ },
1551
+ "gridPos": {
1552
+ "h": 8,
1553
+ "w": 9,
1554
+ "x": 0,
1555
+ "y": 31
1556
+ },
1557
+ "id": 55,
1558
+ "options": {
1559
+ "legend": {
1560
+ "calcs": [
1561
+ "mean",
1562
+ "lastNotNull",
1563
+ "max",
1564
+ "min"
1565
+ ],
1566
+ "displayMode": "hidden",
1567
+ "placement": "right",
1568
+ "showLegend": false
1569
+ },
1570
+ "tooltip": {
1571
+ "mode": "single",
1572
+ "sort": "none"
1573
+ }
1574
+ },
1575
+ "pluginVersion": "8.3.3",
1576
+ "targets": [
1577
+ {
1578
+ "datasource": {
1579
+ "type": "prometheus",
1580
+ "uid": "${datasource}"
1581
+ },
1582
+ "editorMode": "code",
1583
+ "exemplar": true,
1584
+ "expr": "sum(node_memory_MemTotal_bytes{cluster=\"$cluster\"} - node_memory_MemAvailable_bytes{cluster=\"$cluster\"}) / sum(node_memory_MemTotal_bytes{cluster=\"$cluster\"})",
1585
+ "interval": "$resolution",
1586
+ "legendFormat": "Memory usage in %",
1587
+ "range": true,
1588
+ "refId": "A"
1589
+ }
1590
+ ],
1591
+ "title": "Cluster Memory Utilization",
1592
+ "type": "timeseries"
1593
+ },
1594
+ {
1595
+ "datasource": {
1596
+ "type": "prometheus",
1597
+ "uid": "${datasource}"
1598
+ },
1599
+ "fieldConfig": {
1600
+ "defaults": {
1601
+ "color": {
1602
+ "mode": "palette-classic"
1603
+ },
1604
+ "custom": {
1605
+ "axisCenteredZero": false,
1606
+ "axisColorMode": "text",
1607
+ "axisLabel": "MEMORY",
1608
+ "axisPlacement": "auto",
1609
+ "barAlignment": 0,
1610
+ "drawStyle": "line",
1611
+ "fillOpacity": 0,
1612
+ "gradientMode": "opacity",
1613
+ "hideFrom": {
1614
+ "legend": false,
1615
+ "tooltip": false,
1616
+ "viz": false
1617
+ },
1618
+ "lineInterpolation": "smooth",
1619
+ "lineWidth": 2,
1620
+ "pointSize": 5,
1621
+ "scaleDistribution": {
1622
+ "type": "linear"
1623
+ },
1624
+ "showPoints": "never",
1625
+ "spanNulls": false,
1626
+ "stacking": {
1627
+ "group": "A",
1628
+ "mode": "none"
1629
+ },
1630
+ "thresholdsStyle": {
1631
+ "mode": "off"
1632
+ }
1633
+ },
1634
+ "mappings": [],
1635
+ "thresholds": {
1636
+ "mode": "absolute",
1637
+ "steps": [
1638
+ {
1639
+ "color": "green"
1640
+ },
1641
+ {
1642
+ "color": "red",
1643
+ "value": 80
1644
+ }
1645
+ ]
1646
+ },
1647
+ "unit": "bytes"
1648
+ },
1649
+ "overrides": []
1650
+ },
1651
+ "gridPos": {
1652
+ "h": 8,
1653
+ "w": 15,
1654
+ "x": 9,
1655
+ "y": 31
1656
+ },
1657
+ "id": 73,
1658
+ "options": {
1659
+ "legend": {
1660
+ "calcs": [
1661
+ "last"
1662
+ ],
1663
+ "displayMode": "table",
1664
+ "placement": "right",
1665
+ "showLegend": true,
1666
+ "sortBy": "Max",
1667
+ "sortDesc": true
1668
+ },
1669
+ "tooltip": {
1670
+ "mode": "multi",
1671
+ "sort": "none"
1672
+ }
1673
+ },
1674
+ "pluginVersion": "8.3.3",
1675
+ "targets": [
1676
+ {
1677
+ "datasource": {
1678
+ "type": "prometheus",
1679
+ "uid": "${datasource}"
1680
+ },
1681
+ "editorMode": "code",
1682
+ "exemplar": true,
1683
+ "expr": "sum(node_memory_MemTotal_bytes{cluster=\"$cluster\"} - node_memory_MemAvailable_bytes{cluster=\"$cluster\"}) by (instance)",
1684
+ "interval": "$resolution",
1685
+ "legendFormat": "{{ node}}",
1686
+ "range": true,
1687
+ "refId": "A"
1688
+ }
1689
+ ],
1690
+ "title": "Memory Utilization by instance",
1691
+ "type": "timeseries"
1692
+ },
1693
+ {
1694
+ "datasource": {
1695
+ "type": "prometheus",
1696
+ "uid": "${datasource}"
1697
+ },
1698
+ "fieldConfig": {
1699
+ "defaults": {
1700
+ "color": {
1701
+ "mode": "palette-classic"
1702
+ },
1703
+ "custom": {
1704
+ "axisCenteredZero": false,
1705
+ "axisColorMode": "text",
1706
+ "axisLabel": "",
1707
+ "axisPlacement": "auto",
1708
+ "barAlignment": 0,
1709
+ "drawStyle": "line",
1710
+ "fillOpacity": 0,
1711
+ "gradientMode": "opacity",
1712
+ "hideFrom": {
1713
+ "legend": false,
1714
+ "tooltip": false,
1715
+ "viz": false
1716
+ },
1717
+ "lineInterpolation": "smooth",
1718
+ "lineWidth": 2,
1719
+ "pointSize": 5,
1720
+ "scaleDistribution": {
1721
+ "type": "linear"
1722
+ },
1723
+ "showPoints": "never",
1724
+ "spanNulls": false,
1725
+ "stacking": {
1726
+ "group": "A",
1727
+ "mode": "none"
1728
+ },
1729
+ "thresholdsStyle": {
1730
+ "mode": "off"
1731
+ }
1732
+ },
1733
+ "mappings": [],
1734
+ "thresholds": {
1735
+ "mode": "absolute",
1736
+ "steps": [
1737
+ {
1738
+ "color": "green"
1739
+ },
1740
+ {
1741
+ "color": "red",
1742
+ "value": 80
1743
+ }
1744
+ ]
1745
+ },
1746
+ "unit": "bytes"
1747
+ },
1748
+ "overrides": []
1749
+ },
1750
+ "gridPos": {
1751
+ "h": 8,
1752
+ "w": 9,
1753
+ "x": 0,
1754
+ "y": 39
1755
+ },
1756
+ "id": 50,
1757
+ "options": {
1758
+ "legend": {
1759
+ "calcs": [
1760
+ "last"
1761
+ ],
1762
+ "displayMode": "table",
1763
+ "placement": "right",
1764
+ "showLegend": true,
1765
+ "sortBy": "Max",
1766
+ "sortDesc": true
1767
+ },
1768
+ "tooltip": {
1769
+ "mode": "multi",
1770
+ "sort": "none"
1771
+ }
1772
+ },
1773
+ "pluginVersion": "8.3.3",
1774
+ "targets": [
1775
+ {
1776
+ "datasource": {
1777
+ "type": "prometheus",
1778
+ "uid": "${datasource}"
1779
+ },
1780
+ "exemplar": true,
1781
+ "expr": "sum(container_memory_working_set_bytes{image!=\"\", cluster=\"$cluster\"}) by (namespace)",
1782
+ "interval": "$resolution",
1783
+ "legendFormat": "{{ namespace }}",
1784
+ "refId": "A"
1785
+ }
1786
+ ],
1787
+ "title": "Memory Utilization by namespace",
1788
+ "type": "timeseries"
1789
+ },
1790
+ {
1791
+ "datasource": {
1792
+ "type": "prometheus",
1793
+ "uid": "$datasource"
1794
+ },
1795
+ "fieldConfig": {
1796
+ "defaults": {
1797
+ "color": {
1798
+ "mode": "thresholds"
1799
+ },
1800
+ "custom": {
1801
+ "align": "auto",
1802
+ "displayMode": "auto",
1803
+ "inspect": false
1804
+ },
1805
+ "decimals": 2,
1806
+ "displayName": "",
1807
+ "mappings": [],
1808
+ "thresholds": {
1809
+ "mode": "absolute",
1810
+ "steps": [
1811
+ {
1812
+ "color": "green"
1813
+ },
1814
+ {
1815
+ "color": "red",
1816
+ "value": 80
1817
+ }
1818
+ ]
1819
+ },
1820
+ "unit": "short"
1821
+ },
1822
+ "overrides": [
1823
+ {
1824
+ "matcher": {
1825
+ "id": "byName",
1826
+ "options": "Value #C"
1827
+ },
1828
+ "properties": [
1829
+ {
1830
+ "id": "displayName",
1831
+ "value": "Memory Usage"
1832
+ },
1833
+ {
1834
+ "id": "unit",
1835
+ "value": "bytes"
1836
+ },
1837
+ {
1838
+ "id": "decimals",
1839
+ "value": 2
1840
+ },
1841
+ {
1842
+ "id": "custom.align"
1843
+ }
1844
+ ]
1845
+ },
1846
+ {
1847
+ "matcher": {
1848
+ "id": "byName",
1849
+ "options": "Value #D"
1850
+ },
1851
+ "properties": [
1852
+ {
1853
+ "id": "displayName",
1854
+ "value": "Memory Requests"
1855
+ },
1856
+ {
1857
+ "id": "unit",
1858
+ "value": "bytes"
1859
+ },
1860
+ {
1861
+ "id": "decimals",
1862
+ "value": 2
1863
+ },
1864
+ {
1865
+ "id": "custom.align"
1866
+ }
1867
+ ]
1868
+ },
1869
+ {
1870
+ "matcher": {
1871
+ "id": "byName",
1872
+ "options": "Value #E"
1873
+ },
1874
+ "properties": [
1875
+ {
1876
+ "id": "displayName",
1877
+ "value": "Memory Requests %"
1878
+ },
1879
+ {
1880
+ "id": "unit",
1881
+ "value": "percentunit"
1882
+ },
1883
+ {
1884
+ "id": "decimals",
1885
+ "value": 2
1886
+ },
1887
+ {
1888
+ "id": "custom.align"
1889
+ }
1890
+ ]
1891
+ },
1892
+ {
1893
+ "matcher": {
1894
+ "id": "byName",
1895
+ "options": "Value #F"
1896
+ },
1897
+ "properties": [
1898
+ {
1899
+ "id": "displayName",
1900
+ "value": "Memory Limits"
1901
+ },
1902
+ {
1903
+ "id": "unit",
1904
+ "value": "bytes"
1905
+ },
1906
+ {
1907
+ "id": "decimals",
1908
+ "value": 2
1909
+ },
1910
+ {
1911
+ "id": "custom.align"
1912
+ }
1913
+ ]
1914
+ },
1915
+ {
1916
+ "matcher": {
1917
+ "id": "byName",
1918
+ "options": "Value #G"
1919
+ },
1920
+ "properties": [
1921
+ {
1922
+ "id": "displayName",
1923
+ "value": "Memory Limits %"
1924
+ },
1925
+ {
1926
+ "id": "unit",
1927
+ "value": "percentunit"
1928
+ },
1929
+ {
1930
+ "id": "decimals",
1931
+ "value": 2
1932
+ },
1933
+ {
1934
+ "id": "custom.align"
1935
+ }
1936
+ ]
1937
+ },
1938
+ {
1939
+ "matcher": {
1940
+ "id": "byName",
1941
+ "options": "namespace"
1942
+ },
1943
+ "properties": [
1944
+ {
1945
+ "id": "displayName",
1946
+ "value": "Namespace"
1947
+ },
1948
+ {
1949
+ "id": "unit",
1950
+ "value": "short"
1951
+ },
1952
+ {
1953
+ "id": "decimals",
1954
+ "value": 2
1955
+ },
1956
+ {
1957
+ "id": "links",
1958
+ "value": []
1959
+ },
1960
+ {
1961
+ "id": "custom.align"
1962
+ }
1963
+ ]
1964
+ }
1965
+ ]
1966
+ },
1967
+ "gridPos": {
1968
+ "h": 8,
1969
+ "w": 15,
1970
+ "x": 9,
1971
+ "y": 39
1972
+ },
1973
+ "id": 94,
1974
+ "interval": "1m",
1975
+ "links": [],
1976
+ "options": {
1977
+ "cellHeight": "sm",
1978
+ "footer": {
1979
+ "countRows": false,
1980
+ "fields": "",
1981
+ "reducer": [
1982
+ "sum"
1983
+ ],
1984
+ "show": false
1985
+ },
1986
+ "showHeader": true
1987
+ },
1988
+ "pluginVersion": "9.2.4",
1989
+ "targets": [
1990
+ {
1991
+ "datasource": {
1992
+ "uid": "$datasource"
1993
+ },
1994
+ "expr": "sum(container_memory_rss{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", container!=\"\"}) by (namespace)",
1995
+ "format": "table",
1996
+ "instant": true,
1997
+ "legendFormat": "",
1998
+ "refId": "C"
1999
+ },
2000
+ {
2001
+ "datasource": {
2002
+ "uid": "$datasource"
2003
+ },
2004
+ "expr": "sum(namespace_memory:kube_pod_container_resource_requests:sum{cluster=\"$cluster\"}) by (namespace)",
2005
+ "format": "table",
2006
+ "instant": true,
2007
+ "legendFormat": "",
2008
+ "refId": "D"
2009
+ },
2010
+ {
2011
+ "datasource": {
2012
+ "uid": "$datasource"
2013
+ },
2014
+ "expr": "sum(container_memory_rss{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", container!=\"\"}) by (namespace) / sum(namespace_memory:kube_pod_container_resource_requests:sum{cluster=\"$cluster\"}) by (namespace)",
2015
+ "format": "table",
2016
+ "instant": true,
2017
+ "legendFormat": "",
2018
+ "refId": "E"
2019
+ },
2020
+ {
2021
+ "datasource": {
2022
+ "uid": "$datasource"
2023
+ },
2024
+ "expr": "sum(namespace_memory:kube_pod_container_resource_limits:sum{cluster=\"$cluster\"}) by (namespace)",
2025
+ "format": "table",
2026
+ "instant": true,
2027
+ "legendFormat": "",
2028
+ "refId": "F"
2029
+ },
2030
+ {
2031
+ "datasource": {
2032
+ "uid": "$datasource"
2033
+ },
2034
+ "expr": "sum(container_memory_rss{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", container!=\"\"}) by (namespace) / sum(namespace_memory:kube_pod_container_resource_limits:sum{cluster=\"$cluster\"}) by (namespace)",
2035
+ "format": "table",
2036
+ "instant": true,
2037
+ "legendFormat": "",
2038
+ "refId": "G"
2039
+ }
2040
+ ],
2041
+ "title": "内存",
2042
+ "transformations": [
2043
+ {
2044
+ "id": "merge",
2045
+ "options": {
2046
+ "reducers": []
2047
+ }
2048
+ },
2049
+ {
2050
+ "id": "organize",
2051
+ "options": {
2052
+ "excludeByName": {
2053
+ "Time": true
2054
+ },
2055
+ "includeByName": {},
2056
+ "indexByName": {},
2057
+ "renameByName": {}
2058
+ }
2059
+ }
2060
+ ],
2061
+ "type": "table"
2062
+ },
2063
+ {
2064
+ "collapsed": false,
2065
+ "datasource": {
2066
+ "type": "prometheus",
2067
+ "uid": "prometheus"
2068
+ },
2069
+ "gridPos": {
2070
+ "h": 1,
2071
+ "w": 24,
2072
+ "x": 0,
2073
+ "y": 47
2074
+ },
2075
+ "id": 69,
2076
+ "panels": [],
2077
+ "title": "网络",
2078
+ "type": "row"
2079
+ },
2080
+ {
2081
+ "datasource": {
2082
+ "uid": "$datasource"
2083
+ },
2084
+ "fieldConfig": {
2085
+ "defaults": {
2086
+ "color": {
2087
+ "mode": "thresholds"
2088
+ },
2089
+ "custom": {
2090
+ "align": "auto",
2091
+ "displayMode": "auto",
2092
+ "inspect": false
2093
+ },
2094
+ "decimals": 2,
2095
+ "displayName": "",
2096
+ "mappings": [],
2097
+ "thresholds": {
2098
+ "mode": "absolute",
2099
+ "steps": [
2100
+ {
2101
+ "color": "green"
2102
+ },
2103
+ {
2104
+ "color": "red",
2105
+ "value": 80
2106
+ }
2107
+ ]
2108
+ },
2109
+ "unit": "short"
2110
+ },
2111
+ "overrides": [
2112
+ {
2113
+ "matcher": {
2114
+ "id": "byName",
2115
+ "options": "Time"
2116
+ },
2117
+ "properties": [
2118
+ {
2119
+ "id": "displayName",
2120
+ "value": "Time"
2121
+ },
2122
+ {
2123
+ "id": "custom.align"
2124
+ }
2125
+ ]
2126
+ },
2127
+ {
2128
+ "matcher": {
2129
+ "id": "byName",
2130
+ "options": "Value #A"
2131
+ },
2132
+ "properties": [
2133
+ {
2134
+ "id": "displayName",
2135
+ "value": "Current Receive Bandwidth"
2136
+ },
2137
+ {
2138
+ "id": "unit",
2139
+ "value": "Bps"
2140
+ },
2141
+ {
2142
+ "id": "decimals",
2143
+ "value": 2
2144
+ },
2145
+ {
2146
+ "id": "custom.align"
2147
+ }
2148
+ ]
2149
+ },
2150
+ {
2151
+ "matcher": {
2152
+ "id": "byName",
2153
+ "options": "Value #B"
2154
+ },
2155
+ "properties": [
2156
+ {
2157
+ "id": "displayName",
2158
+ "value": "Current Transmit Bandwidth"
2159
+ },
2160
+ {
2161
+ "id": "unit",
2162
+ "value": "Bps"
2163
+ },
2164
+ {
2165
+ "id": "decimals",
2166
+ "value": 2
2167
+ },
2168
+ {
2169
+ "id": "custom.align"
2170
+ }
2171
+ ]
2172
+ },
2173
+ {
2174
+ "matcher": {
2175
+ "id": "byName",
2176
+ "options": "Value #C"
2177
+ },
2178
+ "properties": [
2179
+ {
2180
+ "id": "displayName",
2181
+ "value": "Rate of Received Packets"
2182
+ },
2183
+ {
2184
+ "id": "unit",
2185
+ "value": "pps"
2186
+ },
2187
+ {
2188
+ "id": "decimals",
2189
+ "value": 2
2190
+ },
2191
+ {
2192
+ "id": "custom.align"
2193
+ }
2194
+ ]
2195
+ },
2196
+ {
2197
+ "matcher": {
2198
+ "id": "byName",
2199
+ "options": "Value #D"
2200
+ },
2201
+ "properties": [
2202
+ {
2203
+ "id": "displayName",
2204
+ "value": "Rate of Transmitted Packets"
2205
+ },
2206
+ {
2207
+ "id": "unit",
2208
+ "value": "pps"
2209
+ },
2210
+ {
2211
+ "id": "decimals",
2212
+ "value": 2
2213
+ },
2214
+ {
2215
+ "id": "custom.align"
2216
+ }
2217
+ ]
2218
+ },
2219
+ {
2220
+ "matcher": {
2221
+ "id": "byName",
2222
+ "options": "Value #E"
2223
+ },
2224
+ "properties": [
2225
+ {
2226
+ "id": "displayName",
2227
+ "value": "Rate of Received Packets Dropped"
2228
+ },
2229
+ {
2230
+ "id": "unit",
2231
+ "value": "pps"
2232
+ },
2233
+ {
2234
+ "id": "decimals",
2235
+ "value": 2
2236
+ },
2237
+ {
2238
+ "id": "custom.align"
2239
+ }
2240
+ ]
2241
+ },
2242
+ {
2243
+ "matcher": {
2244
+ "id": "byName",
2245
+ "options": "Value #F"
2246
+ },
2247
+ "properties": [
2248
+ {
2249
+ "id": "displayName",
2250
+ "value": "Rate of Transmitted Packets Dropped"
2251
+ },
2252
+ {
2253
+ "id": "unit",
2254
+ "value": "pps"
2255
+ },
2256
+ {
2257
+ "id": "decimals",
2258
+ "value": 2
2259
+ },
2260
+ {
2261
+ "id": "custom.align"
2262
+ }
2263
+ ]
2264
+ },
2265
+ {
2266
+ "matcher": {
2267
+ "id": "byName",
2268
+ "options": "namespace"
2269
+ },
2270
+ "properties": [
2271
+ {
2272
+ "id": "displayName",
2273
+ "value": "Namespace"
2274
+ },
2275
+ {
2276
+ "id": "unit",
2277
+ "value": "short"
2278
+ },
2279
+ {
2280
+ "id": "decimals",
2281
+ "value": 2
2282
+ },
2283
+ {
2284
+ "id": "links",
2285
+ "value": []
2286
+ },
2287
+ {
2288
+ "id": "custom.align"
2289
+ }
2290
+ ]
2291
+ }
2292
+ ]
2293
+ },
2294
+ "gridPos": {
2295
+ "h": 7,
2296
+ "w": 24,
2297
+ "x": 0,
2298
+ "y": 48
2299
+ },
2300
+ "id": 95,
2301
+ "interval": "1m",
2302
+ "links": [],
2303
+ "options": {
2304
+ "cellHeight": "sm",
2305
+ "footer": {
2306
+ "countRows": false,
2307
+ "fields": "",
2308
+ "reducer": [
2309
+ "sum"
2310
+ ],
2311
+ "show": false
2312
+ },
2313
+ "showHeader": true
2314
+ },
2315
+ "pluginVersion": "9.2.4",
2316
+ "targets": [
2317
+ {
2318
+ "datasource": {
2319
+ "uid": "$datasource"
2320
+ },
2321
+ "expr": "sum(irate(container_network_receive_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)",
2322
+ "format": "table",
2323
+ "instant": true,
2324
+ "legendFormat": "",
2325
+ "refId": "A"
2326
+ },
2327
+ {
2328
+ "datasource": {
2329
+ "uid": "$datasource"
2330
+ },
2331
+ "expr": "sum(irate(container_network_transmit_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)",
2332
+ "format": "table",
2333
+ "instant": true,
2334
+ "legendFormat": "",
2335
+ "refId": "B"
2336
+ },
2337
+ {
2338
+ "datasource": {
2339
+ "uid": "$datasource"
2340
+ },
2341
+ "expr": "sum(irate(container_network_receive_packets_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)",
2342
+ "format": "table",
2343
+ "instant": true,
2344
+ "legendFormat": "",
2345
+ "refId": "C"
2346
+ },
2347
+ {
2348
+ "datasource": {
2349
+ "uid": "$datasource"
2350
+ },
2351
+ "expr": "sum(irate(container_network_transmit_packets_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)",
2352
+ "format": "table",
2353
+ "instant": true,
2354
+ "legendFormat": "",
2355
+ "refId": "D"
2356
+ },
2357
+ {
2358
+ "datasource": {
2359
+ "uid": "$datasource"
2360
+ },
2361
+ "expr": "sum(irate(container_network_receive_packets_dropped_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)",
2362
+ "format": "table",
2363
+ "instant": true,
2364
+ "legendFormat": "",
2365
+ "refId": "E"
2366
+ },
2367
+ {
2368
+ "datasource": {
2369
+ "uid": "$datasource"
2370
+ },
2371
+ "expr": "sum(irate(container_network_transmit_packets_dropped_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)",
2372
+ "format": "table",
2373
+ "instant": true,
2374
+ "legendFormat": "",
2375
+ "refId": "F"
2376
+ }
2377
+ ],
2378
+ "title": "网络",
2379
+ "transformations": [
2380
+ {
2381
+ "id": "merge",
2382
+ "options": {
2383
+ "reducers": []
2384
+ }
2385
+ },
2386
+ {
2387
+ "id": "organize",
2388
+ "options": {
2389
+ "excludeByName": {
2390
+ "Time": true
2391
+ },
2392
+ "includeByName": {},
2393
+ "indexByName": {},
2394
+ "renameByName": {}
2395
+ }
2396
+ }
2397
+ ],
2398
+ "type": "table"
2399
+ },
2400
+ {
2401
+ "datasource": {
2402
+ "type": "prometheus",
2403
+ "uid": "${datasource}"
2404
+ },
2405
+ "fieldConfig": {
2406
+ "defaults": {
2407
+ "color": {
2408
+ "mode": "palette-classic"
2409
+ },
2410
+ "custom": {
2411
+ "axisCenteredZero": false,
2412
+ "axisColorMode": "text",
2413
+ "axisLabel": "BANDWIDTH",
2414
+ "axisPlacement": "auto",
2415
+ "barAlignment": 0,
2416
+ "drawStyle": "line",
2417
+ "fillOpacity": 25,
2418
+ "gradientMode": "opacity",
2419
+ "hideFrom": {
2420
+ "legend": false,
2421
+ "tooltip": false,
2422
+ "viz": false
2423
+ },
2424
+ "lineInterpolation": "smooth",
2425
+ "lineWidth": 2,
2426
+ "pointSize": 5,
2427
+ "scaleDistribution": {
2428
+ "type": "linear"
2429
+ },
2430
+ "showPoints": "never",
2431
+ "spanNulls": false,
2432
+ "stacking": {
2433
+ "group": "A",
2434
+ "mode": "none"
2435
+ },
2436
+ "thresholdsStyle": {
2437
+ "mode": "off"
2438
+ }
2439
+ },
2440
+ "mappings": [],
2441
+ "thresholds": {
2442
+ "mode": "absolute",
2443
+ "steps": [
2444
+ {
2445
+ "color": "green"
2446
+ },
2447
+ {
2448
+ "color": "red",
2449
+ "value": 80
2450
+ }
2451
+ ]
2452
+ },
2453
+ "unit": "bytes"
2454
+ },
2455
+ "overrides": []
2456
+ },
2457
+ "gridPos": {
2458
+ "h": 8,
2459
+ "w": 8,
2460
+ "x": 0,
2461
+ "y": 55
2462
+ },
2463
+ "id": 79,
2464
+ "options": {
2465
+ "legend": {
2466
+ "calcs": [],
2467
+ "displayMode": "hidden",
2468
+ "placement": "bottom",
2469
+ "showLegend": false
2470
+ },
2471
+ "tooltip": {
2472
+ "mode": "multi",
2473
+ "sort": "desc"
2474
+ }
2475
+ },
2476
+ "pluginVersion": "8.3.3",
2477
+ "targets": [
2478
+ {
2479
+ "datasource": {
2480
+ "type": "prometheus",
2481
+ "uid": "${datasource}"
2482
+ },
2483
+ "editorMode": "code",
2484
+ "exemplar": true,
2485
+ "expr": "sum(rate(container_network_receive_bytes_total{cluster=\"$cluster\"}[$__rate_interval])) by (namespace)",
2486
+ "interval": "$resolution",
2487
+ "legendFormat": "Received : {{ namespace }}",
2488
+ "range": true,
2489
+ "refId": "A"
2490
+ },
2491
+ {
2492
+ "datasource": {
2493
+ "type": "prometheus",
2494
+ "uid": "${datasource}"
2495
+ },
2496
+ "editorMode": "code",
2497
+ "expr": "- sum(rate(container_network_transmit_bytes_total{cluster=\"$cluster\"}[$__rate_interval])) by (namespace)",
2498
+ "hide": false,
2499
+ "interval": "$resolution",
2500
+ "legendFormat": "Transmitted : {{ namespace }}",
2501
+ "range": true,
2502
+ "refId": "B"
2503
+ }
2504
+ ],
2505
+ "title": "Network Received by namespace",
2506
+ "type": "timeseries"
2507
+ },
2508
+ {
2509
+ "aliasColors": {},
2510
+ "bars": false,
2511
+ "dashLength": 10,
2512
+ "dashes": false,
2513
+ "datasource": {
2514
+ "uid": "$datasource"
2515
+ },
2516
+ "fill": 10,
2517
+ "fillGradient": 0,
2518
+ "gridPos": {
2519
+ "h": 8,
2520
+ "w": 8,
2521
+ "x": 8,
2522
+ "y": 55
2523
+ },
2524
+ "hiddenSeries": false,
2525
+ "id": 96,
2526
+ "interval": "1m",
2527
+ "legend": {
2528
+ "alignAsTable": true,
2529
+ "avg": false,
2530
+ "current": false,
2531
+ "max": false,
2532
+ "min": false,
2533
+ "rightSide": true,
2534
+ "show": true,
2535
+ "total": false,
2536
+ "values": false
2537
+ },
2538
+ "lines": true,
2539
+ "linewidth": 0,
2540
+ "links": [],
2541
+ "nullPointMode": "null as zero",
2542
+ "options": {
2543
+ "alertThreshold": true
2544
+ },
2545
+ "percentage": false,
2546
+ "pluginVersion": "9.2.4",
2547
+ "pointradius": 5,
2548
+ "points": false,
2549
+ "renderer": "flot",
2550
+ "seriesOverrides": [],
2551
+ "spaceLength": 10,
2552
+ "stack": true,
2553
+ "steppedLine": false,
2554
+ "targets": [
2555
+ {
2556
+ "datasource": {
2557
+ "uid": "$datasource"
2558
+ },
2559
+ "expr": "sum(irate(container_network_receive_packets_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)",
2560
+ "format": "time_series",
2561
+ "legendFormat": "{{namespace}}",
2562
+ "refId": "A"
2563
+ }
2564
+ ],
2565
+ "thresholds": [],
2566
+ "timeRegions": [],
2567
+ "title": "Rate of Received Packets",
2568
+ "tooltip": {
2569
+ "shared": false,
2570
+ "sort": 2,
2571
+ "value_type": "individual"
2572
+ },
2573
+ "type": "graph",
2574
+ "xaxis": {
2575
+ "mode": "time",
2576
+ "show": true,
2577
+ "values": []
2578
+ },
2579
+ "yaxes": [
2580
+ {
2581
+ "format": "pps",
2582
+ "logBase": 1,
2583
+ "min": 0,
2584
+ "show": true
2585
+ },
2586
+ {
2587
+ "format": "short",
2588
+ "logBase": 1,
2589
+ "show": false
2590
+ }
2591
+ ],
2592
+ "yaxis": {
2593
+ "align": false
2594
+ }
2595
+ },
2596
+ {
2597
+ "datasource": {
2598
+ "type": "prometheus",
2599
+ "uid": "${datasource}"
2600
+ },
2601
+ "fieldConfig": {
2602
+ "defaults": {
2603
+ "color": {
2604
+ "mode": "palette-classic"
2605
+ },
2606
+ "custom": {
2607
+ "axisCenteredZero": false,
2608
+ "axisColorMode": "text",
2609
+ "axisLabel": "DROPPED PACKETS",
2610
+ "axisPlacement": "auto",
2611
+ "barAlignment": 0,
2612
+ "drawStyle": "line",
2613
+ "fillOpacity": 25,
2614
+ "gradientMode": "opacity",
2615
+ "hideFrom": {
2616
+ "legend": false,
2617
+ "tooltip": false,
2618
+ "viz": false
2619
+ },
2620
+ "lineInterpolation": "smooth",
2621
+ "lineWidth": 2,
2622
+ "pointSize": 5,
2623
+ "scaleDistribution": {
2624
+ "type": "linear"
2625
+ },
2626
+ "showPoints": "never",
2627
+ "spanNulls": false,
2628
+ "stacking": {
2629
+ "group": "A",
2630
+ "mode": "none"
2631
+ },
2632
+ "thresholdsStyle": {
2633
+ "mode": "off"
2634
+ }
2635
+ },
2636
+ "mappings": [],
2637
+ "thresholds": {
2638
+ "mode": "absolute",
2639
+ "steps": [
2640
+ {
2641
+ "color": "green"
2642
+ },
2643
+ {
2644
+ "color": "red",
2645
+ "value": 80
2646
+ }
2647
+ ]
2648
+ },
2649
+ "unit": "none"
2650
+ },
2651
+ "overrides": []
2652
+ },
2653
+ "gridPos": {
2654
+ "h": 8,
2655
+ "w": 8,
2656
+ "x": 16,
2657
+ "y": 55
2658
+ },
2659
+ "id": 53,
2660
+ "options": {
2661
+ "legend": {
2662
+ "calcs": [],
2663
+ "displayMode": "hidden",
2664
+ "placement": "bottom",
2665
+ "showLegend": false
2666
+ },
2667
+ "tooltip": {
2668
+ "mode": "multi",
2669
+ "sort": "none"
2670
+ }
2671
+ },
2672
+ "pluginVersion": "8.3.3",
2673
+ "targets": [
2674
+ {
2675
+ "datasource": {
2676
+ "type": "prometheus",
2677
+ "uid": "${datasource}"
2678
+ },
2679
+ "editorMode": "code",
2680
+ "exemplar": true,
2681
+ "expr": "sum(rate(node_network_receive_drop_total{cluster=\"$cluster\"}[$__rate_interval]))",
2682
+ "interval": "$resolution",
2683
+ "legendFormat": "Packets dropped (receive)",
2684
+ "range": true,
2685
+ "refId": "A"
2686
+ },
2687
+ {
2688
+ "datasource": {
2689
+ "type": "prometheus",
2690
+ "uid": "${datasource}"
2691
+ },
2692
+ "editorMode": "code",
2693
+ "exemplar": true,
2694
+ "expr": "- sum(rate(node_network_transmit_drop_total{cluster=\"$cluster\"}[$__rate_interval]))",
2695
+ "interval": "$resolution",
2696
+ "legendFormat": "Packets dropped (transmit)",
2697
+ "range": true,
2698
+ "refId": "B"
2699
+ }
2700
+ ],
2701
+ "title": "Network Saturation - Packets dropped",
2702
+ "type": "timeseries"
2703
+ },
2704
+ {
2705
+ "datasource": {
2706
+ "type": "prometheus",
2707
+ "uid": "${datasource}"
2708
+ },
2709
+ "description": "Dropped noisy virtual devices for readability.",
2710
+ "fieldConfig": {
2711
+ "defaults": {
2712
+ "color": {
2713
+ "mode": "palette-classic"
2714
+ },
2715
+ "custom": {
2716
+ "axisCenteredZero": false,
2717
+ "axisColorMode": "text",
2718
+ "axisLabel": "BANDWIDTH",
2719
+ "axisPlacement": "auto",
2720
+ "barAlignment": 0,
2721
+ "drawStyle": "line",
2722
+ "fillOpacity": 25,
2723
+ "gradientMode": "opacity",
2724
+ "hideFrom": {
2725
+ "legend": false,
2726
+ "tooltip": false,
2727
+ "viz": false
2728
+ },
2729
+ "lineInterpolation": "smooth",
2730
+ "lineWidth": 2,
2731
+ "pointSize": 5,
2732
+ "scaleDistribution": {
2733
+ "type": "linear"
2734
+ },
2735
+ "showPoints": "never",
2736
+ "spanNulls": false,
2737
+ "stacking": {
2738
+ "group": "A",
2739
+ "mode": "none"
2740
+ },
2741
+ "thresholdsStyle": {
2742
+ "mode": "off"
2743
+ }
2744
+ },
2745
+ "mappings": [],
2746
+ "thresholds": {
2747
+ "mode": "absolute",
2748
+ "steps": [
2749
+ {
2750
+ "color": "green"
2751
+ },
2752
+ {
2753
+ "color": "red",
2754
+ "value": 80
2755
+ }
2756
+ ]
2757
+ },
2758
+ "unit": "bytes"
2759
+ },
2760
+ "overrides": []
2761
+ },
2762
+ "gridPos": {
2763
+ "h": 8,
2764
+ "w": 8,
2765
+ "x": 0,
2766
+ "y": 63
2767
+ },
2768
+ "id": 81,
2769
+ "options": {
2770
+ "legend": {
2771
+ "calcs": [],
2772
+ "displayMode": "hidden",
2773
+ "placement": "bottom",
2774
+ "showLegend": false
2775
+ },
2776
+ "tooltip": {
2777
+ "mode": "multi",
2778
+ "sort": "desc"
2779
+ }
2780
+ },
2781
+ "pluginVersion": "8.3.3",
2782
+ "targets": [
2783
+ {
2784
+ "datasource": {
2785
+ "type": "prometheus",
2786
+ "uid": "${datasource}"
2787
+ },
2788
+ "editorMode": "code",
2789
+ "exemplar": true,
2790
+ "expr": "sum(rate(node_network_receive_bytes_total{device=\"lo\", cluster=\"$cluster\"}[$__rate_interval])) by (instance)",
2791
+ "interval": "$resolution",
2792
+ "legendFormat": "Received bytes in {{ instance }}",
2793
+ "range": true,
2794
+ "refId": "A"
2795
+ },
2796
+ {
2797
+ "datasource": {
2798
+ "type": "prometheus",
2799
+ "uid": "${datasource}"
2800
+ },
2801
+ "editorMode": "code",
2802
+ "expr": "- sum(rate(node_network_transmit_bytes_total{device=\"lo\", cluster=\"$cluster\"}[$__rate_interval])) by (instance)",
2803
+ "hide": false,
2804
+ "interval": "$resolution",
2805
+ "legendFormat": "Transmitted bytes in {{ instance }}",
2806
+ "range": true,
2807
+ "refId": "B"
2808
+ }
2809
+ ],
2810
+ "title": "Network Received (loopback only) by instance",
2811
+ "type": "timeseries"
2812
+ },
2813
+ {
2814
+ "datasource": {
2815
+ "type": "prometheus",
2816
+ "uid": "${datasource}"
2817
+ },
2818
+ "fieldConfig": {
2819
+ "defaults": {
2820
+ "color": {
2821
+ "mode": "palette-classic"
2822
+ },
2823
+ "custom": {
2824
+ "axisCenteredZero": false,
2825
+ "axisColorMode": "text",
2826
+ "axisLabel": "BANDWIDTH",
2827
+ "axisPlacement": "auto",
2828
+ "barAlignment": 0,
2829
+ "drawStyle": "line",
2830
+ "fillOpacity": 25,
2831
+ "gradientMode": "opacity",
2832
+ "hideFrom": {
2833
+ "legend": false,
2834
+ "tooltip": false,
2835
+ "viz": false
2836
+ },
2837
+ "lineInterpolation": "smooth",
2838
+ "lineWidth": 2,
2839
+ "pointSize": 5,
2840
+ "scaleDistribution": {
2841
+ "type": "linear"
2842
+ },
2843
+ "showPoints": "never",
2844
+ "spanNulls": false,
2845
+ "stacking": {
2846
+ "group": "A",
2847
+ "mode": "none"
2848
+ },
2849
+ "thresholdsStyle": {
2850
+ "mode": "off"
2851
+ }
2852
+ },
2853
+ "mappings": [],
2854
+ "thresholds": {
2855
+ "mode": "absolute",
2856
+ "steps": [
2857
+ {
2858
+ "color": "green"
2859
+ },
2860
+ {
2861
+ "color": "red",
2862
+ "value": 80
2863
+ }
2864
+ ]
2865
+ },
2866
+ "unit": "bytes"
2867
+ },
2868
+ "overrides": []
2869
+ },
2870
+ "gridPos": {
2871
+ "h": 8,
2872
+ "w": 8,
2873
+ "x": 8,
2874
+ "y": 63
2875
+ },
2876
+ "id": 80,
2877
+ "options": {
2878
+ "legend": {
2879
+ "calcs": [],
2880
+ "displayMode": "hidden",
2881
+ "placement": "bottom",
2882
+ "showLegend": false
2883
+ },
2884
+ "tooltip": {
2885
+ "mode": "multi",
2886
+ "sort": "desc"
2887
+ }
2888
+ },
2889
+ "pluginVersion": "8.3.3",
2890
+ "targets": [
2891
+ {
2892
+ "datasource": {
2893
+ "type": "prometheus",
2894
+ "uid": "${datasource}"
2895
+ },
2896
+ "editorMode": "code",
2897
+ "exemplar": true,
2898
+ "expr": "sum(rate(node_network_receive_bytes_total{cluster=\"$cluster\"}[$__rate_interval])) by (instance)",
2899
+ "interval": "$resolution",
2900
+ "legendFormat": "Received bytes in {{ instance }}",
2901
+ "range": true,
2902
+ "refId": "A"
2903
+ },
2904
+ {
2905
+ "datasource": {
2906
+ "type": "prometheus",
2907
+ "uid": "${datasource}"
2908
+ },
2909
+ "editorMode": "code",
2910
+ "expr": "- sum(rate(node_network_transmit_bytes_total{cluster=\"$cluster\"}[$__rate_interval])) by (instance)",
2911
+ "hide": false,
2912
+ "interval": "$resolution",
2913
+ "legendFormat": "Transmitted bytes in {{ instance }}",
2914
+ "range": true,
2915
+ "refId": "B"
2916
+ }
2917
+ ],
2918
+ "title": "Total Network Received (with all virtual devices) by instance",
2919
+ "type": "timeseries"
2920
+ },
2921
+ {
2922
+ "datasource": {
2923
+ "type": "prometheus",
2924
+ "uid": "${datasource}"
2925
+ },
2926
+ "description": "Dropped noisy virtual devices for readability.",
2927
+ "fieldConfig": {
2928
+ "defaults": {
2929
+ "color": {
2930
+ "mode": "palette-classic"
2931
+ },
2932
+ "custom": {
2933
+ "axisCenteredZero": false,
2934
+ "axisColorMode": "text",
2935
+ "axisLabel": "BANDWIDTH",
2936
+ "axisPlacement": "auto",
2937
+ "barAlignment": 0,
2938
+ "drawStyle": "line",
2939
+ "fillOpacity": 25,
2940
+ "gradientMode": "opacity",
2941
+ "hideFrom": {
2942
+ "legend": false,
2943
+ "tooltip": false,
2944
+ "viz": false
2945
+ },
2946
+ "lineInterpolation": "smooth",
2947
+ "lineWidth": 2,
2948
+ "pointSize": 5,
2949
+ "scaleDistribution": {
2950
+ "type": "linear"
2951
+ },
2952
+ "showPoints": "never",
2953
+ "spanNulls": false,
2954
+ "stacking": {
2955
+ "group": "A",
2956
+ "mode": "none"
2957
+ },
2958
+ "thresholdsStyle": {
2959
+ "mode": "off"
2960
+ }
2961
+ },
2962
+ "mappings": [],
2963
+ "thresholds": {
2964
+ "mode": "absolute",
2965
+ "steps": [
2966
+ {
2967
+ "color": "green"
2968
+ },
2969
+ {
2970
+ "color": "red",
2971
+ "value": 80
2972
+ }
2973
+ ]
2974
+ },
2975
+ "unit": "bytes"
2976
+ },
2977
+ "overrides": []
2978
+ },
2979
+ "gridPos": {
2980
+ "h": 8,
2981
+ "w": 8,
2982
+ "x": 16,
2983
+ "y": 63
2984
+ },
2985
+ "id": 56,
2986
+ "options": {
2987
+ "legend": {
2988
+ "calcs": [],
2989
+ "displayMode": "hidden",
2990
+ "placement": "bottom",
2991
+ "showLegend": false
2992
+ },
2993
+ "tooltip": {
2994
+ "mode": "multi",
2995
+ "sort": "desc"
2996
+ }
2997
+ },
2998
+ "pluginVersion": "8.3.3",
2999
+ "targets": [
3000
+ {
3001
+ "datasource": {
3002
+ "type": "prometheus",
3003
+ "uid": "${datasource}"
3004
+ },
3005
+ "editorMode": "code",
3006
+ "exemplar": true,
3007
+ "expr": "sum(rate(node_network_receive_bytes_total{device!~\"lxc.*|veth.*|lo\", cluster=\"$cluster\"}[$__rate_interval])) by (instance)",
3008
+ "interval": "$resolution",
3009
+ "legendFormat": "Received bytes in {{ instance }}",
3010
+ "range": true,
3011
+ "refId": "A"
3012
+ },
3013
+ {
3014
+ "datasource": {
3015
+ "type": "prometheus",
3016
+ "uid": "${datasource}"
3017
+ },
3018
+ "editorMode": "code",
3019
+ "expr": "- sum(rate(node_network_transmit_bytes_total{device!~\"lxc.*|veth.*|lo\", cluster=\"$cluster\"}[$__rate_interval])) by (instance)",
3020
+ "hide": false,
3021
+ "interval": "$resolution",
3022
+ "legendFormat": "Transmitted bytes in {{ instance }}",
3023
+ "range": true,
3024
+ "refId": "B"
3025
+ }
3026
+ ],
3027
+ "title": "Network Received (without loopback) by instance",
3028
+ "type": "timeseries"
3029
+ },
3030
+ {
3031
+ "collapsed": false,
3032
+ "gridPos": {
3033
+ "h": 1,
3034
+ "w": 24,
3035
+ "x": 0,
3036
+ "y": 71
3037
+ },
3038
+ "id": 89,
3039
+ "panels": [],
3040
+ "title": "存储",
3041
+ "type": "row"
3042
+ },
3043
+ {
3044
+ "datasource": {
3045
+ "uid": "$datasource"
3046
+ },
3047
+ "fieldConfig": {
3048
+ "defaults": {
3049
+ "color": {
3050
+ "mode": "thresholds"
3051
+ },
3052
+ "custom": {
3053
+ "align": "auto",
3054
+ "displayMode": "auto",
3055
+ "inspect": false
3056
+ },
3057
+ "decimals": 2,
3058
+ "displayName": "",
3059
+ "mappings": [],
3060
+ "thresholds": {
3061
+ "mode": "absolute",
3062
+ "steps": [
3063
+ {
3064
+ "color": "green"
3065
+ },
3066
+ {
3067
+ "color": "red",
3068
+ "value": 80
3069
+ }
3070
+ ]
3071
+ },
3072
+ "unit": "short"
3073
+ },
3074
+ "overrides": [
3075
+ {
3076
+ "matcher": {
3077
+ "id": "byName",
3078
+ "options": "Value #A"
3079
+ },
3080
+ "properties": [
3081
+ {
3082
+ "id": "displayName",
3083
+ "value": "IOPS(Reads)"
3084
+ },
3085
+ {
3086
+ "id": "unit",
3087
+ "value": "iops"
3088
+ },
3089
+ {
3090
+ "id": "decimals",
3091
+ "value": 3
3092
+ },
3093
+ {
3094
+ "id": "custom.align"
3095
+ }
3096
+ ]
3097
+ },
3098
+ {
3099
+ "matcher": {
3100
+ "id": "byName",
3101
+ "options": "Value #B"
3102
+ },
3103
+ "properties": [
3104
+ {
3105
+ "id": "displayName",
3106
+ "value": "IOPS(Writes)"
3107
+ },
3108
+ {
3109
+ "id": "unit",
3110
+ "value": "iops"
3111
+ },
3112
+ {
3113
+ "id": "decimals",
3114
+ "value": 3
3115
+ },
3116
+ {
3117
+ "id": "custom.align"
3118
+ }
3119
+ ]
3120
+ },
3121
+ {
3122
+ "matcher": {
3123
+ "id": "byName",
3124
+ "options": "Value #C"
3125
+ },
3126
+ "properties": [
3127
+ {
3128
+ "id": "displayName",
3129
+ "value": "IOPS(Reads + Writes)"
3130
+ },
3131
+ {
3132
+ "id": "unit",
3133
+ "value": "iops"
3134
+ },
3135
+ {
3136
+ "id": "decimals",
3137
+ "value": 3
3138
+ },
3139
+ {
3140
+ "id": "custom.align"
3141
+ }
3142
+ ]
3143
+ },
3144
+ {
3145
+ "matcher": {
3146
+ "id": "byName",
3147
+ "options": "Value #D"
3148
+ },
3149
+ "properties": [
3150
+ {
3151
+ "id": "displayName",
3152
+ "value": "Throughput(Read)"
3153
+ },
3154
+ {
3155
+ "id": "unit",
3156
+ "value": "Bps"
3157
+ },
3158
+ {
3159
+ "id": "decimals",
3160
+ "value": 2
3161
+ },
3162
+ {
3163
+ "id": "custom.align"
3164
+ }
3165
+ ]
3166
+ },
3167
+ {
3168
+ "matcher": {
3169
+ "id": "byName",
3170
+ "options": "Value #E"
3171
+ },
3172
+ "properties": [
3173
+ {
3174
+ "id": "displayName",
3175
+ "value": "Throughput(Write)"
3176
+ },
3177
+ {
3178
+ "id": "unit",
3179
+ "value": "Bps"
3180
+ },
3181
+ {
3182
+ "id": "decimals",
3183
+ "value": 2
3184
+ },
3185
+ {
3186
+ "id": "custom.align"
3187
+ }
3188
+ ]
3189
+ },
3190
+ {
3191
+ "matcher": {
3192
+ "id": "byName",
3193
+ "options": "Value #F"
3194
+ },
3195
+ "properties": [
3196
+ {
3197
+ "id": "displayName",
3198
+ "value": "Throughput(Read + Write)"
3199
+ },
3200
+ {
3201
+ "id": "unit",
3202
+ "value": "Bps"
3203
+ },
3204
+ {
3205
+ "id": "decimals",
3206
+ "value": 2
3207
+ },
3208
+ {
3209
+ "id": "custom.align"
3210
+ }
3211
+ ]
3212
+ },
3213
+ {
3214
+ "matcher": {
3215
+ "id": "byName",
3216
+ "options": "namespace"
3217
+ },
3218
+ "properties": [
3219
+ {
3220
+ "id": "displayName",
3221
+ "value": "Namespace"
3222
+ },
3223
+ {
3224
+ "id": "unit",
3225
+ "value": "short"
3226
+ },
3227
+ {
3228
+ "id": "decimals",
3229
+ "value": 2
3230
+ },
3231
+ {
3232
+ "id": "links",
3233
+ "value": []
3234
+ },
3235
+ {
3236
+ "id": "custom.align"
3237
+ }
3238
+ ]
3239
+ }
3240
+ ]
3241
+ },
3242
+ "gridPos": {
3243
+ "h": 7,
3244
+ "w": 24,
3245
+ "x": 0,
3246
+ "y": 72
3247
+ },
3248
+ "id": 97,
3249
+ "interval": "1m",
3250
+ "links": [],
3251
+ "options": {
3252
+ "cellHeight": "sm",
3253
+ "footer": {
3254
+ "countRows": false,
3255
+ "fields": "",
3256
+ "reducer": [
3257
+ "sum"
3258
+ ],
3259
+ "show": false
3260
+ },
3261
+ "showHeader": true
3262
+ },
3263
+ "pluginVersion": "9.2.4",
3264
+ "targets": [
3265
+ {
3266
+ "datasource": {
3267
+ "uid": "$datasource"
3268
+ },
3269
+ "expr": "sum by(namespace) (rate(container_fs_reads_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]))",
3270
+ "format": "table",
3271
+ "instant": true,
3272
+ "legendFormat": "",
3273
+ "refId": "A"
3274
+ },
3275
+ {
3276
+ "datasource": {
3277
+ "uid": "$datasource"
3278
+ },
3279
+ "expr": "sum by(namespace) (rate(container_fs_writes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]))",
3280
+ "format": "table",
3281
+ "instant": true,
3282
+ "legendFormat": "",
3283
+ "refId": "B"
3284
+ },
3285
+ {
3286
+ "datasource": {
3287
+ "uid": "$datasource"
3288
+ },
3289
+ "expr": "sum by(namespace) (rate(container_fs_reads_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]) + rate(container_fs_writes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]))",
3290
+ "format": "table",
3291
+ "instant": true,
3292
+ "legendFormat": "",
3293
+ "refId": "C"
3294
+ },
3295
+ {
3296
+ "datasource": {
3297
+ "uid": "$datasource"
3298
+ },
3299
+ "expr": "sum by(namespace) (rate(container_fs_reads_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]))",
3300
+ "format": "table",
3301
+ "instant": true,
3302
+ "legendFormat": "",
3303
+ "refId": "D"
3304
+ },
3305
+ {
3306
+ "datasource": {
3307
+ "uid": "$datasource"
3308
+ },
3309
+ "expr": "sum by(namespace) (rate(container_fs_writes_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]))",
3310
+ "format": "table",
3311
+ "instant": true,
3312
+ "legendFormat": "",
3313
+ "refId": "E"
3314
+ },
3315
+ {
3316
+ "datasource": {
3317
+ "uid": "$datasource"
3318
+ },
3319
+ "expr": "sum by(namespace) (rate(container_fs_reads_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]) + rate(container_fs_writes_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]))",
3320
+ "format": "table",
3321
+ "instant": true,
3322
+ "legendFormat": "",
3323
+ "refId": "F"
3324
+ }
3325
+ ],
3326
+ "title": "Storage IO",
3327
+ "transformations": [
3328
+ {
3329
+ "id": "merge",
3330
+ "options": {
3331
+ "reducers": []
3332
+ }
3333
+ },
3334
+ {
3335
+ "id": "organize",
3336
+ "options": {
3337
+ "excludeByName": {
3338
+ "Time": true
3339
+ },
3340
+ "includeByName": {},
3341
+ "indexByName": {},
3342
+ "renameByName": {}
3343
+ }
3344
+ }
3345
+ ],
3346
+ "type": "table"
3347
+ },
3348
+ {
3349
+ "datasource": {
3350
+ "type": "prometheus",
3351
+ "uid": "${datasource}"
3352
+ },
3353
+ "fieldConfig": {
3354
+ "defaults": {
3355
+ "color": {
3356
+ "mode": "continuous-GrYlRd"
3357
+ },
3358
+ "custom": {
3359
+ "align": "auto",
3360
+ "displayMode": "auto",
3361
+ "filterable": false,
3362
+ "inspect": false
3363
+ },
3364
+ "mappings": [],
3365
+ "thresholds": {
3366
+ "mode": "absolute",
3367
+ "steps": [
3368
+ {
3369
+ "color": "green"
3370
+ },
3371
+ {
3372
+ "color": "red",
3373
+ "value": 80
3374
+ }
3375
+ ]
3376
+ },
3377
+ "unit": "bytes"
3378
+ },
3379
+ "overrides": [
3380
+ {
3381
+ "matcher": {
3382
+ "id": "byName",
3383
+ "options": "Used"
3384
+ },
3385
+ "properties": [
3386
+ {
3387
+ "id": "custom.width",
3388
+ "value": 90
3389
+ }
3390
+ ]
3391
+ },
3392
+ {
3393
+ "matcher": {
3394
+ "id": "byName",
3395
+ "options": "Total"
3396
+ },
3397
+ "properties": [
3398
+ {
3399
+ "id": "custom.width",
3400
+ "value": 112
3401
+ }
3402
+ ]
3403
+ },
3404
+ {
3405
+ "matcher": {
3406
+ "id": "byName",
3407
+ "options": "Persistent Volume Claim"
3408
+ },
3409
+ "properties": [
3410
+ {
3411
+ "id": "custom.width",
3412
+ "value": 190
3413
+ }
3414
+ ]
3415
+ }
3416
+ ]
3417
+ },
3418
+ "gridPos": {
3419
+ "h": 9,
3420
+ "w": 7,
3421
+ "x": 0,
3422
+ "y": 79
3423
+ },
3424
+ "id": 91,
3425
+ "options": {
3426
+ "cellHeight": "sm",
3427
+ "footer": {
3428
+ "countRows": false,
3429
+ "fields": "",
3430
+ "reducer": [
3431
+ "sum"
3432
+ ],
3433
+ "show": false
3434
+ },
3435
+ "showHeader": true,
3436
+ "sortBy": []
3437
+ },
3438
+ "pluginVersion": "9.2.4",
3439
+ "targets": [
3440
+ {
3441
+ "datasource": {
3442
+ "type": "prometheus",
3443
+ "uid": "${datasource}"
3444
+ },
3445
+ "editorMode": "code",
3446
+ "exemplar": true,
3447
+ "expr": "sum(kubelet_volume_stats_used_bytes{cluster=\"$cluster\"}) by (persistentvolumeclaim)",
3448
+ "format": "table",
3449
+ "hide": false,
3450
+ "interval": "",
3451
+ "legendFormat": "",
3452
+ "range": true,
3453
+ "refId": "A"
3454
+ },
3455
+ {
3456
+ "datasource": {
3457
+ "type": "prometheus",
3458
+ "uid": "${datasource}"
3459
+ },
3460
+ "editorMode": "code",
3461
+ "exemplar": true,
3462
+ "expr": "sum(kubelet_volume_stats_capacity_bytes{cluster=\"$cluster\"}) by (persistentvolumeclaim)",
3463
+ "format": "table",
3464
+ "hide": false,
3465
+ "interval": "",
3466
+ "legendFormat": "",
3467
+ "range": true,
3468
+ "refId": "B"
3469
+ }
3470
+ ],
3471
+ "title": "Persistent Volumes - Usage in GB",
3472
+ "transformations": [
3473
+ {
3474
+ "id": "groupBy",
3475
+ "options": {
3476
+ "fields": {
3477
+ "Value": {
3478
+ "aggregations": [
3479
+ "lastNotNull"
3480
+ ],
3481
+ "operation": "aggregate"
3482
+ },
3483
+ "Value #A": {
3484
+ "aggregations": [
3485
+ "lastNotNull"
3486
+ ],
3487
+ "operation": "aggregate"
3488
+ },
3489
+ "Value #B": {
3490
+ "aggregations": [
3491
+ "lastNotNull"
3492
+ ],
3493
+ "operation": "aggregate"
3494
+ },
3495
+ "persistentvolumeclaim": {
3496
+ "aggregations": [],
3497
+ "operation": "groupby"
3498
+ }
3499
+ }
3500
+ }
3501
+ },
3502
+ {
3503
+ "id": "seriesToColumns",
3504
+ "options": {
3505
+ "byField": "persistentvolumeclaim"
3506
+ }
3507
+ },
3508
+ {
3509
+ "id": "organize",
3510
+ "options": {
3511
+ "excludeByName": {},
3512
+ "indexByName": {},
3513
+ "renameByName": {
3514
+ "Value #A (lastNotNull)": "Used",
3515
+ "Value #B (lastNotNull)": "Total",
3516
+ "persistentvolumeclaim": "Persistent Volume Claim"
3517
+ }
3518
+ }
3519
+ }
3520
+ ],
3521
+ "type": "table"
3522
+ },
3523
+ {
3524
+ "datasource": {
3525
+ "type": "prometheus",
3526
+ "uid": "${datasource}"
3527
+ },
3528
+ "fieldConfig": {
3529
+ "defaults": {
3530
+ "color": {
3531
+ "mode": "palette-classic"
3532
+ },
3533
+ "custom": {
3534
+ "axisCenteredZero": false,
3535
+ "axisColorMode": "text",
3536
+ "axisLabel": "",
3537
+ "axisPlacement": "auto",
3538
+ "barAlignment": 0,
3539
+ "drawStyle": "line",
3540
+ "fillOpacity": 0,
3541
+ "gradientMode": "opacity",
3542
+ "hideFrom": {
3543
+ "legend": false,
3544
+ "tooltip": false,
3545
+ "viz": false
3546
+ },
3547
+ "lineInterpolation": "smooth",
3548
+ "lineWidth": 2,
3549
+ "pointSize": 5,
3550
+ "scaleDistribution": {
3551
+ "type": "linear"
3552
+ },
3553
+ "showPoints": "never",
3554
+ "spanNulls": false,
3555
+ "stacking": {
3556
+ "group": "A",
3557
+ "mode": "none"
3558
+ },
3559
+ "thresholdsStyle": {
3560
+ "mode": "off"
3561
+ }
3562
+ },
3563
+ "decimals": 2,
3564
+ "mappings": [],
3565
+ "thresholds": {
3566
+ "mode": "absolute",
3567
+ "steps": [
3568
+ {
3569
+ "color": "green"
3570
+ },
3571
+ {
3572
+ "color": "red",
3573
+ "value": 80
3574
+ }
3575
+ ]
3576
+ },
3577
+ "unit": "percentunit"
3578
+ },
3579
+ "overrides": []
3580
+ },
3581
+ "gridPos": {
3582
+ "h": 9,
3583
+ "w": 8,
3584
+ "x": 7,
3585
+ "y": 79
3586
+ },
3587
+ "id": 90,
3588
+ "options": {
3589
+ "legend": {
3590
+ "calcs": [],
3591
+ "displayMode": "list",
3592
+ "placement": "right",
3593
+ "showLegend": false
3594
+ },
3595
+ "tooltip": {
3596
+ "mode": "multi",
3597
+ "sort": "desc"
3598
+ }
3599
+ },
3600
+ "pluginVersion": "8.3.3",
3601
+ "targets": [
3602
+ {
3603
+ "datasource": {
3604
+ "type": "prometheus",
3605
+ "uid": "${datasource}"
3606
+ },
3607
+ "editorMode": "code",
3608
+ "exemplar": true,
3609
+ "expr": "sum(kubelet_volume_stats_used_bytes{cluster=\"$cluster\"}) by (persistentvolumeclaim) / sum(kubelet_volume_stats_capacity_bytes{cluster=\"$cluster\"}) by (persistentvolumeclaim)",
3610
+ "interval": "$resolution",
3611
+ "legendFormat": "{{ persistentvolumeclaim }}",
3612
+ "range": true,
3613
+ "refId": "A"
3614
+ }
3615
+ ],
3616
+ "title": "Persistent Volumes - Usage in %",
3617
+ "type": "timeseries"
3618
+ },
3619
+ {
3620
+ "datasource": {
3621
+ "uid": "$datasource"
3622
+ },
3623
+ "fieldConfig": {
3624
+ "defaults": {
3625
+ "color": {
3626
+ "mode": "palette-classic"
3627
+ },
3628
+ "custom": {
3629
+ "axisCenteredZero": false,
3630
+ "axisColorMode": "text",
3631
+ "axisLabel": "",
3632
+ "axisPlacement": "auto",
3633
+ "barAlignment": 0,
3634
+ "drawStyle": "line",
3635
+ "fillOpacity": 2,
3636
+ "gradientMode": "none",
3637
+ "hideFrom": {
3638
+ "legend": false,
3639
+ "tooltip": false,
3640
+ "viz": false
3641
+ },
3642
+ "lineInterpolation": "smooth",
3643
+ "lineWidth": 2,
3644
+ "pointSize": 5,
3645
+ "scaleDistribution": {
3646
+ "type": "linear"
3647
+ },
3648
+ "showPoints": "never",
3649
+ "spanNulls": false,
3650
+ "stacking": {
3651
+ "group": "A",
3652
+ "mode": "normal"
3653
+ },
3654
+ "thresholdsStyle": {
3655
+ "mode": "off"
3656
+ }
3657
+ },
3658
+ "mappings": [],
3659
+ "min": 0,
3660
+ "thresholds": {
3661
+ "mode": "absolute",
3662
+ "steps": [
3663
+ {
3664
+ "color": "green"
3665
+ },
3666
+ {
3667
+ "color": "red",
3668
+ "value": 80
3669
+ }
3670
+ ]
3671
+ },
3672
+ "unit": "short"
3673
+ },
3674
+ "overrides": []
3675
+ },
3676
+ "gridPos": {
3677
+ "h": 9,
3678
+ "w": 9,
3679
+ "x": 15,
3680
+ "y": 79
3681
+ },
3682
+ "id": 98,
3683
+ "interval": "1m",
3684
+ "links": [],
3685
+ "options": {
3686
+ "legend": {
3687
+ "calcs": [],
3688
+ "displayMode": "table",
3689
+ "placement": "right",
3690
+ "showLegend": true
3691
+ },
3692
+ "tooltip": {
3693
+ "mode": "multi",
3694
+ "sort": "none"
3695
+ }
3696
+ },
3697
+ "pluginVersion": "10.2.3",
3698
+ "targets": [
3699
+ {
3700
+ "datasource": {
3701
+ "uid": "$datasource"
3702
+ },
3703
+ "expr": "ceil(sum by(namespace) (rate(container_fs_reads_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", container!=\"\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]) + rate(container_fs_writes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval])))",
3704
+ "format": "time_series",
3705
+ "legendFormat": "{{namespace}}",
3706
+ "refId": "A"
3707
+ }
3708
+ ],
3709
+ "title": "IOPS(Reads+Writes)",
3710
+ "type": "timeseries"
3711
+ },
3712
+ {
3713
+ "collapsed": true,
3714
+ "gridPos": {
3715
+ "h": 1,
3716
+ "w": 24,
3717
+ "x": 0,
3718
+ "y": 88
3719
+ },
3720
+ "id": 86,
3721
+ "panels": [
3722
+ {
3723
+ "datasource": {
3724
+ "type": "prometheus",
3725
+ "uid": "${datasource}"
3726
+ },
3727
+ "fieldConfig": {
3728
+ "defaults": {
3729
+ "color": {
3730
+ "mode": "palette-classic"
3731
+ },
3732
+ "custom": {
3733
+ "axisBorderShow": false,
3734
+ "axisCenteredZero": false,
3735
+ "axisColorMode": "text",
3736
+ "axisLabel": "",
3737
+ "axisPlacement": "auto",
3738
+ "barAlignment": 0,
3739
+ "drawStyle": "line",
3740
+ "fillOpacity": 25,
3741
+ "gradientMode": "opacity",
3742
+ "hideFrom": {
3743
+ "legend": false,
3744
+ "tooltip": false,
3745
+ "viz": false
3746
+ },
3747
+ "insertNulls": false,
3748
+ "lineInterpolation": "smooth",
3749
+ "lineWidth": 2,
3750
+ "pointSize": 5,
3751
+ "scaleDistribution": {
3752
+ "type": "linear"
3753
+ },
3754
+ "showPoints": "never",
3755
+ "spanNulls": false,
3756
+ "stacking": {
3757
+ "group": "A",
3758
+ "mode": "none"
3759
+ },
3760
+ "thresholdsStyle": {
3761
+ "mode": "off"
3762
+ }
3763
+ },
3764
+ "mappings": [],
3765
+ "thresholds": {
3766
+ "mode": "absolute",
3767
+ "steps": [
3768
+ {
3769
+ "color": "green"
3770
+ },
3771
+ {
3772
+ "color": "red",
3773
+ "value": 80
3774
+ }
3775
+ ]
3776
+ },
3777
+ "unit": "short"
3778
+ },
3779
+ "overrides": []
3780
+ },
3781
+ "gridPos": {
3782
+ "h": 9,
3783
+ "w": 12,
3784
+ "x": 0,
3785
+ "y": 30
3786
+ },
3787
+ "id": 84,
3788
+ "options": {
3789
+ "legend": {
3790
+ "calcs": [
3791
+ "min",
3792
+ "max",
3793
+ "mean"
3794
+ ],
3795
+ "displayMode": "table",
3796
+ "placement": "right",
3797
+ "showLegend": true,
3798
+ "sortBy": "Max",
3799
+ "sortDesc": true
3800
+ },
3801
+ "tooltip": {
3802
+ "mode": "multi",
3803
+ "sort": "none"
3804
+ }
3805
+ },
3806
+ "pluginVersion": "8.3.3",
3807
+ "targets": [
3808
+ {
3809
+ "datasource": {
3810
+ "type": "prometheus",
3811
+ "uid": "${datasource}"
3812
+ },
3813
+ "editorMode": "code",
3814
+ "exemplar": true,
3815
+ "expr": "sum(kube_pod_status_qos_class{cluster=\"$cluster\"}) by (qos_class)",
3816
+ "interval": "",
3817
+ "legendFormat": "{{ qos_class }} pods",
3818
+ "range": true,
3819
+ "refId": "A"
3820
+ },
3821
+ {
3822
+ "datasource": {
3823
+ "type": "prometheus",
3824
+ "uid": "${datasource}"
3825
+ },
3826
+ "editorMode": "code",
3827
+ "expr": "sum(kube_pod_info{cluster=\"$cluster\"})",
3828
+ "hide": false,
3829
+ "legendFormat": "Total pods",
3830
+ "range": true,
3831
+ "refId": "B"
3832
+ }
3833
+ ],
3834
+ "title": "Kubernetes Pods QoS classes",
3835
+ "type": "timeseries"
3836
+ },
3837
+ {
3838
+ "datasource": {
3839
+ "type": "prometheus",
3840
+ "uid": "${datasource}"
3841
+ },
3842
+ "fieldConfig": {
3843
+ "defaults": {
3844
+ "color": {
3845
+ "mode": "palette-classic"
3846
+ },
3847
+ "custom": {
3848
+ "axisBorderShow": false,
3849
+ "axisCenteredZero": false,
3850
+ "axisColorMode": "text",
3851
+ "axisLabel": "",
3852
+ "axisPlacement": "auto",
3853
+ "barAlignment": 0,
3854
+ "drawStyle": "line",
3855
+ "fillOpacity": 25,
3856
+ "gradientMode": "opacity",
3857
+ "hideFrom": {
3858
+ "legend": false,
3859
+ "tooltip": false,
3860
+ "viz": false
3861
+ },
3862
+ "insertNulls": false,
3863
+ "lineInterpolation": "smooth",
3864
+ "lineWidth": 2,
3865
+ "pointSize": 5,
3866
+ "scaleDistribution": {
3867
+ "type": "linear"
3868
+ },
3869
+ "showPoints": "never",
3870
+ "spanNulls": false,
3871
+ "stacking": {
3872
+ "group": "A",
3873
+ "mode": "none"
3874
+ },
3875
+ "thresholdsStyle": {
3876
+ "mode": "off"
3877
+ }
3878
+ },
3879
+ "mappings": [],
3880
+ "thresholds": {
3881
+ "mode": "absolute",
3882
+ "steps": [
3883
+ {
3884
+ "color": "green"
3885
+ },
3886
+ {
3887
+ "color": "red",
3888
+ "value": 80
3889
+ }
3890
+ ]
3891
+ },
3892
+ "unit": "short"
3893
+ },
3894
+ "overrides": []
3895
+ },
3896
+ "gridPos": {
3897
+ "h": 9,
3898
+ "w": 12,
3899
+ "x": 12,
3900
+ "y": 30
3901
+ },
3902
+ "id": 85,
3903
+ "options": {
3904
+ "legend": {
3905
+ "calcs": [
3906
+ "min",
3907
+ "max",
3908
+ "mean"
3909
+ ],
3910
+ "displayMode": "table",
3911
+ "placement": "right",
3912
+ "showLegend": true,
3913
+ "sortBy": "Max",
3914
+ "sortDesc": true
3915
+ },
3916
+ "tooltip": {
3917
+ "mode": "multi",
3918
+ "sort": "none"
3919
+ }
3920
+ },
3921
+ "pluginVersion": "8.3.3",
3922
+ "targets": [
3923
+ {
3924
+ "datasource": {
3925
+ "type": "prometheus",
3926
+ "uid": "${datasource}"
3927
+ },
3928
+ "editorMode": "code",
3929
+ "exemplar": true,
3930
+ "expr": "sum(kube_pod_status_reason{cluster=\"$cluster\"}) by (reason)",
3931
+ "interval": "",
3932
+ "legendFormat": "{{ reason }}",
3933
+ "range": true,
3934
+ "refId": "A"
3935
+ }
3936
+ ],
3937
+ "title": "Kubernetes Pods Status Reason",
3938
+ "type": "timeseries"
3939
+ },
3940
+ {
3941
+ "datasource": {
3942
+ "type": "prometheus",
3943
+ "uid": "${datasource}"
3944
+ },
3945
+ "description": "No data is generally a good thing here.",
3946
+ "fieldConfig": {
3947
+ "defaults": {
3948
+ "color": {
3949
+ "mode": "palette-classic"
3950
+ },
3951
+ "custom": {
3952
+ "axisBorderShow": false,
3953
+ "axisCenteredZero": false,
3954
+ "axisColorMode": "text",
3955
+ "axisLabel": "",
3956
+ "axisPlacement": "auto",
3957
+ "barAlignment": 0,
3958
+ "drawStyle": "points",
3959
+ "fillOpacity": 25,
3960
+ "gradientMode": "opacity",
3961
+ "hideFrom": {
3962
+ "legend": false,
3963
+ "tooltip": false,
3964
+ "viz": false
3965
+ },
3966
+ "insertNulls": false,
3967
+ "lineInterpolation": "smooth",
3968
+ "lineWidth": 2,
3969
+ "pointSize": 5,
3970
+ "scaleDistribution": {
3971
+ "type": "linear"
3972
+ },
3973
+ "showPoints": "never",
3974
+ "spanNulls": false,
3975
+ "stacking": {
3976
+ "group": "A",
3977
+ "mode": "none"
3978
+ },
3979
+ "thresholdsStyle": {
3980
+ "mode": "off"
3981
+ }
3982
+ },
3983
+ "mappings": [],
3984
+ "thresholds": {
3985
+ "mode": "absolute",
3986
+ "steps": [
3987
+ {
3988
+ "color": "green"
3989
+ },
3990
+ {
3991
+ "color": "red",
3992
+ "value": 80
3993
+ }
3994
+ ]
3995
+ },
3996
+ "unit": "short"
3997
+ },
3998
+ "overrides": []
3999
+ },
4000
+ "gridPos": {
4001
+ "h": 9,
4002
+ "w": 12,
4003
+ "x": 0,
4004
+ "y": 39
4005
+ },
4006
+ "id": 87,
4007
+ "options": {
4008
+ "legend": {
4009
+ "calcs": [
4010
+ "min",
4011
+ "max",
4012
+ "mean"
4013
+ ],
4014
+ "displayMode": "table",
4015
+ "placement": "right",
4016
+ "showLegend": true,
4017
+ "sortBy": "Max",
4018
+ "sortDesc": true
4019
+ },
4020
+ "tooltip": {
4021
+ "mode": "multi",
4022
+ "sort": "none"
4023
+ }
4024
+ },
4025
+ "pluginVersion": "8.3.3",
4026
+ "targets": [
4027
+ {
4028
+ "datasource": {
4029
+ "type": "prometheus",
4030
+ "uid": "${datasource}"
4031
+ },
4032
+ "editorMode": "code",
4033
+ "exemplar": true,
4034
+ "expr": "sum(increase(container_oom_events_total{cluster=\"$cluster\"}[$__rate_interval])) by (namespace) > 0",
4035
+ "interval": "",
4036
+ "legendFormat": "{{ namespace }}",
4037
+ "range": true,
4038
+ "refId": "A"
4039
+ }
4040
+ ],
4041
+ "title": "OOM Events by namespace",
4042
+ "type": "timeseries"
4043
+ },
4044
+ {
4045
+ "datasource": {
4046
+ "type": "prometheus",
4047
+ "uid": "${datasource}"
4048
+ },
4049
+ "description": "No data is generally a good thing here.",
4050
+ "fieldConfig": {
4051
+ "defaults": {
4052
+ "color": {
4053
+ "mode": "palette-classic"
4054
+ },
4055
+ "custom": {
4056
+ "axisBorderShow": false,
4057
+ "axisCenteredZero": false,
4058
+ "axisColorMode": "text",
4059
+ "axisLabel": "",
4060
+ "axisPlacement": "auto",
4061
+ "barAlignment": 0,
4062
+ "drawStyle": "points",
4063
+ "fillOpacity": 25,
4064
+ "gradientMode": "opacity",
4065
+ "hideFrom": {
4066
+ "legend": false,
4067
+ "tooltip": false,
4068
+ "viz": false
4069
+ },
4070
+ "insertNulls": false,
4071
+ "lineInterpolation": "smooth",
4072
+ "lineWidth": 2,
4073
+ "pointSize": 5,
4074
+ "scaleDistribution": {
4075
+ "type": "linear"
4076
+ },
4077
+ "showPoints": "never",
4078
+ "spanNulls": false,
4079
+ "stacking": {
4080
+ "group": "A",
4081
+ "mode": "none"
4082
+ },
4083
+ "thresholdsStyle": {
4084
+ "mode": "off"
4085
+ }
4086
+ },
4087
+ "mappings": [],
4088
+ "thresholds": {
4089
+ "mode": "absolute",
4090
+ "steps": [
4091
+ {
4092
+ "color": "green"
4093
+ },
4094
+ {
4095
+ "color": "red",
4096
+ "value": 80
4097
+ }
4098
+ ]
4099
+ },
4100
+ "unit": "short"
4101
+ },
4102
+ "overrides": []
4103
+ },
4104
+ "gridPos": {
4105
+ "h": 9,
4106
+ "w": 12,
4107
+ "x": 12,
4108
+ "y": 39
4109
+ },
4110
+ "id": 88,
4111
+ "options": {
4112
+ "legend": {
4113
+ "calcs": [
4114
+ "min",
4115
+ "max",
4116
+ "mean"
4117
+ ],
4118
+ "displayMode": "table",
4119
+ "placement": "right",
4120
+ "showLegend": true,
4121
+ "sortBy": "Max",
4122
+ "sortDesc": true
4123
+ },
4124
+ "tooltip": {
4125
+ "mode": "multi",
4126
+ "sort": "none"
4127
+ }
4128
+ },
4129
+ "pluginVersion": "8.3.3",
4130
+ "targets": [
4131
+ {
4132
+ "datasource": {
4133
+ "type": "prometheus",
4134
+ "uid": "${datasource}"
4135
+ },
4136
+ "editorMode": "code",
4137
+ "exemplar": true,
4138
+ "expr": "sum(increase(kube_pod_container_status_restarts_total{cluster=\"$cluster\"}[$__rate_interval])) by (namespace) > 0",
4139
+ "interval": "",
4140
+ "legendFormat": "{{ namespace }}",
4141
+ "range": true,
4142
+ "refId": "A"
4143
+ }
4144
+ ],
4145
+ "title": "Container Restarts by namespace",
4146
+ "type": "timeseries"
4147
+ }
4148
+ ],
4149
+ "title": "Kubernetes",
4150
+ "type": "row"
4151
+ }
4152
+ ],
4153
+ "refresh": "30s",
4154
+ "schemaVersion": 37,
4155
+ "style": "dark",
4156
+ "tags": [
4157
+ "Kubernetes"
4158
+ ],
4159
+ "templating": {
4160
+ "list": [
4161
+ {
4162
+ "current": {
4163
+ "selected": false,
4164
+ "text": "thanos",
4165
+ "value": "thanos"
4166
+ },
4167
+ "hide": 0,
4168
+ "includeAll": false,
4169
+ "multi": false,
4170
+ "name": "datasource",
4171
+ "options": [],
4172
+ "query": "prometheus",
4173
+ "queryValue": "",
4174
+ "refresh": 1,
4175
+ "regex": "/thanos*/",
4176
+ "skipUrlSync": false,
4177
+ "type": "datasource"
4178
+ },
4179
+ {
4180
+ "current": {
4181
+ "selected": false,
4182
+ "text": "hyde-prod-eks-1",
4183
+ "value": "hyde-prod-eks-1"
4184
+ },
4185
+ "datasource": {
4186
+ "type": "prometheus",
4187
+ "uid": "${datasource}"
4188
+ },
4189
+ "definition": "label_values(kube_node_info,cluster)",
4190
+ "hide": 0,
4191
+ "includeAll": false,
4192
+ "multi": false,
4193
+ "name": "cluster",
4194
+ "options": [],
4195
+ "query": {
4196
+ "qryType": 1,
4197
+ "query": "label_values(kube_node_info,cluster)",
4198
+ "refId": "PrometheusVariableQueryEditor-VariableQuery"
4199
+ },
4200
+ "refresh": 1,
4201
+ "regex": "",
4202
+ "skipUrlSync": false,
4203
+ "sort": 1,
4204
+ "type": "query"
4205
+ },
4206
+ {
4207
+ "current": {
4208
+ "selected": false,
4209
+ "text": "30s",
4210
+ "value": "30s"
4211
+ },
4212
+ "hide": 0,
4213
+ "includeAll": false,
4214
+ "multi": false,
4215
+ "name": "resolution",
4216
+ "options": [
4217
+ {
4218
+ "selected": false,
4219
+ "text": "1s",
4220
+ "value": "1s"
4221
+ },
4222
+ {
4223
+ "selected": false,
4224
+ "text": "15s",
4225
+ "value": "15s"
4226
+ },
4227
+ {
4228
+ "selected": true,
4229
+ "text": "30s",
4230
+ "value": "30s"
4231
+ },
4232
+ {
4233
+ "selected": false,
4234
+ "text": "1m",
4235
+ "value": "1m"
4236
+ },
4237
+ {
4238
+ "selected": false,
4239
+ "text": "3m",
4240
+ "value": "3m"
4241
+ },
4242
+ {
4243
+ "selected": false,
4244
+ "text": "5m",
4245
+ "value": "5m"
4246
+ }
4247
+ ],
4248
+ "query": "1s, 15s, 30s, 1m, 3m, 5m",
4249
+ "queryValue": "",
4250
+ "skipUrlSync": false,
4251
+ "type": "custom"
4252
+ },
4253
+ {
4254
+ "current": {
4255
+ "selected": false,
4256
+ "text": "No data sources found",
4257
+ "value": ""
4258
+ },
4259
+ "hide": 0,
4260
+ "includeAll": false,
4261
+ "multi": false,
4262
+ "name": "query0",
4263
+ "options": [],
4264
+ "query": "",
4265
+ "refresh": 1,
4266
+ "regex": "",
4267
+ "skipUrlSync": false,
4268
+ "type": "datasource"
4269
+ }
4270
+ ]
4271
+ },
4272
+ "time": {
4273
+ "from": "now-1h",
4274
+ "to": "now"
4275
+ },
4276
+ "timepicker": {},
4277
+ "timezone": "",
4278
+ "title": "【集群维度】eks 总览大盘",
4279
+ "uid": "k8s_views_global",
4280
+ "version": 6,
4281
+ "weekStart": ""
4282
+ }