Merge pull request #6947 from prometheus/document-global-labels

Add new "globalUrl" field to /api/v1/targets docs
This commit is contained in:
Julien Pivotto 2021-03-30 22:41:47 +02:00 committed by GitHub
commit 0414534499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -498,6 +498,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,
@ -542,6 +543,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,