Skip to content

Commit

Permalink
prometheus: added default option values for relabel_config (NixOS#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
oida authored and globin committed Oct 7, 2016
1 parent 8e46883 commit 3d5dcbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixos/modules/services/monitoring/prometheus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -300,20 +300,22 @@ 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.
'';
};
action = mkOption {
type = types.enum ["replace" "keep" "drop"];
default = "replace";
description = ''
Action to perform based on regex matching.
'';
Expand Down

0 comments on commit 3d5dcbc

Please sign in to comment.