You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like Telegraf MQTT Consumer Input Plugin does not actually subscribe to any topic when connecting to ActiveMQ Artemis broker.
I'm using ActiveMQ Artemis as MQTT broker and successfully receiving messages from a producer to a topic (or in case of Artemis, an address with multicast routing). I tested subscribing and receiving messages successfully with a simple Python script using paho-mqtt (see attached gists for script source and Artemis logs) so the broker does work exactly as expected. Subscription queues are created and messages flow correctly.
Now I installed Telegraf and tried to consume the same topic with same QoS, same user etc. but the broker does not even receive the subscription event from Telegraf MQTT Consumer Input Plugin, not to mention any messages. The connection is established successfully and the plugin creates 2 sessions and pings the broker every now and then but it does not actually subscribe to the configured topic.
No I didn't. I actually switched to using a completely different solution to process Artemis queues so I'm sorry but I'm not able to help with this issue.
Seems like Telegraf MQTT Consumer Input Plugin does not actually subscribe to any topic when connecting to ActiveMQ Artemis broker.
I'm using ActiveMQ Artemis as MQTT broker and successfully receiving messages from a producer to a topic (or in case of Artemis, an address with multicast routing). I tested subscribing and receiving messages successfully with a simple Python script using paho-mqtt (see attached gists for script source and Artemis logs) so the broker does work exactly as expected. Subscription queues are created and messages flow correctly.
Now I installed Telegraf and tried to consume the same topic with same QoS, same user etc. but the broker does not even receive the subscription event from Telegraf MQTT Consumer Input Plugin, not to mention any messages. The connection is established successfully and the plugin creates 2 sessions and pings the broker every now and then but it does not actually subscribe to the configured topic.
Relevant telegraf.conf:
System info:
OS: Ubuntu 20.04.3 LTS
Telegraf: 1.19.3-1 from https://repos.influxdata.com/ubuntu focal stable
ActiveMQ Artemis: 2.18.0
Steps to reproduce:
Expected behavior:
Telegraf MQTT Consumer Input Plugin creates a durable subscription on the topic and starts receiving messages
Actual behavior:
Telegraf MQTT Consumer Input Plugin does NOT create any subscriptions and thus does not receive any messages
Additional info:
Python script used to successfully test topic subscription on the target broker
https://gist.github.com/jenrg/e2631f0cc6f4adb2ebec2056276dfca1
ActiveMQ Artemis log from successful subscription by the Python script
https://gist.github.com/jenrg/7877ba9c9d0149345fc7b7985bed5889
Telegraf log output
https://gist.github.com/jenrg/d9722c053ff2aa327116b8a4e573e54f
ActiveMQ Artemis log from Telegraf connection created but no subscriptions
https://gist.github.com/jenrg/df180b761af1c993eaf2391c3c376734
The text was updated successfully, but these errors were encountered: