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,
"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