Skip to content

Commit 8c61449

Browse files
committed
Add sliding SLO queries to experiment dashboard
1 parent 5ee7234 commit 8c61449

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

webhosting-operator/config/monitoring/default/dashboards/experiments.json

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"editable": true,
1919
"fiscalYearStartMonth": 0,
2020
"graphTooltip": 1,
21-
"id": 5,
21+
"id": 35,
2222
"links": [],
2323
"panels": [
2424
{
@@ -340,10 +340,22 @@
340340
"uid": "P1809F7CD0C75ACF3"
341341
},
342342
"editorMode": "code",
343-
"expr": "histogram_quantile(0.99,\n sum by (run_id, le) (rate(\n workqueue_queue_duration_seconds_bucket{\n job=\"webhosting-operator\", name=\"website\", run_id=~\"$run_id\"\n }[$__rate_interval]\n ))\n)",
344-
"legendFormat": "__auto",
343+
"expr": "histogram_quantile(0.99,\n sum by (run_id, le) (rate(\n workqueue_queue_duration_seconds_bucket{\n job=\"webhosting-operator\", name=\"website\", run_id=~\"$run_id\"\n }[1m]\n ))\n)",
344+
"legendFormat": "{{run_id}}-1m",
345345
"range": true,
346346
"refId": "A"
347+
},
348+
{
349+
"datasource": {
350+
"type": "prometheus",
351+
"uid": "P1809F7CD0C75ACF3"
352+
},
353+
"editorMode": "code",
354+
"expr": "histogram_quantile(0.99,\n sum by (run_id, le) (rate(\n workqueue_queue_duration_seconds_bucket{\n job=\"webhosting-operator\", name=\"website\", run_id=~\"$run_id\"\n }[15m]\n ))\n)",
355+
"hide": false,
356+
"legendFormat": "{{run_id}}-15m",
357+
"range": true,
358+
"refId": "B"
347359
}
348360
],
349361
"title": "Queue Latency (P99)",
@@ -443,10 +455,22 @@
443455
"uid": "P1809F7CD0C75ACF3"
444456
},
445457
"editorMode": "code",
446-
"expr": "histogram_quantile(0.99,\n sum by (run_id, le) (rate(\n experiment_website_reconciliation_duration_seconds_bucket{\n job=\"experiment\", run_id=~\"$run_id\"\n }[$__rate_interval]\n ))\n)",
447-
"legendFormat": "__auto",
458+
"expr": "histogram_quantile(0.99,\n sum by (run_id, le) (rate(\n experiment_website_reconciliation_duration_seconds_bucket{\n job=\"experiment\", run_id=~\"$run_id\"\n }[1m]\n ))\n)",
459+
"legendFormat": "{{run_id}}-1m",
448460
"range": true,
449461
"refId": "A"
462+
},
463+
{
464+
"datasource": {
465+
"type": "prometheus",
466+
"uid": "P1809F7CD0C75ACF3"
467+
},
468+
"editorMode": "code",
469+
"expr": "histogram_quantile(0.99,\n sum by (run_id, le) (rate(\n experiment_website_reconciliation_duration_seconds_bucket{\n job=\"experiment\", run_id=~\"$run_id\"\n }[15m]\n ))\n)",
470+
"hide": false,
471+
"legendFormat": "{{run_id}}-15m",
472+
"range": true,
473+
"refId": "B"
450474
}
451475
],
452476
"title": "Reconciliation Latency (P99)",

0 commit comments

Comments
 (0)