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

can't display last data if topic not refreshed #99

Open rickou opened 1 month ago

rickou commented 1 month ago

hello,

i spent lots of time using this pluggin without success.

i have configured Grafana behind a proxy server, all seems to work fine. i have added the mqtt plugin and connected it to my MQTT server. (connection ok)

i added 3 panels with each 1 topic but when i load the dashboard, the value are displayed randomly.. sometimes, only 1 value, sometimes, 2 values, most of the time, all 3 panels display "no data".

if let google chrome opened on the dashboard and restart grafana-server, the 3 values instantly refresh with values ! that seems to confirm the proxy server is working fine.

note these 3 topics are only refreshed once per day.

another thing to notice, if i use the "explore" feature and set 1 topic, i get values, but only when new mqtt value... (but graph display only 1st point)

i also checked the log files, but there is no error shown

it is like mqtt plugin do not always send the latest value before streaming new one..