diff options
author | Oliver Charles <ollie@ocharles.org.uk> | 2014-11-20 14:56:49 +0000 |
---|---|---|
committer | Oliver Charles <ollie@ocharles.org.uk> | 2014-11-24 14:40:48 +0000 |
commit | 1280c6aa640f0e4afc7902d76c78b57d45f4aa8b (patch) | |
tree | 5a01e4e4a9191575917b2c6f665e72f1db632e9a /nixos/modules/services/monitoring/bosun.nix | |
parent | fb67616588ebd4bf4343ffab9d900dd77a6d97c6 (diff) | |
download | nixlib-1280c6aa640f0e4afc7902d76c78b57d45f4aa8b.tar nixlib-1280c6aa640f0e4afc7902d76c78b57d45f4aa8b.tar.gz nixlib-1280c6aa640f0e4afc7902d76c78b57d45f4aa8b.tar.bz2 nixlib-1280c6aa640f0e4afc7902d76c78b57d45f4aa8b.tar.lz nixlib-1280c6aa640f0e4afc7902d76c78b57d45f4aa8b.tar.xz nixlib-1280c6aa640f0e4afc7902d76c78b57d45f4aa8b.tar.zst nixlib-1280c6aa640f0e4afc7902d76c78b57d45f4aa8b.zip |
Add an `extraConfig` option to `bosun`
Diffstat (limited to 'nixos/modules/services/monitoring/bosun.nix')
-rw-r--r-- | nixos/modules/services/monitoring/bosun.nix | 15 |
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 + ''; + }; + }; }; |