l 3 kapacitor: add logLevel

This commit is contained in:
makefu 2017-02-05 22:47:54 +01:00
parent bd90a14732
commit d8ab184c33
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225

View file

@ -21,6 +21,10 @@ let
type = types.str;
default = "kapacitor";
};
logLevel = mkOption {
type = types.enum ["DEBUG" "INFO" "WARN" "ERROR" "OFF"];
default = "INFO";
};
alarms = mkOption {
type = with types; attrsOf str;
default = {};
@ -82,7 +86,7 @@ let
[logging]
file = "STDERR"
level = "DEBUG"
level = "${cfg.logLevel}"
[deadman]
interval = "10s"