nixos/prometheus: Add support for metric relabeling

This commit is contained in:
Janne Heß
2021-05-13 15:59:46 +02:00
parent 5687a345be
commit 672e64701c
@@ -386,6 +386,10 @@ let
List of relabel configurations. List of relabel configurations.
''; '';
metric_relabel_configs = mkOpt (types.listOf promTypes.relabel_config) ''
List of metric relabel configurations.
'';
sample_limit = mkDefOpt types.int "0" '' sample_limit = mkDefOpt types.int "0" ''
Per-scrape limit on number of scraped samples that will be accepted. Per-scrape limit on number of scraped samples that will be accepted.
If more than this number of samples are present after metric relabelling If more than this number of samples are present after metric relabelling