I have configured the following Influxdb in telegraf.conf:
[[outputs.influxdb]]
## The full HTTP or UDP URL for your InfluxDB instance.
##
## Multiple urls can be specified as part of the same cluster,
## this means that only ONE of the urls will be written to each interval.
# urls = ["udp://127.0.0.1:8089"] # UDP endpoint example
urls = ["https://fqdn"] # required
## The target database for metrics (telegraf will create it if not exists).
database = "simcom7000e_test" # required
## Name of existing retention policy to write to. Empty string writes to
## the default retention policy.
retention_policy = ""
## Write consistency (clusters only), can be: "any", "one", "quorum", "all"
write_consistency = "any"
## Write timeout (for the InfluxDB client), formatted as a string.
## If not provided, will default to 5s. 0s means no timeout (not recommended).
timeout = "5s"
username = "user"
password = "pwd"
## Set the user agent for HTTP POSTs (can be useful for log differentiation)
user_agent = "telegraf-srv-ubn-services-1"
## Set UDP payload size, defaults to InfluxDB UDP Client default (512 bytes)
# udp_payload = 512
## Optional SSL Config
# ssl_ca = "/etc/telegraf/ca.pem"
# ssl_cert = "/etc/telegraf/cert.pem"
# ssl_key = "/etc/telegraf/key.pem"
## Use SSL but skip chain & host verification
insecure_skip_verify = true
namepass = ["*_simcom7000e_test"]
`
And the following MQTT input config in telegraf.conf
[[inputs.mqtt_consumer]]
name_suffix = "_simcom7000e_test"
data_format = "json"
## MQTT broker URLs to be used. The format should be scheme://host:port,
## schema can be tcp, ssl, or ws.
servers = ["ssl://fqdn"]
## MQTT QoS, must be 0, 1, or 2
qos = 0
## Connection timeout for initial connection in seconds
connection_timeout = "30s"
## Topics to subscribe to
topics = [
"simcom7000e1",
]
client_id = "telegraf"
## username and password to connect MQTT server.
username = "user"
password = "pwd"
insecure_skip_verify = true
But for some reason, Telegraf is not pushing the data to Influxdb anymore. In the Telegraf logs I can see, that Telegraf connects to the MQTT broker, but no Data is sent towards Influxdb. The MQTT message looks like this:
{"temperature":25,"airpressure":1010,"humidity":77
The strange thing is, that it was working approximately one month ago. Maybe a bug that found to one of the latest telegraf updates?
I have configured the following Influxdb in telegraf.conf:
And the following MQTT input config in telegraf.conf
But for some reason, Telegraf is not pushing the data to Influxdb anymore. In the Telegraf logs I can see, that Telegraf connects to the MQTT broker, but no Data is sent towards Influxdb. The MQTT message looks like this:
{"temperature":25,"airpressure":1010,"humidity":77The strange thing is, that it was working approximately one month ago. Maybe a bug that found to one of the latest telegraf updates?