about summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/bosun.nix
diff options
context:
space:
mode:
authorRickard Nilsson <rickynils@gmail.com>2015-11-07 23:59:23 +0100
committerRickard Nilsson <rickynils@gmail.com>2015-11-07 23:59:23 +0100
commitfa3dad1f9cb3c9b5dab0050bf97e805a33fe9201 (patch)
tree6db3a7282f75487f6e3d2326d80be4c65f7cc845 /nixos/modules/services/monitoring/bosun.nix
parent6e1a2ecdafdcd31062542b099dfb3d803e3f199e (diff)
nixos/bosun: Make the check frequency configurable
Diffstat (limited to 'nixos/modules/services/monitoring/bosun.nix')
-rw-r--r--nixos/modules/services/monitoring/bosun.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/bosun.nix b/nixos/modules/services/monitoring/bosun.nix
index 7e8dea4ec0249..ebe4741f01bd7 100644
--- a/nixos/modules/services/monitoring/bosun.nix
+++ b/nixos/modules/services/monitoring/bosun.nix
@@ -9,7 +9,7 @@ let
     tsdbHost = ${cfg.opentsdbHost}
     httpListen = ${cfg.listenAddress}
     stateFile = ${cfg.stateFile}
-    checkFrequency = 5m
+    checkFrequency = ${cfg.checkFrequency}
 
     ${cfg.extraConfig}
   '';
@@ -77,6 +77,14 @@ in {
         '';
       };
 
+      checkFrequency = mkOption {
+        type = types.str;
+        default = "5m";
+        description = ''
+          Bosun's check frequency
+        '';
+      };
+
       extraConfig = mkOption {
         type = types.string;
         default = "";