Просмотр исходного кода

show top 5 max scrape durations by job, and fix legend format

Cody Boggs 8 лет назад
Родитель
Сommit
999b1211b6

+ 2 - 2
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