I have a MQTT broker running, which provides information about my electrical power consumption.
telegraf is configured as follows:
servers = [“emonpi.local:1883”]
qos = 0
topics = [
client_id = "influxdb"
username = "user"
password = "pass"
data_format = "value"
data_type = “float”
When I start telegraf from the command line, there is no error message, but
MQTT Client Connected
Looks good to me
But influx CLI looks strange:
influx use telegraf show field keys
Besides mqtt telegraf provide the default inpus such as CPI and so on.
I’m able to visualize them with grafana, but
for all mqtt data grafana plots are empty.
Nevertheless, it seems that some inputs are present.
I can define a filter within grafan with “where”, which shows as “topic” my defines topics.
Is there a special trick for MQTT?
Do I need to define field keys somehow?