Add new "globalUrl" field to /api/v1/targets docs

See https://github.com/prometheus/prometheus/pull/6794

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2020-03-09 14:07:30 +01:00
parent df14bca643
commit a3270a3a0f
1 changed files with 2 additions and 0 deletions

View File

@ -413,6 +413,7 @@ $ curl http://localhost:9090/api/v1/targets
}, },
"scrapePool": "prometheus", "scrapePool": "prometheus",
"scrapeUrl": "http://127.0.0.1:9090/metrics", "scrapeUrl": "http://127.0.0.1:9090/metrics",
"globalUrl": "http://example-prometheus:9090/metrics",
"lastError": "", "lastError": "",
"lastScrape": "2017-01-17T15:07:44.723715405+01:00", "lastScrape": "2017-01-17T15:07:44.723715405+01:00",
"lastScrapeDuration": 0.050688943, "lastScrapeDuration": 0.050688943,
@ -457,6 +458,7 @@ $ curl 'http://localhost:9090/api/v1/targets?state=active'
}, },
"scrapePool": "prometheus", "scrapePool": "prometheus",
"scrapeUrl": "http://127.0.0.1:9090/metrics", "scrapeUrl": "http://127.0.0.1:9090/metrics",
"globalUrl": "http://example-prometheus:9090/metrics",
"lastError": "", "lastError": "",
"lastScrape": "2017-01-17T15:07:44.723715405+01:00", "lastScrape": "2017-01-17T15:07:44.723715405+01:00",
"lastScrapeDuration": 50688943, "lastScrapeDuration": 50688943,