From 3495169f5728d8abf415355b2a102478e78da647 Mon Sep 17 00:00:00 2001 From: Daniel Meiburg Date: Wed, 3 Jul 2024 00:23:24 +0200 Subject: [PATCH] grafana-influx: attempt mqtt parsing with telegraf --- grafana-influx/telegraf.conf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/grafana-influx/telegraf.conf b/grafana-influx/telegraf.conf index 97f9fdc..9d70b54 100644 --- a/grafana-influx/telegraf.conf +++ b/grafana-influx/telegraf.conf @@ -5,6 +5,10 @@ token = "$TOKEN" [[inputs.mqtt_consumer]] servers = ["tcp://mosquitto:1883"] - topics = [ - "climate/#" -] + topics = [ "climate/#" ] + [[inputs.mqtt_consumer.topic_parsing]] + topic = "climate/+/+" + measurement = "measurement/+" + tags = "_/device/_" + _fields= "_/_/measurement" + topic_tag = ""