From 1d61c6eb11bce0871fcf9646b75414789dee7380 Mon Sep 17 00:00:00 2001 From: Daniel Meiburg Date: Wed, 3 Jul 2024 00:30:12 +0200 Subject: [PATCH] grafana-influx: attempt to fix mqtt parsing with telegraf --- grafana-influx/telegraf.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/grafana-influx/telegraf.conf b/grafana-influx/telegraf.conf index 9d70b54..a8b464a 100644 --- a/grafana-influx/telegraf.conf +++ b/grafana-influx/telegraf.conf @@ -7,8 +7,8 @@ servers = ["tcp://mosquitto:1883"] topics = [ "climate/#" ] [[inputs.mqtt_consumer.topic_parsing]] - topic = "climate/+/+" - measurement = "measurement/+" - tags = "_/device/_" - _fields= "_/_/measurement" - topic_tag = "" + topic = "climate/+/+" + measurement = "climate" + tags = "_/device/_" + _fields= "_/_/field" + topic_tag = ""