influxdata / telegraf

Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.
https://influxdata.com/telegraf
MIT License
14.59k stars 5.56k forks source link

Parse Error between inputs.mqtt_consumer and outputs.influxdb #4463

Closed VictorRaim closed 6 years ago

VictorRaim commented 6 years ago

Relevant telegraf.conf:

[[inputs.mqtt_consumer]] servers = ["tcp://172.16.3.17:1883"] qos = 0

topics = [ "test/#", "dev/#", ] persistent_session = false client_id = "Telegraf" username = "Telegraf" password = "azerty" data_format = "influx"

System info:

Docker version 18.03.1-ce Telegraf:latest public image Solace-pubsub-standard 8.11.0.1029 Solace SDKPerf

Steps to reproduce:

  1. ...SDKPerf has the MQTT publisher
  2. ...Solace has the broker
  3. ...Telegraf has subscriber to write Inputs in InfluxDB

Expected behavior:

  1. ...SDKPerf has the MQTT publisher
  2. ...Solace has the broker
  3. ...Telegraf has subscriber to write Inputs in InfluxDB

Actual behavior:

Get this error log in telegraf for every MQTT message that telegraf is receiving :

2018-07-24T18:23:14Z E! Error in plugin [inputs.mqtt_consumer]: E! MQTT Parse Error message: :0000000AA error: metric parse error: expected field at offset 10: ":0000000AA" 2018-07-24T18:23:14Z E! Error in plugin [inputs.mqtt_consumer]: E! MQTT Parse Error message: :0000000AA error: metric parse error: expected field at offset 10: ":0000000AA" 2018-07-24T18:23:14Z E! Error in plugin [inputs.mqtt_consumer]: E! MQTT Parse Error message: :0000000AA error: metric parse error: expected field at offset 10: ":0000000AA"

Additional info:

Solace-pubsub-standard 8.11.0.1029 is running in standalone

My docker-compose.yml influxdb: image: influxdb:latest container_name: influxdb ports:

telegraf: image: telegraf:latest container_name: telegraf links:

grafana: image: grafana/grafana:latest container_name: grafana user: "104" ports:

glinton commented 6 years ago

Can you paste the returned/gathered metrics (that telegraf should be parsing)? thanks

danielnelson commented 6 years ago

Closing since no activity.