nixos/bosun: Make the check frequency configurable
This commit is contained in:
parent
6e1a2ecdaf
commit
fa3dad1f9c
|
@ -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 = "";
|
||||||
|
|
Loading…
Reference in New Issue