golioth / grafana-websocket-plugin

Apache License 2.0
32 stars 13 forks source link

Connection to host using WS ? #38

Open elausys opened 2 months ago

elausys commented 2 months ago

Hello,

I have a websocket server running on node-red and trying to connect locally a grafana datasource but it does not get any data.

I see the datasource host field shows a example url using secured websocket (WSS) while my node-red instance websocket server is on WS (ws://localhost:1880/ws/data/).

Is the datasource supporting non secured ws connection ?

Thank you in advance for your feedback.

elausys commented 2 months ago

Hello,

I have secured the node-red server to use HTTPS I can now access the websocket using a simple websocket client at (wss://localhost:1880/ws/data/).

However if i set the same host on the grafana datasource, it always says "Data source is working" however no data is received. On the node-red server side, we can see that there is no connection established from the grafana client.

I'm using Grafana v10.4.0 and installed the "golioth-websocket-datasource" directly from Grafana. It says it is the V1.0.2. However this repository is 1.1.0, how can i update the plugin to latest version to see if it fix the issue ?

Thank you in advance !