############################################################################### # INPUT PLUGINS # ############################################################################### [[inputs.mqtt_consumer]] ## MQTT broker URLs to be used. The format should be scheme://host:port, ## schema can be tcp, ssl, or ws. servers = ["tcp://127.0.0.1:1883"] ## Topics that will be subscribed to. topics = [ "esp32/sensors/#" ] ## Username and password to connect MQTT server. username = "xxx" password = "xxx" ## Data format to consume. ## Each data format has its own unique set of configuration options, read ## more about them here: ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md data_format = "influx"