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 {
type = types.str;
#TODO: find a good default
default = ''
[agent]
interval = "1s"
interval = "${cfg.interval}"
[outputs]