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}
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 = "";