From 3ee66c6943bd70d0650747ba9b0ebdf9c460a11e Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 2 Jul 2020 20:51:37 +0200 Subject: [PATCH] Monitor seedbox --- templates/telegraf.conf.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/telegraf.conf.j2 b/templates/telegraf.conf.j2 index 5dad2cd..42de4cd 100644 --- a/templates/telegraf.conf.j2 +++ b/templates/telegraf.conf.j2 @@ -91,3 +91,9 @@ [[inputs.wireguard]] devices = ["wg0"] {% endif %} + +{% if inventory_hostname == "n2" %} +[[inputs.file]] + files = ["/mnt/seedbox/.config/stats.json"] + data_format = "json" +{% endif %}