I’m running zigbee2mqtt, mosquitto, telegraf and influxdb in docker containers, and have configured telegraf inputs.mqtt_consumer to receive JSON format messages from some topics in mosquitto and write them to influxdb. I’m using Grafana to view the resulting data (I hope it’s not heretical to mention anything other than Chronograf here… ).
One of the topics contains messages such as:
Telegraf drops the boolean field and just stores
voltage to influxdb.
Is there some way I could configure Telegraf to convert the boolean field to an int (1 for true, 0 for false) so that I can chart these values in Grafana?
I’ve tried to do it with processors.converter, processors.regex and processors.enum, none of which had any effect.