prometheus/web/api/v1
Bryan Boreham 1e3fef6ab0
scraping: limit detail on dropped targets, to save memory (#12647)
It's possible (quite common on Kubernetes) to have a service discovery
return thousands of targets then drop most of them in relabel rules.
The main place this data is used is to display in the web UI, where
you don't want thousands of lines of display.

The new limit is `keep_dropped_targets`, which defaults to 0
for backwards-compatibility.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-08-14 15:39:25 +01:00
..
api.go scraping: limit detail on dropped targets, to save memory (#12647) 2023-08-14 15:39:25 +01:00
api_test.go scraping: limit detail on dropped targets, to save memory (#12647) 2023-08-14 15:39:25 +01:00
codec.go Implement fully-featured content negotiation for API requests, and allow overriding the default API codec. 2023-03-09 12:02:45 +11:00
codec_test.go Implement fully-featured content negotiation for API requests, and allow overriding the default API codec. 2023-03-09 12:02:45 +11:00
errors_test.go scraping: limit detail on dropped targets, to save memory (#12647) 2023-08-14 15:39:25 +01:00
json_codec.go web/api: use stream encoder for embedded labels 2023-07-24 20:42:36 +01:00
json_codec_test.go Merge branch 'main' into api-response-format-extension-point 2023-07-04 13:26:13 +10:00