summaryrefslogtreecommitdiffstats
path: root/lass/3modules
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-02-05 23:10:23 +0100
committerlassulus <lass@lassul.us>2017-02-05 23:10:23 +0100
commit381d24634eddf4cc06d7f4043f4691e49bfd8611 (patch)
tree25459db6d1b3ffb93024bb87c552afee977e9233 /lass/3modules
parent7bcbb92979830bf8db28db5babad2527f2353805 (diff)
parentd8ab184c3336ae9874f266bd77cf305f10d4bdd4 (diff)
Merge remote-tracking branch 'prism/makefu'
Diffstat (limited to 'lass/3modules')
-rw-r--r--lass/3modules/kapacitor.nix6
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"