l 3 telegraf: add interval option

This commit is contained in:
lassulus 2017-02-03 00:23:59 +01:00
parent 920cb34560
commit 7d9bd20248

View File

@ -41,12 +41,16 @@ let
'' ''
]; ];
}; };
interval = mkOption {
type = types.str;
default = "10s";
};
config = mkOption { config = mkOption {
type = types.str; type = types.str;
#TODO: find a good default #TODO: find a good default
default = '' default = ''
[agent] [agent]
interval = "1s" interval = "${cfg.interval}"
[outputs] [outputs]