diff options
author | lassulus <lass@lassul.us> | 2017-02-03 00:23:59 +0100 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2017-02-03 00:23:59 +0100 |
commit | 7d9bd2024826928c028d63b6448f126966e6552c (patch) | |
tree | 4f607df39501a90136cd014432b9ca91fe8d88c5 /lass/3modules/telegraf.nix | |
parent | 920cb3456045f7ec431de68a2613e478a7e30751 (diff) |
l 3 telegraf: add interval option
Diffstat (limited to 'lass/3modules/telegraf.nix')
-rw-r--r-- | lass/3modules/telegraf.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lass/3modules/telegraf.nix b/lass/3modules/telegraf.nix index 6ef775090..0b3be2d69 100644 --- a/lass/3modules/telegraf.nix +++ b/lass/3modules/telegraf.nix @@ -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] |