mirror of
https://github.com/prometheus/prometheus.git
synced 2025-07-03 11:03:25 +00:00
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>
This commit is contained in:
parent
103b8567d6
commit
1e3fef6ab0
11 changed files with 84 additions and 15 deletions
|
@ -8,6 +8,11 @@
|
|||
# If you are using Kubernetes 1.7.2 or earlier, please take note of the comments
|
||||
# for the kubernetes-cadvisor job; you will need to edit or remove this job.
|
||||
|
||||
# Keep at most 100 sets of details of targets dropped by relabeling.
|
||||
# This information is used to display in the UI for troubleshooting.
|
||||
global:
|
||||
keep_dropped_targets: 100
|
||||
|
||||
# Scrape config for API servers.
|
||||
#
|
||||
# Kubernetes exposes API servers as endpoints to the default/kubernetes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue