diff --git a/telegraf/telegraf.conf b/telegraf/telegraf.conf index 5a0ead6..ea62d54 100644 --- a/telegraf/telegraf.conf +++ b/telegraf/telegraf.conf @@ -54,6 +54,19 @@ data_format = "json" name_override = "balena-sense" +[[inputs.mqtt_consumer]] + servers = [ + "tcp://mqtt:1883" + ] + + topics = [ + "sensors" + ] + + connection_timeout = "30s" + data_format = "json" + name_override = "balena-sense" + [[processors.converter]] [processors.converter.fields] integer = ["air_quality_score_accuracy"]