Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/operations/observability/mixins/meta/dashboards/components/db.json
2501 views
1
{
2
"__inputs": [],
3
"__requires": [
4
{
5
"type": "grafana",
6
"id": "grafana",
7
"name": "Grafana",
8
"version": "8.1.2"
9
},
10
{
11
"type": "panel",
12
"id": "graph",
13
"name": "Graph (old)",
14
"version": ""
15
},
16
{
17
"type": "datasource",
18
"id": "prometheus",
19
"name": "Prometheus",
20
"version": "1.0.0"
21
},
22
{
23
"type": "panel",
24
"id": "timeseries",
25
"name": "Time series",
26
"version": ""
27
}
28
],
29
"annotations": {
30
"list": [
31
{
32
"builtIn": 1,
33
"datasource": "-- Grafana --",
34
"enable": true,
35
"hide": true,
36
"iconColor": "rgba(0, 211, 255, 1)",
37
"name": "Annotations & Alerts",
38
"target": {
39
"limit": 100,
40
"matchAny": false,
41
"tags": [],
42
"type": "dashboard"
43
},
44
"type": "dashboard"
45
}
46
]
47
},
48
"editable": true,
49
"gnetId": null,
50
"graphTooltip": 1,
51
"id": null,
52
"iteration": 1630954774783,
53
"links": [],
54
"panels": [
55
{
56
"collapsed": false,
57
"datasource": null,
58
"fieldConfig": {
59
"defaults": {},
60
"overrides": []
61
},
62
"gridPos": {
63
"h": 1,
64
"w": 24,
65
"x": 0,
66
"y": 0
67
},
68
"id": 16,
69
"panels": [],
70
"title": "Pod Metrics",
71
"type": "row"
72
},
73
{
74
"datasource": "$datasource",
75
"fieldConfig": {
76
"defaults": {
77
"color": {
78
"mode": "palette-classic"
79
},
80
"custom": {
81
"axisLabel": "",
82
"axisPlacement": "auto",
83
"barAlignment": 0,
84
"drawStyle": "line",
85
"fillOpacity": 0,
86
"gradientMode": "none",
87
"hideFrom": {
88
"legend": false,
89
"tooltip": false,
90
"viz": false
91
},
92
"lineInterpolation": "linear",
93
"lineWidth": 1,
94
"pointSize": 5,
95
"scaleDistribution": {
96
"type": "linear"
97
},
98
"showPoints": "auto",
99
"spanNulls": false,
100
"stacking": {
101
"group": "A",
102
"mode": "none"
103
},
104
"thresholdsStyle": {
105
"mode": "off"
106
}
107
},
108
"mappings": [],
109
"thresholds": {
110
"mode": "absolute",
111
"steps": [
112
{
113
"color": "green",
114
"value": null
115
},
116
{
117
"color": "red",
118
"value": 80
119
}
120
]
121
}
122
},
123
"overrides": []
124
},
125
"gridPos": {
126
"h": 7,
127
"w": 10,
128
"x": 0,
129
"y": 1
130
},
131
"id": 43,
132
"options": {
133
"legend": {
134
"calcs": [],
135
"displayMode": "table",
136
"placement": "right"
137
},
138
"tooltip": {
139
"mode": "single"
140
}
141
},
142
"targets": [
143
{
144
"exemplar": true,
145
"expr": "kube_pod_container_info{cluster=~\"$cluster\", pod=~\"$pod\", image=~\".+\", container=\"cloud-sql-proxy\"}",
146
"interval": "",
147
"legendFormat": "{{cluster}} - {{image}}",
148
"queryType": "randomWalk",
149
"refId": "A"
150
}
151
],
152
"title": "Container image version",
153
"type": "timeseries"
154
},
155
{
156
"aliasColors": {},
157
"bars": false,
158
"dashLength": 10,
159
"dashes": false,
160
"datasource": "$datasource",
161
"decimals": 2,
162
"fill": 1,
163
"fillGradient": 0,
164
"gridPos": {
165
"h": 7,
166
"w": 7,
167
"x": 10,
168
"y": 1
169
},
170
"hiddenSeries": false,
171
"id": 2,
172
"legend": {
173
"alignAsTable": true,
174
"avg": true,
175
"current": true,
176
"max": true,
177
"min": false,
178
"show": true,
179
"total": false,
180
"values": true
181
},
182
"lines": true,
183
"linewidth": 1,
184
"nullPointMode": "null",
185
"options": {
186
"alertThreshold": true
187
},
188
"percentage": false,
189
"pluginVersion": "8.1.2",
190
"pointradius": 2,
191
"points": false,
192
"renderer": "flot",
193
"seriesOverrides": [],
194
"spaceLength": 10,
195
"stack": false,
196
"steppedLine": false,
197
"targets": [
198
{
199
"expr": "sum(\n rate(container_cpu_usage_seconds_total{container!=\"POD\", pod!=\"\", cluster=~\"$cluster\", node=~\"$node\", pod=~\"$pod\"}[1m])\n) by (pod, cluster, node)",
200
"interval": "",
201
"legendFormat": "{{cluster}} - {{node}} - {{pod}} - Cores being used",
202
"queryType": "randomWalk",
203
"refId": "A"
204
}
205
],
206
"thresholds": [],
207
"timeFrom": null,
208
"timeRegions": [],
209
"timeShift": null,
210
"title": "CPU Utilization",
211
"tooltip": {
212
"shared": true,
213
"sort": 2,
214
"value_type": "individual"
215
},
216
"type": "graph",
217
"xaxis": {
218
"buckets": null,
219
"mode": "time",
220
"name": null,
221
"show": true,
222
"values": []
223
},
224
"yaxes": [
225
{
226
"decimals": 2,
227
"format": "short",
228
"label": null,
229
"logBase": 1,
230
"max": null,
231
"min": "0",
232
"show": true
233
},
234
{
235
"format": "short",
236
"label": null,
237
"logBase": 1,
238
"max": null,
239
"min": null,
240
"show": true
241
}
242
],
243
"yaxis": {
244
"align": false,
245
"alignLevel": null
246
}
247
},
248
{
249
"aliasColors": {},
250
"bars": false,
251
"dashLength": 10,
252
"dashes": false,
253
"datasource": "$datasource",
254
"description": "Saturation > 100% means that the container is requesting more than its limits.\n\nKubernetes will start to throttle CPU when that happens. That's a sign of degraded performance.\n\n'No Data' indicates that the pod has no CPU limits.",
255
"fill": 1,
256
"fillGradient": 0,
257
"gridPos": {
258
"h": 7,
259
"w": 7,
260
"x": 17,
261
"y": 1
262
},
263
"hiddenSeries": false,
264
"id": 4,
265
"legend": {
266
"avg": false,
267
"current": false,
268
"max": false,
269
"min": false,
270
"show": true,
271
"total": false,
272
"values": false
273
},
274
"lines": true,
275
"linewidth": 1,
276
"nullPointMode": "null",
277
"options": {
278
"alertThreshold": true
279
},
280
"percentage": false,
281
"pluginVersion": "8.1.2",
282
"pointradius": 2,
283
"points": false,
284
"renderer": "flot",
285
"seriesOverrides": [
286
{
287
"alias": "/.*CPU Throttles/",
288
"yaxis": 2
289
}
290
],
291
"spaceLength": 10,
292
"stack": false,
293
"steppedLine": false,
294
"targets": [
295
{
296
"expr": "sum(\n rate(container_cpu_usage_seconds_total{container!=\"POD\", cluster=~\"$cluster\", node=~\"$node\", pod=~\"$pod\"}[1m])\n) by (pod, cluster, node)\n/\nsum(\n kube_pod_container_resource_limits_cpu_cores{container!=\"POD\", cluster=\"$cluster\", pod=~\"$pod\"}\n) by (pod, cluster, node)\n",
297
"interval": "",
298
"legendFormat": "{{cluster}} - {{node} - {{pod}} - CPU Saturation",
299
"queryType": "randomWalk",
300
"refId": "A"
301
},
302
{
303
"expr": "sum(\nrate(container_cpu_cfs_throttled_seconds_total{container!=\"POD\", pod!=\"\", cluster=~\"$cluster\", node=~\"$node\", pod=~\"$pod\"}[1m])\n) by (pod)",
304
"interval": "",
305
"legendFormat": "{{pod}} - CPU Throttles",
306
"queryType": "randomWalk",
307
"refId": "B"
308
}
309
],
310
"thresholds": [],
311
"timeFrom": null,
312
"timeRegions": [],
313
"timeShift": null,
314
"title": "CPU Saturation",
315
"tooltip": {
316
"shared": true,
317
"sort": 2,
318
"value_type": "individual"
319
},
320
"type": "graph",
321
"xaxis": {
322
"buckets": null,
323
"mode": "time",
324
"name": null,
325
"show": true,
326
"values": []
327
},
328
"yaxes": [
329
{
330
"decimals": 2,
331
"format": "percentunit",
332
"label": null,
333
"logBase": 1,
334
"max": null,
335
"min": "0",
336
"show": true
337
},
338
{
339
"format": "s",
340
"label": null,
341
"logBase": 1,
342
"max": null,
343
"min": "0",
344
"show": true
345
}
346
],
347
"yaxis": {
348
"align": false,
349
"alignLevel": null
350
}
351
},
352
{
353
"aliasColors": {},
354
"bars": false,
355
"dashLength": 10,
356
"dashes": false,
357
"datasource": "$datasource",
358
"fill": 1,
359
"fillGradient": 0,
360
"gridPos": {
361
"h": 7,
362
"w": 12,
363
"x": 0,
364
"y": 8
365
},
366
"hiddenSeries": false,
367
"id": 6,
368
"legend": {
369
"alignAsTable": true,
370
"avg": true,
371
"current": true,
372
"max": true,
373
"min": false,
374
"show": true,
375
"total": false,
376
"values": true
377
},
378
"lines": true,
379
"linewidth": 1,
380
"nullPointMode": "null",
381
"options": {
382
"alertThreshold": true
383
},
384
"percentage": false,
385
"pluginVersion": "8.1.2",
386
"pointradius": 2,
387
"points": false,
388
"renderer": "flot",
389
"seriesOverrides": [],
390
"spaceLength": 10,
391
"stack": false,
392
"steppedLine": false,
393
"targets": [
394
{
395
"expr": "sum(container_memory_working_set_bytes{container!=\"POD\", container!=\"\", cluster=~\"$cluster\", node=~\"$node\", pod=~\"$pod\"}) by (pod, cluster, node)",
396
"interval": "",
397
"legendFormat": "{{cluster}} - {{node}} - {{pod}}",
398
"queryType": "randomWalk",
399
"refId": "A"
400
}
401
],
402
"thresholds": [],
403
"timeFrom": null,
404
"timeRegions": [],
405
"timeShift": null,
406
"title": "Memory Utilization",
407
"tooltip": {
408
"shared": true,
409
"sort": 2,
410
"value_type": "individual"
411
},
412
"type": "graph",
413
"xaxis": {
414
"buckets": null,
415
"mode": "time",
416
"name": null,
417
"show": true,
418
"values": []
419
},
420
"yaxes": [
421
{
422
"format": "bytes",
423
"label": null,
424
"logBase": 1,
425
"max": null,
426
"min": "0",
427
"show": true
428
},
429
{
430
"format": "short",
431
"label": null,
432
"logBase": 1,
433
"max": null,
434
"min": null,
435
"show": true
436
}
437
],
438
"yaxis": {
439
"align": false,
440
"alignLevel": null
441
}
442
},
443
{
444
"aliasColors": {},
445
"bars": false,
446
"dashLength": 10,
447
"dashes": false,
448
"datasource": "$datasource",
449
"decimals": 4,
450
"description": "Memory can't be throttled. When a container reaches 100% of its memory limits, Kubernetes will kill the container and restart it.\n\n'No Data' indicates that the pod doesn't have Memory limits.",
451
"fill": 1,
452
"fillGradient": 0,
453
"gridPos": {
454
"h": 7,
455
"w": 12,
456
"x": 12,
457
"y": 8
458
},
459
"hiddenSeries": false,
460
"id": 8,
461
"legend": {
462
"alignAsTable": true,
463
"avg": true,
464
"current": true,
465
"max": true,
466
"min": false,
467
"show": true,
468
"total": false,
469
"values": true
470
},
471
"lines": true,
472
"linewidth": 1,
473
"nullPointMode": "null",
474
"options": {
475
"alertThreshold": true
476
},
477
"percentage": false,
478
"pluginVersion": "8.1.2",
479
"pointradius": 2,
480
"points": false,
481
"renderer": "flot",
482
"seriesOverrides": [],
483
"spaceLength": 10,
484
"stack": false,
485
"steppedLine": false,
486
"targets": [
487
{
488
"expr": "sum(\nrate(container_memory_working_set_bytes{container!=\"POD\", container!=\"\", cluster=~\"$cluster\", node=~\"$node\", pod=~\"$pod\"}[1m])\n) by (pod, cluster, node)\n/\nsum(\n kube_pod_container_resource_limits{container!=\"POD\", cluster=\"$cluster\", pod=~\"$pod\", resource=\"memory\"}\n) by (pod, cluster, node)\n",
489
"interval": "",
490
"legendFormat": "{{cluster}} - {{node}} - {{pod}} - Memory Saturation",
491
"queryType": "randomWalk",
492
"refId": "A"
493
}
494
],
495
"thresholds": [],
496
"timeFrom": null,
497
"timeRegions": [],
498
"timeShift": null,
499
"title": "Memory Saturation",
500
"tooltip": {
501
"shared": true,
502
"sort": 2,
503
"value_type": "individual"
504
},
505
"type": "graph",
506
"xaxis": {
507
"buckets": null,
508
"mode": "time",
509
"name": null,
510
"show": true,
511
"values": []
512
},
513
"yaxes": [
514
{
515
"decimals": 2,
516
"format": "percentunit",
517
"label": null,
518
"logBase": 1,
519
"max": null,
520
"min": "0",
521
"show": true
522
},
523
{
524
"format": "short",
525
"label": null,
526
"logBase": 1,
527
"max": null,
528
"min": null,
529
"show": true
530
}
531
],
532
"yaxis": {
533
"align": false,
534
"alignLevel": null
535
}
536
},
537
{
538
"aliasColors": {},
539
"bars": false,
540
"dashLength": 10,
541
"dashes": false,
542
"datasource": "$datasource",
543
"fill": 1,
544
"fillGradient": 0,
545
"gridPos": {
546
"h": 7,
547
"w": 8,
548
"x": 0,
549
"y": 15
550
},
551
"hiddenSeries": false,
552
"id": 10,
553
"legend": {
554
"alignAsTable": true,
555
"avg": false,
556
"current": true,
557
"max": false,
558
"min": false,
559
"show": true,
560
"total": false,
561
"values": true
562
},
563
"lines": true,
564
"linewidth": 1,
565
"nullPointMode": "null",
566
"options": {
567
"alertThreshold": true
568
},
569
"percentage": false,
570
"pluginVersion": "8.1.2",
571
"pointradius": 2,
572
"points": false,
573
"renderer": "flot",
574
"seriesOverrides": [],
575
"spaceLength": 10,
576
"stack": false,
577
"steppedLine": false,
578
"targets": [
579
{
580
"expr": "sum (\n rate(container_network_receive_bytes_total{container!=\"POD\", pod!=\"\", cluster=~\"$cluster\", node=~\"$node\", pod=~\"$pod\"}[1m])\n) by (pod, cluster, node)",
581
"interval": "",
582
"legendFormat": "{{cluster}} - {{node}} - {{pod}} - Received",
583
"queryType": "randomWalk",
584
"refId": "A"
585
},
586
{
587
"expr": "sum (\n rate(container_network_transmit_bytes_total{container!=\"POD\", pod!=\"\", cluster=~\"$cluster\", node=~\"$node\", pod=~\"$pod\"}[1m])\n) by (pod, cluster, node)",
588
"interval": "",
589
"legendFormat": "{{cluster}} - {{node}} - {{pod}} - Transmitted",
590
"queryType": "randomWalk",
591
"refId": "B"
592
}
593
],
594
"thresholds": [],
595
"timeFrom": null,
596
"timeRegions": [],
597
"timeShift": null,
598
"title": "Network Utilization",
599
"tooltip": {
600
"shared": true,
601
"sort": 2,
602
"value_type": "individual"
603
},
604
"type": "graph",
605
"xaxis": {
606
"buckets": null,
607
"mode": "time",
608
"name": null,
609
"show": true,
610
"values": []
611
},
612
"yaxes": [
613
{
614
"format": "binBps",
615
"label": null,
616
"logBase": 1,
617
"max": null,
618
"min": "0",
619
"show": true
620
},
621
{
622
"format": "short",
623
"label": null,
624
"logBase": 1,
625
"max": null,
626
"min": null,
627
"show": true
628
}
629
],
630
"yaxis": {
631
"align": false,
632
"alignLevel": null
633
}
634
},
635
{
636
"aliasColors": {},
637
"bars": false,
638
"dashLength": 10,
639
"dashes": false,
640
"datasource": "$datasource",
641
"fill": 1,
642
"fillGradient": 0,
643
"gridPos": {
644
"h": 7,
645
"w": 8,
646
"x": 8,
647
"y": 15
648
},
649
"hiddenSeries": false,
650
"id": 12,
651
"legend": {
652
"alignAsTable": true,
653
"avg": false,
654
"current": true,
655
"max": false,
656
"min": false,
657
"rightSide": false,
658
"show": true,
659
"total": false,
660
"values": true
661
},
662
"lines": true,
663
"linewidth": 1,
664
"nullPointMode": "null",
665
"options": {
666
"alertThreshold": true
667
},
668
"percentage": false,
669
"pluginVersion": "8.1.2",
670
"pointradius": 2,
671
"points": false,
672
"renderer": "flot",
673
"seriesOverrides": [],
674
"spaceLength": 10,
675
"stack": false,
676
"steppedLine": false,
677
"targets": [
678
{
679
"expr": "sum (\n rate(container_network_receive_packets_dropped_total{container!=\"POD\", pod!=\"\", cluster=~\"$cluster\", node=~\"$node\", pod=~\"$pod\"}[1m])\n) by (pod, cluster, node)",
680
"interval": "",
681
"legendFormat": "{{cluster}} - {{node}} - {{pod}} - Receive",
682
"queryType": "randomWalk",
683
"refId": "A"
684
},
685
{
686
"expr": "sum (\n rate(container_network_transmit_packets_dropped_total{container!=\"POD\", pod!=\"\", cluster=~\"$cluster\", node=~\"$node\", pod=~\"$pod\"}[1m])\n) by (pod, cluster, node)",
687
"interval": "",
688
"legendFormat": "{{cluster}} - {{node}} - {{pod}} - Transmit",
689
"queryType": "randomWalk",
690
"refId": "B"
691
}
692
],
693
"thresholds": [],
694
"timeFrom": null,
695
"timeRegions": [],
696
"timeShift": null,
697
"title": "Network Saturation (Packets Dropped)",
698
"tooltip": {
699
"shared": true,
700
"sort": 2,
701
"value_type": "individual"
702
},
703
"type": "graph",
704
"xaxis": {
705
"buckets": null,
706
"mode": "time",
707
"name": null,
708
"show": true,
709
"values": []
710
},
711
"yaxes": [
712
{
713
"decimals": 2,
714
"format": "pps",
715
"label": null,
716
"logBase": 1,
717
"max": null,
718
"min": "0",
719
"show": true
720
},
721
{
722
"format": "short",
723
"label": null,
724
"logBase": 1,
725
"max": null,
726
"min": null,
727
"show": true
728
}
729
],
730
"yaxis": {
731
"align": false,
732
"alignLevel": null
733
}
734
},
735
{
736
"aliasColors": {},
737
"bars": false,
738
"dashLength": 10,
739
"dashes": false,
740
"datasource": "$datasource",
741
"fill": 1,
742
"fillGradient": 0,
743
"gridPos": {
744
"h": 7,
745
"w": 8,
746
"x": 16,
747
"y": 15
748
},
749
"hiddenSeries": false,
750
"id": 14,
751
"legend": {
752
"alignAsTable": true,
753
"avg": false,
754
"current": true,
755
"max": false,
756
"min": false,
757
"show": true,
758
"total": false,
759
"values": true
760
},
761
"lines": true,
762
"linewidth": 1,
763
"nullPointMode": "null",
764
"options": {
765
"alertThreshold": true
766
},
767
"percentage": false,
768
"pluginVersion": "8.1.2",
769
"pointradius": 2,
770
"points": false,
771
"renderer": "flot",
772
"seriesOverrides": [],
773
"spaceLength": 10,
774
"stack": false,
775
"steppedLine": false,
776
"targets": [
777
{
778
"expr": "sum (\n rate(container_network_receive_errors_total{container!=\"POD\", pod!=\"\", cluster=~\"$cluster\", node=~\"$node\", pod=~\"$pod\"}[1m])\n) by (pod, cluster, node)",
779
"interval": "",
780
"legendFormat": "{{cluster}} - {{node}} - {{pod}} - Received",
781
"queryType": "randomWalk",
782
"refId": "A"
783
},
784
{
785
"expr": "sum (\n rate(container_network_transmit_errors_total{container!=\"POD\", pod!=\"\", cluster=~\"$cluster\", node=~\"$node\", pod=~\"$pod\"}[1m])\n) by (pod, cluster, node)",
786
"interval": "",
787
"legendFormat": "{{cluster}} - {{node}} - {{pod}} - Transmitted",
788
"queryType": "randomWalk",
789
"refId": "B"
790
}
791
],
792
"thresholds": [],
793
"timeFrom": null,
794
"timeRegions": [],
795
"timeShift": null,
796
"title": "Network Errors",
797
"tooltip": {
798
"shared": true,
799
"sort": 2,
800
"value_type": "individual"
801
},
802
"type": "graph",
803
"xaxis": {
804
"buckets": null,
805
"mode": "time",
806
"name": null,
807
"show": true,
808
"values": []
809
},
810
"yaxes": [
811
{
812
"decimals": 2,
813
"format": "Errors/s",
814
"label": null,
815
"logBase": 1,
816
"max": null,
817
"min": "0",
818
"show": true
819
},
820
{
821
"format": "short",
822
"label": null,
823
"logBase": 1,
824
"max": null,
825
"min": null,
826
"show": true
827
}
828
],
829
"yaxis": {
830
"align": false,
831
"alignLevel": null
832
}
833
},
834
{
835
"aliasColors": {},
836
"bars": false,
837
"dashLength": 10,
838
"dashes": false,
839
"datasource": "$datasource",
840
"decimals": 4,
841
"description": "",
842
"fill": 1,
843
"fillGradient": 0,
844
"gridPos": {
845
"h": 9,
846
"w": 8,
847
"x": 0,
848
"y": 22
849
},
850
"hiddenSeries": false,
851
"id": 36,
852
"legend": {
853
"alignAsTable": true,
854
"avg": true,
855
"current": true,
856
"max": true,
857
"min": false,
858
"show": true,
859
"total": false,
860
"values": true
861
},
862
"lines": true,
863
"linewidth": 1,
864
"nullPointMode": "null",
865
"options": {
866
"alertThreshold": true
867
},
868
"percentage": false,
869
"pluginVersion": "8.1.2",
870
"pointradius": 2,
871
"points": false,
872
"renderer": "flot",
873
"seriesOverrides": [],
874
"spaceLength": 10,
875
"stack": false,
876
"steppedLine": false,
877
"targets": [
878
{
879
"expr": "rate(kube_pod_container_status_restarts_total{cluster=~\"$cluster\", pod=~\"$pod\"}[1m])",
880
"interval": "",
881
"legendFormat": "{{cluster}} - {{kubernetes_pod_node_name}} - {{pod}} ",
882
"queryType": "randomWalk",
883
"refId": "A"
884
}
885
],
886
"thresholds": [],
887
"timeFrom": null,
888
"timeRegions": [],
889
"timeShift": null,
890
"title": "Pod Restarts",
891
"tooltip": {
892
"shared": true,
893
"sort": 2,
894
"value_type": "individual"
895
},
896
"type": "graph",
897
"xaxis": {
898
"buckets": null,
899
"mode": "time",
900
"name": null,
901
"show": true,
902
"values": []
903
},
904
"yaxes": [
905
{
906
"decimals": 2,
907
"format": "short",
908
"label": null,
909
"logBase": 1,
910
"max": null,
911
"min": "0",
912
"show": true
913
},
914
{
915
"format": "short",
916
"label": null,
917
"logBase": 1,
918
"max": null,
919
"min": null,
920
"show": true
921
}
922
],
923
"yaxis": {
924
"align": false,
925
"alignLevel": null
926
}
927
},
928
{
929
"aliasColors": {},
930
"bars": false,
931
"dashLength": 10,
932
"dashes": false,
933
"datasource": "$datasource",
934
"decimals": 0,
935
"description": "",
936
"fill": 1,
937
"fillGradient": 0,
938
"gridPos": {
939
"h": 9,
940
"w": 8,
941
"x": 8,
942
"y": 22
943
},
944
"hiddenSeries": false,
945
"id": 41,
946
"legend": {
947
"alignAsTable": true,
948
"avg": false,
949
"current": true,
950
"max": false,
951
"min": false,
952
"show": true,
953
"total": false,
954
"values": true
955
},
956
"lines": true,
957
"linewidth": 1,
958
"nullPointMode": "null",
959
"options": {
960
"alertThreshold": true
961
},
962
"percentage": false,
963
"pluginVersion": "8.1.2",
964
"pointradius": 2,
965
"points": false,
966
"renderer": "flot",
967
"seriesOverrides": [],
968
"spaceLength": 10,
969
"stack": false,
970
"steppedLine": false,
971
"targets": [
972
{
973
"expr": "kube_pod_container_status_running{cluster=~\"$cluster\", pod=~\"$pod\"} == 1 ",
974
"interval": "",
975
"legendFormat": "{{pod}} - RUNNING",
976
"queryType": "randomWalk",
977
"refId": "A"
978
},
979
{
980
"expr": "(\n sum by (pod) (kube_pod_container_status_terminated{cluster=~\"$cluster\", pod=~\"$pod\"}) == 1\n) * on(pod) group_left(reason) (\n sum by (pod, reason) (kube_pod_container_status_terminated_reason{cluster=~\"$cluster\", pod=~\"$pod\"}) == 1\n)",
981
"interval": "",
982
"legendFormat": "{{pod}} - TERMINATED -> {{reason}}",
983
"queryType": "randomWalk",
984
"refId": "B"
985
},
986
{
987
"expr": "(\n sum by (pod) (kube_pod_container_status_waiting{cluster=~\"$cluster\", pod=~\"$pod\"}) == 1\n) * on(pod) group_left(reason) (\n sum by (pod, reason) (kube_pod_container_status_waiting_reason{cluster=~\"$cluster\", pod=~\"$pod\"}) == 1\n)",
988
"interval": "",
989
"legendFormat": "{{pod}} - WAITING -> {{reason}}",
990
"queryType": "randomWalk",
991
"refId": "C"
992
}
993
],
994
"thresholds": [],
995
"timeFrom": null,
996
"timeRegions": [],
997
"timeShift": null,
998
"title": "Pod Status",
999
"tooltip": {
1000
"shared": true,
1001
"sort": 2,
1002
"value_type": "individual"
1003
},
1004
"type": "graph",
1005
"xaxis": {
1006
"buckets": null,
1007
"mode": "time",
1008
"name": null,
1009
"show": true,
1010
"values": []
1011
},
1012
"yaxes": [
1013
{
1014
"decimals": 0,
1015
"format": "short",
1016
"label": null,
1017
"logBase": 1,
1018
"max": null,
1019
"min": null,
1020
"show": true
1021
},
1022
{
1023
"format": "short",
1024
"label": null,
1025
"logBase": 1,
1026
"max": null,
1027
"min": null,
1028
"show": true
1029
}
1030
],
1031
"yaxis": {
1032
"align": false,
1033
"alignLevel": null
1034
}
1035
},
1036
{
1037
"aliasColors": {},
1038
"bars": false,
1039
"dashLength": 10,
1040
"dashes": false,
1041
"datasource": "$datasource",
1042
"decimals": 0,
1043
"fill": 1,
1044
"fillGradient": 0,
1045
"gridPos": {
1046
"h": 9,
1047
"w": 8,
1048
"x": 16,
1049
"y": 22
1050
},
1051
"hiddenSeries": false,
1052
"id": 39,
1053
"legend": {
1054
"alignAsTable": true,
1055
"avg": false,
1056
"current": true,
1057
"max": false,
1058
"min": false,
1059
"show": true,
1060
"total": false,
1061
"values": true
1062
},
1063
"lines": true,
1064
"linewidth": 1,
1065
"nullPointMode": "null",
1066
"options": {
1067
"alertThreshold": true
1068
},
1069
"percentage": false,
1070
"pluginVersion": "8.1.2",
1071
"pointradius": 2,
1072
"points": false,
1073
"renderer": "flot",
1074
"seriesOverrides": [],
1075
"spaceLength": 10,
1076
"stack": false,
1077
"steppedLine": false,
1078
"targets": [
1079
{
1080
"expr": "kube_deployment_spec_replicas{cluster=~\"$cluster\", deployment=\"db\"}",
1081
"interval": "",
1082
"legendFormat": "{{cluster}} - {{deployment}} - Desired",
1083
"queryType": "randomWalk",
1084
"refId": "C"
1085
},
1086
{
1087
"expr": "kube_deployment_status_replicas_available{cluster=~\"$cluster\", deployment=\"db\"}",
1088
"interval": "",
1089
"legendFormat": "{{cluster}} - {{deployment}} - Available replicas",
1090
"queryType": "randomWalk",
1091
"refId": "A"
1092
},
1093
{
1094
"expr": "kube_deployment_status_replicas_unavailable{cluster=~\"$cluster\", deployment=\"db\"}",
1095
"interval": "",
1096
"legendFormat": "{{cluster}} - {{deployment}} - Unvailable replicas",
1097
"queryType": "randomWalk",
1098
"refId": "B"
1099
}
1100
],
1101
"thresholds": [],
1102
"timeFrom": null,
1103
"timeRegions": [],
1104
"timeShift": null,
1105
"title": "Replicas availability",
1106
"tooltip": {
1107
"shared": true,
1108
"sort": 2,
1109
"value_type": "individual"
1110
},
1111
"type": "graph",
1112
"xaxis": {
1113
"buckets": null,
1114
"mode": "time",
1115
"name": null,
1116
"show": true,
1117
"values": []
1118
},
1119
"yaxes": [
1120
{
1121
"decimals": 0,
1122
"format": "short",
1123
"label": null,
1124
"logBase": 1,
1125
"max": null,
1126
"min": null,
1127
"show": true
1128
},
1129
{
1130
"format": "short",
1131
"label": null,
1132
"logBase": 1,
1133
"max": null,
1134
"min": null,
1135
"show": true
1136
}
1137
],
1138
"yaxis": {
1139
"align": false,
1140
"alignLevel": null
1141
}
1142
}
1143
],
1144
"refresh": "30s",
1145
"schemaVersion": 30,
1146
"style": "dark",
1147
"tags": [
1148
"gitpod-mixin"
1149
],
1150
"templating": {
1151
"list": [
1152
{
1153
"allValue": null,
1154
"current": {},
1155
"datasource": "$datasource",
1156
"definition": "label_values(container_cpu_usage_seconds_total, cluster)",
1157
"description": null,
1158
"error": null,
1159
"hide": 0,
1160
"includeAll": true,
1161
"label": "Cluster",
1162
"multi": true,
1163
"name": "cluster",
1164
"options": [],
1165
"query": {
1166
"query": "label_values(container_cpu_usage_seconds_total, cluster)",
1167
"refId": "StandardVariableQuery"
1168
},
1169
"refresh": 1,
1170
"regex": "",
1171
"skipUrlSync": false,
1172
"sort": 0,
1173
"tagValuesQuery": "",
1174
"tagsQuery": "",
1175
"type": "query",
1176
"useTags": false
1177
},
1178
{
1179
"allValue": null,
1180
"current": {},
1181
"datasource": "$datasource",
1182
"definition": "label_values(container_cpu_usage_seconds_total{cluster=~\"$cluster\", pod=~\"db.*\"}, node)",
1183
"description": null,
1184
"error": null,
1185
"hide": 0,
1186
"includeAll": true,
1187
"label": "Node",
1188
"multi": true,
1189
"name": "node",
1190
"options": [],
1191
"query": {
1192
"query": "label_values(container_cpu_usage_seconds_total{cluster=~\"$cluster\", pod=~\"db.*\"}, node)",
1193
"refId": "StandardVariableQuery"
1194
},
1195
"refresh": 1,
1196
"regex": "",
1197
"skipUrlSync": false,
1198
"sort": 0,
1199
"tagValuesQuery": "",
1200
"tagsQuery": "",
1201
"type": "query",
1202
"useTags": false
1203
},
1204
{
1205
"allValue": null,
1206
"current": {},
1207
"datasource": "$datasource",
1208
"definition": "label_values(container_cpu_usage_seconds_total{cluster=~\"$cluster\", node=~\"$node\", pod=~\"db.*\"}, pod)",
1209
"description": null,
1210
"error": null,
1211
"hide": 0,
1212
"includeAll": true,
1213
"label": "Pod",
1214
"multi": true,
1215
"name": "pod",
1216
"options": [],
1217
"query": {
1218
"query": "label_values(container_cpu_usage_seconds_total{cluster=~\"$cluster\", node=~\"$node\", pod=~\"db.*\"}, pod)",
1219
"refId": "StandardVariableQuery"
1220
},
1221
"refresh": 1,
1222
"regex": "",
1223
"skipUrlSync": false,
1224
"sort": 0,
1225
"tagValuesQuery": "",
1226
"tagsQuery": "",
1227
"type": "query",
1228
"useTags": false
1229
},
1230
{
1231
"current": {
1232
"selected": false,
1233
"text": "VictoriaMetrics",
1234
"value": "VictoriaMetrics"
1235
},
1236
"description": null,
1237
"error": null,
1238
"hide": 2,
1239
"includeAll": false,
1240
"label": null,
1241
"multi": false,
1242
"name": "datasource",
1243
"options": [],
1244
"query": "prometheus",
1245
"refresh": 1,
1246
"regex": "",
1247
"skipUrlSync": false,
1248
"type": "datasource"
1249
}
1250
]
1251
},
1252
"time": {
1253
"from": "now-1h",
1254
"to": "now"
1255
},
1256
"timepicker": {},
1257
"timezone": "utc",
1258
"title": "Gitpod / Component / db",
1259
"uid": "db",
1260
"version": 1
1261
}
1262
1263