Skip to content

Commit 49fc7b9

Browse files
easyCZroboquat
authored andcommitted
[usage] Update usage dashboard to track scheduled jobs
1 parent d224833 commit 49fc7b9

File tree

1 file changed

+28
-18
lines changed
  • operations/observability/mixins/meta/dashboards/components

1 file changed

+28
-18
lines changed

operations/observability/mixins/meta/dashboards/components/usage.json

+28-18
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
"editable": true,
2525
"fiscalYearStartMonth": 0,
2626
"graphTooltip": 0,
27-
"id": 68,
28-
"iteration": 1658784406433,
2927
"links": [],
3028
"liveNow": false,
3129
"panels": [
@@ -51,6 +49,8 @@
5149
"mode": "palette-classic"
5250
},
5351
"custom": {
52+
"axisCenteredZero": false,
53+
"axisColorMode": "text",
5454
"axisLabel": "",
5555
"axisPlacement": "auto",
5656
"barAlignment": 0,
@@ -107,7 +107,8 @@
107107
"legend": {
108108
"calcs": [],
109109
"displayMode": "list",
110-
"placement": "bottom"
110+
"placement": "bottom",
111+
"showLegend": true
111112
},
112113
"tooltip": {
113114
"mode": "single",
@@ -141,6 +142,8 @@
141142
"mode": "palette-classic"
142143
},
143144
"custom": {
145+
"axisCenteredZero": false,
146+
"axisColorMode": "text",
144147
"axisLabel": "",
145148
"axisPlacement": "auto",
146149
"barAlignment": 0,
@@ -197,7 +200,8 @@
197200
"legend": {
198201
"calcs": [],
199202
"displayMode": "list",
200-
"placement": "bottom"
203+
"placement": "bottom",
204+
"showLegend": true
201205
},
202206
"tooltip": {
203207
"mode": "single",
@@ -240,9 +244,9 @@
240244
"x": 0,
241245
"y": 9
242246
},
243-
"id": 2,
247+
"id": 14,
244248
"panels": [],
245-
"title": "Usage Controller",
249+
"title": "Scheduled jobs",
246250
"type": "row"
247251
},
248252
{
@@ -257,6 +261,8 @@
257261
"mode": "palette-classic"
258262
},
259263
"custom": {
264+
"axisCenteredZero": false,
265+
"axisColorMode": "text",
260266
"axisLabel": "# of events",
261267
"axisPlacement": "auto",
262268
"barAlignment": 0,
@@ -312,7 +318,8 @@
312318
"legend": {
313319
"calcs": [],
314320
"displayMode": "list",
315-
"placement": "bottom"
321+
"placement": "bottom",
322+
"showLegend": true
316323
},
317324
"tooltip": {
318325
"mode": "single",
@@ -326,8 +333,8 @@
326333
"uid": "P4169E866C3094E38"
327334
},
328335
"editorMode": "code",
329-
"expr": "sum(increase(gitpod_usage_reconcile_started_total{cluster=~\"$cluster\"}[1m]))",
330-
"legendFormat": "Reconcile started",
336+
"expr": "sum(increase(gitpod_usage_scheduler_job_started_total{cluster=~\"$cluster\"}[1m])) by (job)",
337+
"legendFormat": "{{job}} started",
331338
"range": true,
332339
"refId": "A"
333340
},
@@ -338,15 +345,15 @@
338345
},
339346
"editorMode": "code",
340347
"exemplar": false,
341-
"expr": "sum(increase(gitpod_usage_reconcile_completed_duration_seconds_count{cluster=~\"$cluster\"}[1m])) by (outcome)",
348+
"expr": "sum(increase(gitpod_usage_scheduler_job_completed_seconds_count{cluster=~\"$cluster\"}[1m])) by (job, outcome)",
342349
"hide": false,
343350
"instant": false,
344-
"legendFormat": "Reconcile completed: {{outcome}}",
351+
"legendFormat": "{{job}} completed: {{outcome}}",
345352
"range": true,
346353
"refId": "B"
347354
}
348355
],
349-
"title": "Usage Controller Ticks",
356+
"title": "Scheduled jobs started & completed",
350357
"type": "timeseries"
351358
},
352359
{
@@ -361,6 +368,8 @@
361368
"mode": "palette-classic"
362369
},
363370
"custom": {
371+
"axisCenteredZero": false,
372+
"axisColorMode": "text",
364373
"axisGridShow": true,
365374
"axisLabel": "",
366375
"axisPlacement": "auto",
@@ -418,7 +427,8 @@
418427
"legend": {
419428
"calcs": [],
420429
"displayMode": "list",
421-
"placement": "bottom"
430+
"placement": "bottom",
431+
"showLegend": true
422432
},
423433
"tooltip": {
424434
"mode": "single",
@@ -432,7 +442,7 @@
432442
"uid": "P4169E866C3094E38"
433443
},
434444
"editorMode": "code",
435-
"expr": "histogram_quantile(0.5, sum(rate(gitpod_usage_reconcile_completed_duration_seconds_bucket{cluster=~\"$cluster\"}[$__rate_interval])) by (le))",
445+
"expr": "histogram_quantile(0.5, sum(rate(gitpod_usage_scheduler_job_completed_seconds_bucket{cluster=~\"$cluster\"}[$__rate_interval])) by (le))",
436446
"legendFormat": "50th percentile",
437447
"range": true,
438448
"refId": "A"
@@ -443,18 +453,18 @@
443453
"uid": "P4169E866C3094E38"
444454
},
445455
"editorMode": "code",
446-
"expr": "histogram_quantile(0.9, sum(rate(gitpod_usage_reconcile_completed_duration_seconds_bucket{cluster=~\"$cluster\"}[$__rate_interval])) by (le))",
456+
"expr": "histogram_quantile(0.9, sum(rate(gitpod_usage_scheduler_job_completed_seconds_bucket{cluster=~\"$cluster\"}[$__rate_interval])) by (le))",
447457
"hide": false,
448458
"legendFormat": "90th percentile",
449459
"range": true,
450460
"refId": "B"
451461
}
452462
],
453-
"title": "Tick Duration",
463+
"title": "Scheduled job duration",
454464
"type": "timeseries"
455465
}
456466
],
457-
"schemaVersion": 36,
467+
"schemaVersion": 37,
458468
"style": "dark",
459469
"tags": [],
460470
"templating": {
@@ -561,6 +571,6 @@
561571
"timezone": "utc",
562572
"title": "Component: Usage",
563573
"uid": "8W7P-jg4z",
564-
"version": 8,
574+
"version": 1,
565575
"weekStart": "monday"
566576
}

0 commit comments

Comments
 (0)