@leverege/build-tools 2.101.2 → 2.103.0

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.
Files changed (43) hide show
  1. package/.vscode/launch.json +10 -0
  2. package/README.md +22 -9
  3. package/package.json +10 -13
  4. package/src/Utils.mjs +2 -0
  5. package/src/chart-to-registry.mjs +12 -1
  6. package/src/circle-orb-it/{circle-orb.yml → circle-npm.yml} +6 -3
  7. package/src/circle-orb-it/circle-orb-it.mjs +16 -11
  8. package/src/circle-orb-it/circle-yarn.yml +25 -0
  9. package/src/dashboard/DashboardManager.mjs +192 -17
  10. package/src/dashboard/dashboard.mjs +29 -4
  11. package/src/dashboard/json/{standard/noc-rows-12.json → devops/devops-noc.json} +801 -61
  12. package/src/dashboard/json/{standard/pvc-all-usage.json → devops/pvc-usage.json} +2 -2
  13. package/src/dashboard/json/leverege/leverege-noc.json +2364 -0
  14. package/src/dashboard/json/{standard/redis.json → leverege/leverege-rule-engine.json} +695 -646
  15. package/src/dashboard/json/leverege/leverege-services.json +4757 -0
  16. package/src/dashboard/json/recovr/recovr-locators.json +1227 -0
  17. package/src/dashboard/json/recovr/recovr-noc.json +1949 -0
  18. package/src/dashboard/json/recovr/recovr-position-srvr.json +339 -0
  19. package/src/dashboard/json/recovr/recovr-server.json +1127 -0
  20. package/src/dashboard/json/siren/siren-services.json +2066 -0
  21. package/src/dashboard/json/{standard/cloudnative-pg-20417-rev4.json → system/cloudnative-pg.json} +241 -243
  22. package/src/dashboard/json/{standard → system}/elasticsearch8.json +123 -72
  23. package/src/dashboard/json/system/stackdriver.json +1189 -0
  24. package/src/dashboard/json/{standard/traefik-op.json → system/traefik.json} +44 -56
  25. package/src/dashboard/json/{standard → system}/valkey.json +91 -86
  26. package/src/dashboard/json/{standard → tpi}/gpu-autoscaling-dashboard-ui-import.json +1 -1
  27. package/src/dashboard/json/tpi/leverege-noc.json +3624 -0
  28. package/src/helm-charts/prom-operator/helmup.plugin +1 -1
  29. package/src/helm-charts/prom-operator/prometheus-stack.yaml.ovh +15 -0
  30. package/src/helm-charts/prom-operator/rules/gke-maintenance-rules.yaml +19 -0
  31. package/src/helm-charts/prom-operator/stackdriver-exporter.yaml.ovh +2 -1
  32. package/src/helm-charts/valkey/valkey-local.yaml +1 -0
  33. package/src/helmup.sh +24 -1
  34. package/src/init-my-chart/Chartwright.mjs +1 -1
  35. package/src/init-my-chart/leaf-chart-templates/templates/extraobjects.yaml +1 -0
  36. package/src/overwhelm.mjs +5 -5
  37. package/src/push-my-chart.mjs +13 -4
  38. package/src/repo-panopticon.mjs +415 -0
  39. package/src/service-man/config/secrets/npmrc.json +1 -0
  40. package/src/service-man/config/secrets/tsdb-dense-password.json +13 -0
  41. package/src/dashboard/json/standard/stackdriver.json +0 -624
  42. package/src/pkgck.sh +0 -158
  43. /package/src/dashboard/json/{standard → devops}/k8s-api-latency.json +0 -0
@@ -0,0 +1,1189 @@
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
+ "type": "dashboard"
15
+ }
16
+ ]
17
+ },
18
+ "editable": false,
19
+ "fiscalYearStartMonth": 0,
20
+ "graphTooltip": 1,
21
+ "id": null,
22
+ "links": [],
23
+ "panels": [
24
+ {
25
+ "datasource": {
26
+ "type": "prometheus",
27
+ "uid": "${datasource}"
28
+ },
29
+ "fieldConfig": {
30
+ "defaults": {
31
+ "color": {
32
+ "mode": "palette-classic"
33
+ },
34
+ "custom": {
35
+ "axisBorderShow": false,
36
+ "axisCenteredZero": false,
37
+ "axisColorMode": "text",
38
+ "axisLabel": "",
39
+ "axisPlacement": "auto",
40
+ "barAlignment": 0,
41
+ "barWidthFactor": 0.6,
42
+ "drawStyle": "line",
43
+ "fillOpacity": 20,
44
+ "gradientMode": "none",
45
+ "hideFrom": {
46
+ "legend": false,
47
+ "tooltip": false,
48
+ "viz": false
49
+ },
50
+ "insertNulls": false,
51
+ "lineInterpolation": "linear",
52
+ "lineWidth": 1,
53
+ "pointSize": 5,
54
+ "scaleDistribution": {
55
+ "type": "linear"
56
+ },
57
+ "showPoints": "never",
58
+ "showValues": false,
59
+ "spanNulls": false,
60
+ "stacking": {
61
+ "group": "A",
62
+ "mode": "none"
63
+ },
64
+ "thresholdsStyle": {
65
+ "mode": "off"
66
+ }
67
+ },
68
+ "mappings": [],
69
+ "thresholds": {
70
+ "mode": "absolute",
71
+ "steps": [
72
+ {
73
+ "color": "green",
74
+ "value": 0
75
+ },
76
+ {
77
+ "color": "red",
78
+ "value": 80
79
+ }
80
+ ]
81
+ },
82
+ "unit": "short"
83
+ },
84
+ "overrides": [
85
+ {
86
+ "matcher": {
87
+ "id": "byValue",
88
+ "options": {
89
+ "op": "gte",
90
+ "reducer": "allIsZero",
91
+ "value": 0
92
+ }
93
+ },
94
+ "properties": [
95
+ {
96
+ "id": "custom.hideFrom",
97
+ "value": {
98
+ "legend": true,
99
+ "tooltip": true,
100
+ "viz": false
101
+ }
102
+ }
103
+ ]
104
+ }
105
+ ]
106
+ },
107
+ "gridPos": {
108
+ "h": 11,
109
+ "w": 6,
110
+ "x": 0,
111
+ "y": 0
112
+ },
113
+ "id": 3,
114
+ "options": {
115
+ "legend": {
116
+ "calcs": [],
117
+ "displayMode": "list",
118
+ "placement": "bottom",
119
+ "showLegend": true
120
+ },
121
+ "tooltip": {
122
+ "hideZeros": false,
123
+ "mode": "multi",
124
+ "sort": "asc"
125
+ }
126
+ },
127
+ "pluginVersion": "12.4.2",
128
+ "targets": [
129
+ {
130
+ "datasource": {
131
+ "type": "prometheus",
132
+ "uid": "${datasource}"
133
+ },
134
+ "editorMode": "code",
135
+ "expr": "stackdriver_pubsub_subscription_pubsub_googleapis_com_subscription_num_undelivered_messages{subscription_id!~\"gcr-.*\"}",
136
+ "format": "time_series",
137
+ "intervalFactor": 2,
138
+ "legendFormat": "{{subscription_id}}",
139
+ "range": true,
140
+ "refId": "A"
141
+ }
142
+ ],
143
+ "title": "Number of Undelivered Messages",
144
+ "type": "timeseries"
145
+ },
146
+ {
147
+ "datasource": {
148
+ "type": "prometheus",
149
+ "uid": "${datasource}"
150
+ },
151
+ "fieldConfig": {
152
+ "defaults": {
153
+ "color": {
154
+ "mode": "palette-classic"
155
+ },
156
+ "custom": {
157
+ "axisBorderShow": false,
158
+ "axisCenteredZero": false,
159
+ "axisColorMode": "text",
160
+ "axisLabel": "",
161
+ "axisPlacement": "auto",
162
+ "barAlignment": 0,
163
+ "barWidthFactor": 0.6,
164
+ "drawStyle": "line",
165
+ "fillOpacity": 10,
166
+ "gradientMode": "none",
167
+ "hideFrom": {
168
+ "legend": false,
169
+ "tooltip": false,
170
+ "viz": false
171
+ },
172
+ "insertNulls": false,
173
+ "lineInterpolation": "linear",
174
+ "lineWidth": 1,
175
+ "pointSize": 5,
176
+ "scaleDistribution": {
177
+ "type": "linear"
178
+ },
179
+ "showPoints": "never",
180
+ "showValues": false,
181
+ "spanNulls": false,
182
+ "stacking": {
183
+ "group": "A",
184
+ "mode": "none"
185
+ },
186
+ "thresholdsStyle": {
187
+ "mode": "off"
188
+ }
189
+ },
190
+ "mappings": [],
191
+ "thresholds": {
192
+ "mode": "absolute",
193
+ "steps": [
194
+ {
195
+ "color": "green",
196
+ "value": 0
197
+ },
198
+ {
199
+ "color": "red",
200
+ "value": 80
201
+ }
202
+ ]
203
+ },
204
+ "unit": "short"
205
+ },
206
+ "overrides": [
207
+ {
208
+ "matcher": {
209
+ "id": "byValue",
210
+ "options": {
211
+ "op": "gte",
212
+ "reducer": "allIsZero",
213
+ "value": 0
214
+ }
215
+ },
216
+ "properties": [
217
+ {
218
+ "id": "custom.hideFrom",
219
+ "value": {
220
+ "legend": true,
221
+ "tooltip": true,
222
+ "viz": false
223
+ }
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "matcher": {
229
+ "id": "byValue",
230
+ "options": {
231
+ "op": "gte",
232
+ "reducer": "allIsNull",
233
+ "value": 0
234
+ }
235
+ },
236
+ "properties": [
237
+ {
238
+ "id": "custom.hideFrom",
239
+ "value": {
240
+ "legend": true,
241
+ "tooltip": true,
242
+ "viz": false
243
+ }
244
+ }
245
+ ]
246
+ }
247
+ ]
248
+ },
249
+ "gridPos": {
250
+ "h": 11,
251
+ "w": 10,
252
+ "x": 6,
253
+ "y": 0
254
+ },
255
+ "id": 6,
256
+ "options": {
257
+ "legend": {
258
+ "calcs": [],
259
+ "displayMode": "list",
260
+ "placement": "bottom",
261
+ "showLegend": true
262
+ },
263
+ "tooltip": {
264
+ "hideZeros": false,
265
+ "mode": "multi",
266
+ "sort": "asc"
267
+ }
268
+ },
269
+ "pluginVersion": "12.4.2",
270
+ "targets": [
271
+ {
272
+ "datasource": {
273
+ "type": "prometheus",
274
+ "uid": "${datasource}"
275
+ },
276
+ "editorMode": "code",
277
+ "expr": "stackdriver_pubsub_subscription_pubsub_googleapis_com_subscription_pull_ack_request_count",
278
+ "format": "time_series",
279
+ "intervalFactor": 2,
280
+ "legendFormat": "{{subscription_id}} (pull)",
281
+ "range": true,
282
+ "refId": "A"
283
+ },
284
+ {
285
+ "datasource": {
286
+ "type": "prometheus",
287
+ "uid": "${datasource}"
288
+ },
289
+ "editorMode": "code",
290
+ "expr": "stackdriver_pubsub_subscription_pubsub_googleapis_com_subscription_streaming_pull_ack_request_count",
291
+ "format": "time_series",
292
+ "legendFormat": "{{subscription_id}} (streaming)",
293
+ "range": true,
294
+ "refId": "B"
295
+ }
296
+ ],
297
+ "title": "Subscription Pull Ack Rate",
298
+ "type": "timeseries"
299
+ },
300
+ {
301
+ "datasource": {
302
+ "type": "prometheus",
303
+ "uid": "${datasource}"
304
+ },
305
+ "fieldConfig": {
306
+ "defaults": {
307
+ "color": {
308
+ "mode": "palette-classic"
309
+ },
310
+ "custom": {
311
+ "axisBorderShow": false,
312
+ "axisCenteredZero": false,
313
+ "axisColorMode": "text",
314
+ "axisLabel": "",
315
+ "axisPlacement": "auto",
316
+ "barAlignment": 0,
317
+ "barWidthFactor": 0.6,
318
+ "drawStyle": "line",
319
+ "fillOpacity": 10,
320
+ "gradientMode": "none",
321
+ "hideFrom": {
322
+ "legend": false,
323
+ "tooltip": false,
324
+ "viz": false
325
+ },
326
+ "insertNulls": false,
327
+ "lineInterpolation": "linear",
328
+ "lineWidth": 1,
329
+ "pointSize": 5,
330
+ "scaleDistribution": {
331
+ "type": "linear"
332
+ },
333
+ "showPoints": "never",
334
+ "showValues": false,
335
+ "spanNulls": false,
336
+ "stacking": {
337
+ "group": "A",
338
+ "mode": "none"
339
+ },
340
+ "thresholdsStyle": {
341
+ "mode": "off"
342
+ }
343
+ },
344
+ "mappings": [],
345
+ "thresholds": {
346
+ "mode": "absolute",
347
+ "steps": [
348
+ {
349
+ "color": "green",
350
+ "value": 0
351
+ },
352
+ {
353
+ "color": "red",
354
+ "value": 80
355
+ }
356
+ ]
357
+ },
358
+ "unit": "short"
359
+ },
360
+ "overrides": []
361
+ },
362
+ "gridPos": {
363
+ "h": 11,
364
+ "w": 8,
365
+ "x": 16,
366
+ "y": 0
367
+ },
368
+ "id": 7,
369
+ "options": {
370
+ "legend": {
371
+ "calcs": [],
372
+ "displayMode": "list",
373
+ "placement": "bottom",
374
+ "showLegend": true
375
+ },
376
+ "tooltip": {
377
+ "hideZeros": false,
378
+ "mode": "multi",
379
+ "sort": "none"
380
+ }
381
+ },
382
+ "pluginVersion": "12.4.2",
383
+ "targets": [
384
+ {
385
+ "datasource": {
386
+ "type": "prometheus",
387
+ "uid": "${datasource}"
388
+ },
389
+ "editorMode": "code",
390
+ "expr": "stackdriver_pubsub_topic_pubsub_googleapis_com_topic_message_sizes_count",
391
+ "instant": false,
392
+ "legendFormat": "{{topic_id}}",
393
+ "range": true,
394
+ "refId": "A"
395
+ }
396
+ ],
397
+ "title": "Topic Message Count",
398
+ "type": "timeseries"
399
+ },
400
+ {
401
+ "datasource": {
402
+ "type": "prometheus",
403
+ "uid": "${datasource}"
404
+ },
405
+ "fieldConfig": {
406
+ "defaults": {
407
+ "color": {
408
+ "mode": "palette-classic"
409
+ },
410
+ "custom": {
411
+ "axisBorderShow": false,
412
+ "axisCenteredZero": false,
413
+ "axisColorMode": "text",
414
+ "axisLabel": "",
415
+ "axisPlacement": "auto",
416
+ "barAlignment": 0,
417
+ "barWidthFactor": 0.6,
418
+ "drawStyle": "line",
419
+ "fillOpacity": 10,
420
+ "gradientMode": "none",
421
+ "hideFrom": {
422
+ "legend": false,
423
+ "tooltip": false,
424
+ "viz": false
425
+ },
426
+ "insertNulls": false,
427
+ "lineInterpolation": "linear",
428
+ "lineWidth": 1,
429
+ "pointSize": 5,
430
+ "scaleDistribution": {
431
+ "type": "linear"
432
+ },
433
+ "showPoints": "never",
434
+ "showValues": false,
435
+ "spanNulls": false,
436
+ "stacking": {
437
+ "group": "A",
438
+ "mode": "none"
439
+ },
440
+ "thresholdsStyle": {
441
+ "mode": "off"
442
+ }
443
+ },
444
+ "mappings": [],
445
+ "thresholds": {
446
+ "mode": "absolute",
447
+ "steps": [
448
+ {
449
+ "color": "green",
450
+ "value": 0
451
+ },
452
+ {
453
+ "color": "red",
454
+ "value": 80
455
+ }
456
+ ]
457
+ },
458
+ "unit": "short"
459
+ },
460
+ "overrides": []
461
+ },
462
+ "gridPos": {
463
+ "h": 9,
464
+ "w": 24,
465
+ "x": 0,
466
+ "y": 11
467
+ },
468
+ "id": 8,
469
+ "options": {
470
+ "legend": {
471
+ "calcs": [],
472
+ "displayMode": "list",
473
+ "placement": "bottom",
474
+ "showLegend": true
475
+ },
476
+ "tooltip": {
477
+ "hideZeros": false,
478
+ "mode": "multi",
479
+ "sort": "none"
480
+ }
481
+ },
482
+ "pluginVersion": "12.4.2",
483
+ "targets": [
484
+ {
485
+ "datasource": {
486
+ "type": "prometheus",
487
+ "uid": "${datasource}"
488
+ },
489
+ "editorMode": "code",
490
+ "expr": "stackdriver_pubsub_topic_pubsub_googleapis_com_topic_send_request_count",
491
+ "format": "time_series",
492
+ "intervalFactor": 2,
493
+ "legendFormat": "{{topic_id}}",
494
+ "range": true,
495
+ "refId": "A"
496
+ }
497
+ ],
498
+ "title": "Pubsub Send Request Count",
499
+ "type": "timeseries"
500
+ },
501
+ {
502
+ "datasource": {
503
+ "type": "prometheus",
504
+ "uid": "${datasource}"
505
+ },
506
+ "fieldConfig": {
507
+ "defaults": {
508
+ "color": {
509
+ "mode": "palette-classic"
510
+ },
511
+ "custom": {
512
+ "axisBorderShow": false,
513
+ "axisCenteredZero": false,
514
+ "axisColorMode": "text",
515
+ "axisLabel": "",
516
+ "axisPlacement": "auto",
517
+ "barAlignment": 0,
518
+ "barWidthFactor": 0.6,
519
+ "drawStyle": "line",
520
+ "fillOpacity": 10,
521
+ "gradientMode": "none",
522
+ "hideFrom": {
523
+ "legend": false,
524
+ "tooltip": false,
525
+ "viz": false
526
+ },
527
+ "insertNulls": false,
528
+ "lineInterpolation": "linear",
529
+ "lineWidth": 1,
530
+ "pointSize": 5,
531
+ "scaleDistribution": {
532
+ "type": "linear"
533
+ },
534
+ "showPoints": "never",
535
+ "showValues": false,
536
+ "spanNulls": false,
537
+ "stacking": {
538
+ "group": "A",
539
+ "mode": "none"
540
+ },
541
+ "thresholdsStyle": {
542
+ "mode": "off"
543
+ }
544
+ },
545
+ "mappings": [],
546
+ "thresholds": {
547
+ "mode": "absolute",
548
+ "steps": [
549
+ {
550
+ "color": "green",
551
+ "value": null
552
+ },
553
+ {
554
+ "color": "red",
555
+ "value": 1
556
+ }
557
+ ]
558
+ },
559
+ "unit": "short"
560
+ },
561
+ "overrides": []
562
+ },
563
+ "gridPos": {
564
+ "h": 7,
565
+ "w": 12,
566
+ "x": 0,
567
+ "y": 20
568
+ },
569
+ "id": 9,
570
+ "options": {
571
+ "legend": {
572
+ "calcs": [],
573
+ "displayMode": "list",
574
+ "placement": "bottom",
575
+ "showLegend": true
576
+ },
577
+ "tooltip": {
578
+ "hideZeros": false,
579
+ "mode": "multi",
580
+ "sort": "desc"
581
+ }
582
+ },
583
+ "pluginVersion": "12.4.2",
584
+ "targets": [
585
+ {
586
+ "datasource": {
587
+ "type": "prometheus",
588
+ "uid": "${datasource}"
589
+ },
590
+ "editorMode": "code",
591
+ "expr": "sum(increase(kube_pod_container_status_restarts_total[$__rate_interval])) by (pod) > 0",
592
+ "instant": false,
593
+ "legendFormat": "{{pod}}",
594
+ "range": true,
595
+ "refId": "A"
596
+ }
597
+ ],
598
+ "title": "Container Restarts",
599
+ "type": "timeseries"
600
+ },
601
+ {
602
+ "datasource": {
603
+ "type": "prometheus",
604
+ "uid": "${datasource}"
605
+ },
606
+ "fieldConfig": {
607
+ "defaults": {
608
+ "color": {
609
+ "mode": "palette-classic"
610
+ },
611
+ "custom": {
612
+ "axisBorderShow": false,
613
+ "axisCenteredZero": false,
614
+ "axisColorMode": "text",
615
+ "axisLabel": "",
616
+ "axisPlacement": "auto",
617
+ "barAlignment": 0,
618
+ "barWidthFactor": 0.6,
619
+ "drawStyle": "line",
620
+ "fillOpacity": 10,
621
+ "gradientMode": "none",
622
+ "hideFrom": {
623
+ "legend": false,
624
+ "tooltip": false,
625
+ "viz": false
626
+ },
627
+ "insertNulls": false,
628
+ "lineInterpolation": "linear",
629
+ "lineWidth": 1,
630
+ "pointSize": 5,
631
+ "scaleDistribution": {
632
+ "type": "linear"
633
+ },
634
+ "showPoints": "never",
635
+ "showValues": false,
636
+ "spanNulls": false,
637
+ "stacking": {
638
+ "group": "A",
639
+ "mode": "none"
640
+ },
641
+ "thresholdsStyle": {
642
+ "mode": "off"
643
+ }
644
+ },
645
+ "mappings": [],
646
+ "max": 1,
647
+ "min": 0,
648
+ "thresholds": {
649
+ "mode": "absolute",
650
+ "steps": [
651
+ {
652
+ "color": "green",
653
+ "value": null
654
+ },
655
+ {
656
+ "color": "yellow",
657
+ "value": 0.25
658
+ },
659
+ {
660
+ "color": "red",
661
+ "value": 0.5
662
+ }
663
+ ]
664
+ },
665
+ "unit": "percentunit"
666
+ },
667
+ "overrides": []
668
+ },
669
+ "gridPos": {
670
+ "h": 7,
671
+ "w": 12,
672
+ "x": 12,
673
+ "y": 20
674
+ },
675
+ "id": 10,
676
+ "options": {
677
+ "legend": {
678
+ "calcs": [
679
+ "mean",
680
+ "max"
681
+ ],
682
+ "displayMode": "table",
683
+ "placement": "bottom",
684
+ "showLegend": true
685
+ },
686
+ "tooltip": {
687
+ "hideZeros": false,
688
+ "mode": "multi",
689
+ "sort": "desc"
690
+ }
691
+ },
692
+ "pluginVersion": "12.4.2",
693
+ "targets": [
694
+ {
695
+ "datasource": {
696
+ "type": "prometheus",
697
+ "uid": "${datasource}"
698
+ },
699
+ "disableTextWrap": false,
700
+ "editorMode": "code",
701
+ "expr": "sum without (id, metrics_path, name, image, endpoint, job, node) (topk by (cluster, namespace, pod, container, instance) (1, increase(container_cpu_cfs_throttled_periods_total{container!=\"\",job=\"kubelet\",metrics_path=\"/metrics/cadvisor\"}[5m]))) / on (cluster, namespace, pod, container, instance) group_left () sum without (id, metrics_path, name, image, endpoint, job, node) (topk by (cluster, namespace, pod, container, instance) (1, increase(container_cpu_cfs_periods_total{job=\"kubelet\",metrics_path=\"/metrics/cadvisor\"}[5m]))) > (10 / 100)",
702
+ "fullMetaSearch": false,
703
+ "includeNullMetadata": true,
704
+ "instant": false,
705
+ "legendFormat": "{{pod}}",
706
+ "range": true,
707
+ "refId": "A",
708
+ "useBackend": false
709
+ }
710
+ ],
711
+ "title": "Container Throttling",
712
+ "type": "timeseries"
713
+ },
714
+ {
715
+ "datasource": {
716
+ "type": "prometheus",
717
+ "uid": "${datasource}"
718
+ },
719
+ "fieldConfig": {
720
+ "defaults": {
721
+ "color": {
722
+ "mode": "palette-classic"
723
+ },
724
+ "custom": {
725
+ "axisBorderShow": false,
726
+ "axisCenteredZero": false,
727
+ "axisColorMode": "text",
728
+ "axisLabel": "",
729
+ "axisPlacement": "auto",
730
+ "barAlignment": 0,
731
+ "barWidthFactor": 0.6,
732
+ "drawStyle": "line",
733
+ "fillOpacity": 10,
734
+ "gradientMode": "none",
735
+ "hideFrom": {
736
+ "legend": false,
737
+ "tooltip": false,
738
+ "viz": false
739
+ },
740
+ "insertNulls": false,
741
+ "lineInterpolation": "linear",
742
+ "lineWidth": 1,
743
+ "pointSize": 5,
744
+ "scaleDistribution": {
745
+ "type": "linear"
746
+ },
747
+ "showPoints": "never",
748
+ "spanNulls": false,
749
+ "stacking": {
750
+ "group": "A",
751
+ "mode": "none"
752
+ },
753
+ "thresholdsStyle": {
754
+ "mode": "off"
755
+ }
756
+ },
757
+ "mappings": [],
758
+ "min": 0,
759
+ "thresholds": {
760
+ "mode": "absolute",
761
+ "steps": [
762
+ {
763
+ "color": "green",
764
+ "value": 0
765
+ },
766
+ {
767
+ "color": "red",
768
+ "value": 80
769
+ }
770
+ ]
771
+ },
772
+ "unit": "s"
773
+ },
774
+ "overrides": [
775
+ {
776
+ "matcher": {
777
+ "id": "byValue",
778
+ "options": {
779
+ "op": "gte",
780
+ "reducer": "allIsZero",
781
+ "value": 0
782
+ }
783
+ },
784
+ "properties": [
785
+ {
786
+ "id": "custom.hideFrom",
787
+ "value": {
788
+ "legend": true,
789
+ "tooltip": true,
790
+ "viz": false
791
+ }
792
+ }
793
+ ]
794
+ }
795
+ ]
796
+ },
797
+ "gridPos": {
798
+ "h": 9,
799
+ "w": 12,
800
+ "x": 0,
801
+ "y": 27
802
+ },
803
+ "id": 11,
804
+ "options": {
805
+ "legend": {
806
+ "calcs": [
807
+ "mean",
808
+ "max"
809
+ ],
810
+ "displayMode": "table",
811
+ "placement": "bottom",
812
+ "showLegend": true
813
+ },
814
+ "tooltip": {
815
+ "hideZeros": false,
816
+ "mode": "multi",
817
+ "sort": "desc"
818
+ }
819
+ },
820
+ "pluginVersion": "12.1.1",
821
+ "targets": [
822
+ {
823
+ "datasource": {
824
+ "type": "prometheus",
825
+ "uid": "${datasource}"
826
+ },
827
+ "editorMode": "code",
828
+ "expr": "stackdriver_pubsub_subscription_pubsub_googleapis_com_subscription_oldest_unacked_message_age{subscription_id!~\"gcr-.*\"}",
829
+ "format": "time_series",
830
+ "legendFormat": "{{subscription_id}}",
831
+ "range": true,
832
+ "refId": "A"
833
+ }
834
+ ],
835
+ "title": "Oldest Unacked Message Age",
836
+ "type": "timeseries"
837
+ },
838
+ {
839
+ "datasource": {
840
+ "type": "prometheus",
841
+ "uid": "${datasource}"
842
+ },
843
+ "fieldConfig": {
844
+ "defaults": {
845
+ "color": {
846
+ "mode": "palette-classic"
847
+ },
848
+ "custom": {
849
+ "axisBorderShow": false,
850
+ "axisCenteredZero": false,
851
+ "axisColorMode": "text",
852
+ "axisLabel": "",
853
+ "axisPlacement": "auto",
854
+ "barAlignment": 0,
855
+ "barWidthFactor": 0.6,
856
+ "drawStyle": "line",
857
+ "fillOpacity": 10,
858
+ "gradientMode": "none",
859
+ "hideFrom": {
860
+ "legend": false,
861
+ "tooltip": false,
862
+ "viz": false
863
+ },
864
+ "insertNulls": false,
865
+ "lineInterpolation": "linear",
866
+ "lineWidth": 1,
867
+ "pointSize": 5,
868
+ "scaleDistribution": {
869
+ "type": "linear"
870
+ },
871
+ "showPoints": "never",
872
+ "spanNulls": false,
873
+ "stacking": {
874
+ "group": "A",
875
+ "mode": "none"
876
+ },
877
+ "thresholdsStyle": {
878
+ "mode": "off"
879
+ }
880
+ },
881
+ "mappings": [],
882
+ "min": 0,
883
+ "thresholds": {
884
+ "mode": "absolute",
885
+ "steps": [
886
+ {
887
+ "color": "green",
888
+ "value": null
889
+ },
890
+ {
891
+ "color": "red",
892
+ "value": 80
893
+ }
894
+ ]
895
+ },
896
+ "unit": "bytes"
897
+ },
898
+ "overrides": [
899
+ {
900
+ "matcher": {
901
+ "id": "byValue",
902
+ "options": {
903
+ "op": "gte",
904
+ "reducer": "allIsZero",
905
+ "value": 0
906
+ }
907
+ },
908
+ "properties": [
909
+ {
910
+ "id": "custom.hideFrom",
911
+ "value": {
912
+ "legend": true,
913
+ "tooltip": true,
914
+ "viz": false
915
+ }
916
+ }
917
+ ]
918
+ }
919
+ ]
920
+ },
921
+ "gridPos": {
922
+ "h": 9,
923
+ "w": 12,
924
+ "x": 12,
925
+ "y": 27
926
+ },
927
+ "id": 13,
928
+ "options": {
929
+ "legend": {
930
+ "calcs": [
931
+ "mean",
932
+ "max"
933
+ ],
934
+ "displayMode": "table",
935
+ "placement": "bottom",
936
+ "showLegend": true
937
+ },
938
+ "tooltip": {
939
+ "hideZeros": false,
940
+ "mode": "multi",
941
+ "sort": "desc"
942
+ }
943
+ },
944
+ "pluginVersion": "12.1.1",
945
+ "targets": [
946
+ {
947
+ "datasource": {
948
+ "type": "prometheus",
949
+ "uid": "${datasource}"
950
+ },
951
+ "editorMode": "code",
952
+ "expr": "stackdriver_pubsub_subscription_pubsub_googleapis_com_subscription_backlog_bytes{subscription_id!~\"gcr-.*\"}",
953
+ "format": "time_series",
954
+ "legendFormat": "{{subscription_id}}",
955
+ "range": true,
956
+ "refId": "A"
957
+ }
958
+ ],
959
+ "title": "Subscription Backlog Bytes",
960
+ "type": "timeseries"
961
+ },
962
+ {
963
+ "datasource": {
964
+ "type": "prometheus",
965
+ "uid": "${datasource}"
966
+ },
967
+ "fieldConfig": {
968
+ "defaults": {
969
+ "color": {
970
+ "mode": "thresholds"
971
+ },
972
+ "custom": {
973
+ "axisBorderShow": false,
974
+ "axisCenteredZero": false,
975
+ "axisColorMode": "text",
976
+ "axisLabel": "",
977
+ "axisPlacement": "auto",
978
+ "barAlignment": 0,
979
+ "barWidthFactor": 0.6,
980
+ "drawStyle": "line",
981
+ "fillOpacity": 20,
982
+ "gradientMode": "none",
983
+ "hideFrom": {
984
+ "legend": false,
985
+ "tooltip": false,
986
+ "viz": false
987
+ },
988
+ "insertNulls": false,
989
+ "lineInterpolation": "linear",
990
+ "lineWidth": 2,
991
+ "pointSize": 5,
992
+ "scaleDistribution": {
993
+ "type": "linear"
994
+ },
995
+ "showPoints": "never",
996
+ "spanNulls": false,
997
+ "stacking": {
998
+ "group": "A",
999
+ "mode": "none"
1000
+ },
1001
+ "thresholdsStyle": {
1002
+ "mode": "line+area"
1003
+ }
1004
+ },
1005
+ "mappings": [],
1006
+ "min": 0,
1007
+ "thresholds": {
1008
+ "mode": "absolute",
1009
+ "steps": [
1010
+ {
1011
+ "color": "green",
1012
+ "value": null
1013
+ },
1014
+ {
1015
+ "color": "red",
1016
+ "value": 1
1017
+ }
1018
+ ]
1019
+ },
1020
+ "unit": "short"
1021
+ },
1022
+ "overrides": []
1023
+ },
1024
+ "gridPos": {
1025
+ "h": 9,
1026
+ "w": 12,
1027
+ "x": 0,
1028
+ "y": 36
1029
+ },
1030
+ "id": 15,
1031
+ "options": {
1032
+ "legend": {
1033
+ "calcs": [],
1034
+ "displayMode": "list",
1035
+ "placement": "bottom",
1036
+ "showLegend": true
1037
+ },
1038
+ "tooltip": {
1039
+ "hideZeros": false,
1040
+ "mode": "multi",
1041
+ "sort": "none"
1042
+ }
1043
+ },
1044
+ "fieldConfig": {
1045
+ "defaults": {
1046
+ "color": { "mode": "palette-classic" },
1047
+ "custom": {
1048
+ "axisBorderShow": false,
1049
+ "axisCenteredZero": false,
1050
+ "axisColorMode": "text",
1051
+ "axisLabel": "",
1052
+ "axisPlacement": "auto",
1053
+ "barAlignment": 0,
1054
+ "barWidthFactor": 0.6,
1055
+ "drawStyle": "line",
1056
+ "fillOpacity": 0,
1057
+ "gradientMode": "none",
1058
+ "hideFrom": {
1059
+ "legend": false,
1060
+ "tooltip": false,
1061
+ "viz": false
1062
+ },
1063
+ "insertNulls": false,
1064
+ "lineInterpolation": "linear",
1065
+ "lineWidth": 2,
1066
+ "pointSize": 5,
1067
+ "scaleDistribution": { "type": "linear" },
1068
+ "showPoints": "auto",
1069
+ "spanNulls": false,
1070
+ "stacking": { "group": "A", "mode": "none" },
1071
+ "thresholdsStyle": { "mode": "off" }
1072
+ },
1073
+ "mappings": [],
1074
+ "thresholds": {
1075
+ "mode": "absolute",
1076
+ "steps": [{ "color": "green", "value": null }]
1077
+ }
1078
+ },
1079
+ "overrides": [
1080
+ {
1081
+ "matcher": { "id": "byName", "options": "Out-of-Order Samples (5m)" },
1082
+ "properties": [
1083
+ { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } },
1084
+ { "id": "custom.axisPlacement", "value": "right" }
1085
+ ]
1086
+ }
1087
+ ]
1088
+ },
1089
+ "datasource": {
1090
+ "type": "prometheus",
1091
+ "uid": "${datasource}"
1092
+ },
1093
+ "pluginVersion": "12.4.2",
1094
+ "targets": [
1095
+ {
1096
+ "datasource": { "type": "prometheus", "uid": "${datasource}" },
1097
+ "editorMode": "code",
1098
+ "expr": "avg_over_time(scrape_duration_seconds{job=\"prometheus-stack-stackdriver-metrics\"}[5m])",
1099
+ "legendFormat": "Scrape Duration (avg 5m)",
1100
+ "range": true,
1101
+ "refId": "A"
1102
+ },
1103
+ {
1104
+ "datasource": { "type": "prometheus", "uid": "${datasource}" },
1105
+ "editorMode": "code",
1106
+ "expr": "sum(increase(prometheus_tsdb_out_of_order_samples_total[5m]))",
1107
+ "legendFormat": "Out-of-Order Samples (5m)",
1108
+ "range": true,
1109
+ "refId": "B"
1110
+ }
1111
+ ],
1112
+ "title": "Stackdriver Scrape Duration vs TSDB Sample Rejections",
1113
+ "type": "timeseries"
1114
+ },
1115
+ {
1116
+ "gridPos": {
1117
+ "h": 9,
1118
+ "w": 12,
1119
+ "x": 12,
1120
+ "y": 36
1121
+ },
1122
+ "id": 14,
1123
+ "options": {
1124
+ "legend": {
1125
+ "calcs": [
1126
+ "max"
1127
+ ],
1128
+ "displayMode": "table",
1129
+ "placement": "bottom",
1130
+ "showLegend": true
1131
+ },
1132
+ "tooltip": {
1133
+ "hideZeros": false,
1134
+ "mode": "multi",
1135
+ "sort": "desc"
1136
+ }
1137
+ },
1138
+ "pluginVersion": "12.1.1",
1139
+ "targets": [
1140
+ {
1141
+ "datasource": {
1142
+ "type": "prometheus",
1143
+ "uid": "${datasource}"
1144
+ },
1145
+ "editorMode": "code",
1146
+ "expr": "stackdriver_pubsub_subscription_pubsub_googleapis_com_subscription_dead_letter_message_count > 0",
1147
+ "format": "time_series",
1148
+ "legendFormat": "{{subscription_id}}",
1149
+ "range": true,
1150
+ "refId": "A"
1151
+ }
1152
+ ],
1153
+ "title": "Dead Letter Message Count",
1154
+ "type": "timeseries"
1155
+ }
1156
+ ],
1157
+ "preload": false,
1158
+ "refresh": "30s",
1159
+ "schemaVersion": 42,
1160
+ "tags": [
1161
+ "gcp"
1162
+ ],
1163
+ "templating": {
1164
+ "list": [
1165
+ {
1166
+ "current": {},
1167
+ "hide": 0,
1168
+ "includeAll": false,
1169
+ "label": "Datasource",
1170
+ "multi": false,
1171
+ "name": "datasource",
1172
+ "options": [],
1173
+ "query": "prometheus",
1174
+ "refresh": 1,
1175
+ "type": "datasource"
1176
+ }
1177
+ ]
1178
+ },
1179
+ "time": {
1180
+ "from": "now-1h",
1181
+ "to": "now"
1182
+ },
1183
+ "timepicker": {},
1184
+ "timezone": "browser",
1185
+ "title": "Stackdriver",
1186
+ "uid": "stackdriver",
1187
+ "version": 3,
1188
+ "weekStart": ""
1189
+ }