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

This commit is contained in:
Cody Boggs 2017-11-20 09:56:07 -07:00 committed by bergquist
parent 9151a2468d
commit 999b1211b6

View File

@ -159,11 +159,11 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "max(scrape_duration_seconds{job=\"prometheus\"})", "expr": "topk(5, max(scrape_duration_seconds) by (job))",
"format": "time_series", "format": "time_series",
"interval": "", "interval": "",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{quantile}}", "legendFormat": "{{job}}",
"metric": "", "metric": "",
"refId": "A", "refId": "A",
"step": 20 "step": 20