grafana / mqtt-datasource

MQTT Datasource for Grafana allows streaming data from any MQTT broker running either locally or remotely.
Apache License 2.0
168 stars 49 forks source link

Not working #86

Open gibzwein opened 8 months ago

gibzwein commented 8 months ago

Hi there, plugin looks to not working. Connection is OK. Zrzut ekranu 2023-10-21 080206 But in the explore view nothing happens Zrzut ekranu 2023-10-21 080247 When put straight to dashbord looks like working Zrzut ekranu 2023-10-21 080636

Admiraldr commented 7 months ago

I have exactly the same issue. I want to connect to a mosquitto running on another machine in the network. uri is: tcp://192.168.x.y:1883 Username and password are set correctly. Connection test shows: ok. Selected in the Dashboard the MQTT Data Source and entered the Topic.

I even cannot receive values this way into the dashboard. Always: no data. Tried it with numerical and string values. Always the same.

spyder0552 commented 7 months ago

Same, Running an Ubuntu VM. Installed Grafana via the instructions on their site. Went to my connections, searched and found the MQTT pluggin, clicked the install on the top right. I have confirmed that i can see all my MQTT traffic using another app. Just grafana says there is no data.

  1. Install Grafana
  2. Login
  3. Go to Connections.
  4. Add new Connection
  5. Search for MQTT
  6. Click Link in upper right corner to install.
  7. Check for "Build Success" under the Overview tab.
  8. Add new MQTT datasource
  9. specify "tcp://172.25.22.XXX:1883 as address
  10. no credentials (for my install).
  11. click explore data
  12. Enter topic "Advantech/00D0C9E4C8BC" (without the quotes around it).
  13. table on bottom shows 0 series returned

UPDATE - 11/29/23 I kinda have it working.

  1. Make sure your topic is correct. My topic was too vague. Once I used an inspector I could see that the value I wanted to plot was inside an array (json format). So, I had to modify my topic to get down to where the array started.

However, it is buggy. It just does not seem to always want to display the data. I have not figured out what I am clicking yet, but something I am doing suddenly makes it start to display data.

Nocccer commented 5 months ago

Checkout #91