nixos/bosun: Make the check frequency configurable

This commit is contained in:
Rickard Nilsson 2015-11-07 23:59:23 +01:00
parent 6e1a2ecdaf
commit fa3dad1f9c
1 changed files with 9 additions and 1 deletions

View File

@ -9,7 +9,7 @@ let
tsdbHost = ${cfg.opentsdbHost} tsdbHost = ${cfg.opentsdbHost}
httpListen = ${cfg.listenAddress} httpListen = ${cfg.listenAddress}
stateFile = ${cfg.stateFile} stateFile = ${cfg.stateFile}
checkFrequency = 5m checkFrequency = ${cfg.checkFrequency}
${cfg.extraConfig} ${cfg.extraConfig}
''; '';
@ -77,6 +77,14 @@ in {
''; '';
}; };
checkFrequency = mkOption {
type = types.str;
default = "5m";
description = ''
Bosun's check frequency
'';
};
extraConfig = mkOption { extraConfig = mkOption {
type = types.string; type = types.string;
default = ""; default = "";