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