about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nixos/modules/services/monitoring/bosun.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/bosun.nix b/nixos/modules/services/monitoring/bosun.nix
index 90fa573e9cd1..067c826f4e42 100644
--- a/nixos/modules/services/monitoring/bosun.nix
+++ b/nixos/modules/services/monitoring/bosun.nix
@@ -10,6 +10,8 @@ let
     httpListen = ${cfg.listenAddress}
     stateFile = ${cfg.stateFile}
     checkFrequency = 5m
+
+    ${cfg.extraConfig}
   '';
 
 in {
@@ -75,6 +77,19 @@ in {
         '';
       };
 
+      extraConfig = mkOption {
+        type = types.string;
+        default = "";
+        description = ''
+          Extra configuration options for Bosun. You should describe your
+          desired templates, alerts, macros, etc through this configuration
+          option.
+
+          A detailed description of the supported syntax can be found at-spi2-atk
+          http://bosun.org/configuration.html
+        '';
+      };
+
     };
 
   };