prometheus
prometheus copied to clipboard
Add metric_names_limit to scrape config
Proposal
In order to stop targets from overloading the __name__
index, add a scrape config limiter that limits the number of metric names 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.
Should we enable that setting for any label name?
That's not a bad idea. Would we want one setting for metric names and one for label values?
label_cardinality_limit
The metric name is a label value.