prometheus module: added default option values for relabel_config
This commit is contained in:
parent
52d12b473a
commit
725e04cc01
@ -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.
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user