diff options
author | makefu <github@syntax-fehler.de> | 2019-09-25 14:51:43 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-09-25 14:51:43 +0200 |
commit | acf23122acaf1c0161b4fe3315362dfc159fab86 (patch) | |
tree | 7ad47296794e62809dd8e3ab0b27311df6f823f7 /makefu/2configs/stats/telegraf | |
parent | 4eed71903948153f936b526b02e0894d0ef6a111 (diff) |
ma stats/telegraf: export to mqtt
Diffstat (limited to 'makefu/2configs/stats/telegraf')
-rw-r--r-- | makefu/2configs/stats/telegraf/default.nix | 10 |
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; + }]; }; }; }; |