prometheus/web/ui/react-app
Ł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
..
public Fix serving of Prometheus logo, move it into 'src/images' (#10236) 2022-02-02 14:53:30 +01:00
src Show individual scrape pools on /targets page (#11142) 2022-12-23 11:55:08 +01:00
.env Fix broken prefixed asset links in webpack build (#9586) 2021-10-25 12:52:13 +02:00
.eslintrc.json Update React 16->17, TypeScript, and some other node deps 2021-09-14 15:46:59 +02:00
.gitignore Integrate beginning of React UI (#5694) 2019-10-17 14:38:09 +02:00
package.json Release v2.41.0-rc.0 2022-12-15 13:48:51 +01:00
tsconfig.json upgrade react-app to typescript 4 2021-09-07 10:51:59 +02:00