This is my Telegraf config which does not write the data to InfluxDB Cloud.
[[outputs.influxdb_v2]]
urls = ["https://us-central1-2.gcp.cloud2.influxdata.com"]
token = "$INFLUX_TOKEN"
organization = "myorg"
bucket = "MQTT_sensor_data"
[[inputs.mqtt_consumer]]
servers = ["85857593b7caa3.s1.eu.hivemq.cloud:8883"]
topics = [
"my/test/topic"
]
topic_tag = "topic"
qos = 2
max_undelivered_messages = 100
persistent_session = true
client_id = "influxusername"
username = "influxusername"
password = "password123"
data_format = "influx"
tag_keys = [
"sensors",
"sensor1",
"sensor2",
]
This is my MQTT message from another client to my HiveMQ broker.
mosquitto_pub -h 85857593b7caa3.s1.eu.hivemq.cloud -p 8883 -u "username" -P "mypassword" -t 'my/test/topic' -m 'sensors, sensor1=counter value=0, sensor2=counter2 value=5'
What could be going wrong? And how would I know where to look for errors?