Grafana websocket plugin
APACHE-2.0 License
A WebSocket data source plugin for realtime data updates in Grafana Dashboards.
This plugin allows you to connect a WebSocket endpoint as a Data Source for your Grafana dashboard. Unlike REST APIs, WebSockets automatically update as soon as new data is available from the source, without having to periodically fetch data from it.
When a WebSocket endpoint is added as a data source in Grafana, the plugin will open the WebSocket connection with the source API and keep it open. When there is new data, the WebSocket endpoint will send it directly to the plugin through the open WebSocket connection and your dashboard will be updated automatically.
Here are the steps to configure and use the WebSocket Data Source Plugin in Grafana.
Add the WebSocket data source plugin in Grafana
Configure WebSocket endpoint information
wss://your-host/some/prefix-path
Add a panel to the Grafana Dashboard to begin seeing data
+
in the left sidebar. Choose "Dashboard" --> "Add a new panel"WebSocket API
as Data Source in the select drop-down$
Once you have confirmed that you are receiving realtime data, it can be visualized:
Make sure that Table View is turned off and choose any kind of compatible graphic from the upper right "Visualizations" list.
Choose "Last 5 minutes" from the time selection window in the upper right corner of the graph.