services.prometheus.scrapeConfigs.*.target_limit
Per-scrape config limit on number of unique targets that will be accepted. If more than this number of targets are present after target relabeling, Prometheus will mark the targets as failed without scraping them. 0 means no limit. This is an experimental feature, this behaviour could change in the future.
Defaults to 0 in prometheus
when set to null.
- Type
null or signed integer- Default
null- Declared
- <nixpkgs/nixos/modules/services/monitoring/prometheus/default.nix>