summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/stats/telegraf/default.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-09-19 16:37:46 +0200
committermakefu <github@syntax-fehler.de>2017-09-19 16:37:46 +0200
commit21c284a2c7b4fcb330f0c90ccd773f65f78721aa (patch)
treeb9187461ac3ea10b7fe285543dbb4852c4139dab /makefu/2configs/stats/telegraf/default.nix
parent4ea52583d189d2c72b0a64cf605216f8b5bbcf56 (diff)
ma telegraf: init
also add europastats
Diffstat (limited to 'makefu/2configs/stats/telegraf/default.nix')
-rw-r--r--makefu/2configs/stats/telegraf/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/makefu/2configs/stats/telegraf/default.nix b/makefu/2configs/stats/telegraf/default.nix
new file mode 100644
index 000000000..4da6561d6
--- /dev/null
+++ b/makefu/2configs/stats/telegraf/default.nix
@@ -0,0 +1,20 @@
+{...}:
+let
+ url = "http://localhost:8086";
+in {
+ imports = [
+ ./europastats.nix
+ ];
+ services.telegraf = {
+ enable = true;
+ extraConfig = {
+ agent.debug = true;
+ outputs = {
+ influxdb = [{
+ urls = [ url ];
+ database = "telegraf";
+ }];
+ };
+ };
+ };
+}