-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQTT connected, not pushing data to influxdb #4580
Comments
Any chance the metrics are being removed by this?
The way I usually test this is by enabling a
|
@danielnelson Why would the namepass remove the metrics? I confugred |
I just tested without namesuffix and now it's working, so it seems to be some kind of issue with the namesuffix. Although this was working once. |
Namepass would remove the metric if the name didn't match, we can use the file output to see what the actual name is. I'm not sure if Telegraf can write to the |
I still have this issue, as soon as I have two different mqtt.consumer instances with different name_suffix it stops working. If I put all topics in one mqtt.consumer instance it's working fine, but I would like to have some topics to be pushed to a specific db. |
That seems like a helpful observation, have you seen any of the symptoms described in #4594? |
@danielnelson I need to have a look on the logs. But In general, twoninstances of input.mqtt should be supported right? |
Yes, this should be supported. |
Run into a similar problem with v1.8.0, rolling back to v1.7.4 seems to resolve the my issue. I also have two inputs.mqtt_consumer configs. The json set seems to go offline pretty quickly. Let me know if there is anything I can either test or look into for more useful info. |
Applying the following patch on the current master See #4580 |
Oops. I meant #4594 where the above patch is referenced. |
Can you test if this change helps: #4846 (comment) |
Still have the same problem with v1.8.1 on Debian, rolled back to v1.7.4 again. I am wondering if it might be a malformed response where JSON is expected? |
@LeeNX You can try one of these builds or wait for 1.8.2 later this week which will include the fix: #4846 (comment) |
Thanks @darox This currently runs my WeatherStation, so I need time to monitor and rollback, if it does not work, so I only get to testing this weekend, unless my time machine project finally starts working! |
I am also facing same issue, telegraf unable to consumer messages from MQTT servers = ["tcp://localhost:1883"] [[outputs.influxdb]] urls = ["http://127.0.0.1:8086"] [[outputs.file]] ##################### OUTPUT ################################## Could anyone please suggest me what is the issue here? |
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":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?
The text was updated successfully, but these errors were encountered: