From 1280c6aa640f0e4afc7902d76c78b57d45f4aa8b Mon Sep 17 00:00:00 2001 From: Oliver Charles Date: Thu, 20 Nov 2014 14:56:49 +0000 Subject: [PATCH] Add an `extraConfig` option to `bosun` --- nixos/modules/services/monitoring/bosun.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nixos/modules/services/monitoring/bosun.nix b/nixos/modules/services/monitoring/bosun.nix index 90fa573e9cd..067c826f4e4 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 + ''; + }; + }; };