From fa3dad1f9cb3c9b5dab0050bf97e805a33fe9201 Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Sat, 7 Nov 2015 23:59:23 +0100 Subject: [PATCH] nixos/bosun: Make the check frequency configurable --- nixos/modules/services/monitoring/bosun.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/bosun.nix b/nixos/modules/services/monitoring/bosun.nix index 7e8dea4ec02..ebe4741f01b 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 = "";