services.prometheus.scrapeConfigs.*.target_limit
NixOS option
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 integerDefault
declared in: nixos/modules/services/monitoring/prometheus/default.nixView source on NixOS/nixpkgs →null