prometheus module: added default option values for relabel_config

This commit is contained in:
oida 2016-10-07 11:04:52 +02:00 committed by Robin Gloster
parent 52d12b473a
commit 725e04cc01
No known key found for this signature in database
GPG Key ID: 5E4C836C632C2882

View File

@ -300,13 +300,14 @@ let
}; };
regex = mkOption { regex = mkOption {
type = types.str; type = types.str;
default = "(.*)";
description = '' description = ''
Regular expression against which the extracted value is matched. Regular expression against which the extracted value is matched.
''; '';
}; };
replacement = mkOption { replacement = mkOption {
type = types.str; type = types.str;
default = ""; default = "$1";
description = '' description = ''
Replacement value against which a regex replace is performed if the Replacement value against which a regex replace is performed if the
regular expression matches. regular expression matches.
@ -314,6 +315,7 @@ let
}; };
action = mkOption { action = mkOption {
type = types.enum ["replace" "keep" "drop"]; type = types.enum ["replace" "keep" "drop"];
default = "replace";
description = '' description = ''
Action to perform based on regex matching. Action to perform based on regex matching.
''; '';