summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-02-03 00:23:59 +0100
committerlassulus <lass@lassul.us>2017-02-03 00:23:59 +0100
commit7d9bd2024826928c028d63b6448f126966e6552c (patch)
tree4f607df39501a90136cd014432b9ca91fe8d88c5
parent920cb3456045f7ec431de68a2613e478a7e30751 (diff)
l 3 telegraf: add interval option
-rw-r--r--lass/3modules/telegraf.nix6
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]