summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/stats/telegraf/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/2configs/stats/telegraf/default.nix')
-rw-r--r--makefu/2configs/stats/telegraf/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/makefu/2configs/stats/telegraf/default.nix b/makefu/2configs/stats/telegraf/default.nix
index 049a9c037..c60539c71 100644
--- a/makefu/2configs/stats/telegraf/default.nix
+++ b/makefu/2configs/stats/telegraf/default.nix
@@ -1,16 +1,24 @@
{...}:
let
url = "http://localhost:8086";
+ mqtt_server = "localhost:1883";
in {
services.telegraf = {
enable = true;
extraConfig = {
- agent.debug = true;
+ agent.debug = false;
outputs = {
influxdb = [{
urls = [ url ];
database = "telegraf";
}];
+ mqtt = [{
+ servers = [ mqtt_server ];
+ topic_prefix = "/telegraf";
+ data_format = "json";
+ qos = 0;
+ batch = false;
+ }];
};
};
};