From d8ab184c3336ae9874f266bd77cf305f10d4bdd4 Mon Sep 17 00:00:00 2001
From: makefu <github@syntax-fehler.de>
Date: Sun, 5 Feb 2017 22:47:54 +0100
Subject: l 3 kapacitor: add logLevel

---
 lass/3modules/kapacitor.nix | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'lass/3modules/kapacitor.nix')

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"
-- 
cgit v1.2.3