I follow the example https://www.influxdata.com/blog/pivot-mqtt-plugin/ to rotate values from a vertical format into a horizontal format.
[[inputs.mqtt_consumer]]
servers = ["tcp://mqtt.XXX:1883"]
## Username and password to connect MQTT serve
username = "telegraf"
password = "@{docker_secretstore:telegraf_mqtt_password}"
data_format = "json"
topics = [
"warp/evse/state",
]
[[inputs.mqtt_consumer.topic_parsing]]
topic = "warp/+/+"
measurement = "measurement/_/_"
tags = "_/_/field"
[[processors.pivot]]
tag_key = "field"
value_key = "value"
The topic parsing works, but not the pivoting. Any idea why it doesn’t work?