From 61840f7181bc17f3c808fcae5acc656a2408ab7b Mon Sep 17 00:00:00 2001 From: Jeff Slight Date: Wed, 7 Dec 2022 15:22:04 -0800 Subject: [PATCH] nixos/prometheus: Add new relabel_configs actions The relabel_configs option for scrape_configs is missing two options: lowercase and uppercase https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config --- nixos/modules/services/monitoring/prometheus/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/prometheus/default.nix b/nixos/modules/services/monitoring/prometheus/default.nix index f6bae8f9e965..b295f0d5cc74 100644 --- a/nixos/modules/services/monitoring/prometheus/default.nix +++ b/nixos/modules/services/monitoring/prometheus/default.nix @@ -1409,7 +1409,7 @@ let ''; action = - mkDefOpt (types.enum [ "replace" "keep" "drop" "hashmod" "labelmap" "labeldrop" "labelkeep" ]) "replace" '' + mkDefOpt (types.enum [ "replace" "lowercase" "uppercase" "keep" "drop" "hashmod" "labelmap" "labeldrop" "labelkeep" ]) "replace" '' Action to perform based on regex matching. ''; };