prometheus/docs
Łukasz Mierzwa e1b7082008
Show individual scrape pools on /targets page (#11142)
* Add API endpoints for getting scrape pool names

This adds api/v1/scrape_pools endpoint that returns the list of *names* of all the scrape pools configured.
Having it allows to find out what scrape pools are defined without having to list and parse all targets.

The second change is adding scrapePool query parameter support in api/v1/targets endpoint, that allows to
filter returned targets by only finding ones for passed scrape pool name.

Both changes allow to query for a specific scrape pool data, rather than getting all the targets for all possible scrape pools.
The problem with api/v1/targets endpoint is that it returns huge amount of data if you configure a lot of scrape pools.

Signed-off-by: Łukasz Mierzwa <l.mierzwa@gmail.com>

* Add a scrape pool selector on /targets page

Current targets page lists all possible targets. This works great if you only have a few scrape pools configured,
but for systems with a lot of scrape pools and targets this slow things down a lot.
Not only does the /targets page load very slowly in such case (waiting for huge API response) but it also take
a long time to render, due to huge number of elements.
This change adds a dropdown selector so it's possible to select only intersting scrape pool to view.
There's also scrapePool query param that will open selected pool automatically.

Signed-off-by: Łukasz Mierzwa <l.mierzwa@gmail.com>

Signed-off-by: Łukasz Mierzwa <l.mierzwa@gmail.com>
2022-12-23 11:55:08 +01:00
..
configuration Merge pull request #11706 from dannystaple/patch-1 2022-12-21 09:21:12 +01:00
images Add 2.0 storage docs (#3423) 2017-11-07 22:00:38 +01:00
querying Show individual scrape pools on /targets page (#11142) 2022-12-23 11:55:08 +01:00
feature_flags.md Document the native histogram feature flag and PromQL (#11446) 2022-10-14 18:16:12 +05:30
federation.md doc: Add notes about feature not yet supported for native histograms (#11453) 2022-10-14 16:35:27 +05:30
getting_started.md Update getting started guide with the new UI 2022-01-14 23:14:55 +02:00
http_sd.md Added a failure counter to the HTTP service discovery (#10372) 2022-03-08 14:10:45 +01:00
index.md Update prometheus.io's URL to the latest version (#5270) 2019-02-27 10:39:50 +00:00
installation.md docs: minor corrections to the docker documentation (#6869) 2020-08-31 15:44:08 +01:00
management_api.md /-/{healthy,ready}/ respond to HEAD (#11160) 2022-08-16 21:06:26 +02:00
migration.md Merge release-2.28 back into main (#8975) 2021-06-22 00:59:31 +02:00
stability.md Merge release-2.28 back into main (#8975) 2021-06-22 00:59:31 +02:00
storage.md Allow overlapping blocks by default (#11331) 2022-09-28 19:17:54 +05:30