diff options
-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" |