From 999b1211b6d4da42e14e65ba8d0f171efa039043 Mon Sep 17 00:00:00 2001 From: Cody Boggs Date: Mon, 20 Nov 2017 09:56:07 -0700 Subject: [PATCH] show top 5 max scrape durations by job, and fix legend format --- .../datasource/prometheus/dashboards/prometheus_2_stats.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/plugins/datasource/prometheus/dashboards/prometheus_2_stats.json b/public/app/plugins/datasource/prometheus/dashboards/prometheus_2_stats.json index adff038cb09..6d6a1972d16 100644 --- a/public/app/plugins/datasource/prometheus/dashboards/prometheus_2_stats.json +++ b/public/app/plugins/datasource/prometheus/dashboards/prometheus_2_stats.json @@ -159,11 +159,11 @@ "steppedLine": false, "targets": [ { - "expr": "max(scrape_duration_seconds{job=\"prometheus\"})", + "expr": "topk(5, max(scrape_duration_seconds) by (job))", "format": "time_series", "interval": "", "intervalFactor": 2, - "legendFormat": "{{quantile}}", + "legendFormat": "{{job}}", "metric": "", "refId": "A", "step": 20