prometheus/prometheus

Add cardinality_limit to scrape config

Offen

#11.061 geöffnet am 25.07.2022

 (15 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Go (10.408 Forks)batch import
component/configcomponent/scrapinghelp wantedkind/featurepriority/P3

Repository-Metriken

Stars
 (64.042 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 11T 5h) (118 gemergte PRs in 30 T)

Beschreibung

Proposal

In order to stop targets from overloading label values and also the metric __name__ index, add a scrape config limiter that limits the number of unique label values per scrape.

This will protect, for example:

  • When other metric systems are translated to Prometheus incorrectly and tag values become part of the metric name.
  • When a piece of data is not filtered and exposed as thousands of label values.

Contributor Guide