diff options
author | makefu <github@syntax-fehler.de> | 2017-02-05 22:47:54 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-02-05 22:47:54 +0100 |
commit | d8ab184c3336ae9874f266bd77cf305f10d4bdd4 (patch) | |
tree | 11292102366df6b174b4afffe25d5b96c2284b24 /lass/3modules/kapacitor.nix | |
parent | bd90a14732f418f5d77ad2e925fe728940268f3e (diff) |
l 3 kapacitor: add logLevel
Diffstat (limited to 'lass/3modules/kapacitor.nix')
-rw-r--r-- | lass/3modules/kapacitor.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lass/3modules/kapacitor.nix b/lass/3modules/kapacitor.nix index a1e82b830..299a56d92 100644 --- a/lass/3modules/kapacitor.nix +++ b/lass/3modules/kapacitor.nix @@ -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" |