Message publisjed on topic:
Meter_B/Pipe_B/Flow Payload: 39.5
Meter_B/Pipe_B/Direction Payload: 0 or 255
Telegraf config:
topics = [
"Meter_B/Pipe_B/#",
]
[[inputs.mqtt_consumer.topic_parsing]]
data_format = "value"
data_type = "float"
# topic = "+/+/+"
topic = "Meter_B/Pipe_B/+"
measurement = "_/Pipe_B/Flow"
tags = "device_id/pipe_id/_"
fields = "_/_/Flow"
# [[processors.pivot]]
# tag_key = "field"
# value_key = "value"
Its still generates error:
[inputs.mqtt_consumer] Error in plugin: metric parse error: expected tag at 1:5: “39.5”
i tried changed type and format but it doesn’t make effect.
In the future i want change entry “_value” to “flow” but it seems problem is on the beginning of parsing