No description
  • TypeScript 64.5%
  • Go 24.6%
  • JavaScript 6.6%
  • Dockerfile 3%
  • Makefile 0.8%
  • Other 0.5%
Find a file
2025-12-13 01:00:32 +01:00
.config feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
.github/workflows feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
pkg feat: improve WebSocket data handling and add query parameter hashing 2025-12-13 01:00:32 +01:00
provisioning feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
src feat: improve WebSocket data handling and add query parameter hashing 2025-12-13 01:00:32 +01:00
.cprc.json feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
.gitignore feat: add Makefile to execute plugin validation locally 2022-01-19 17:07:20 -03:00
.nvmrc feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
.prettierrc.js feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
CHANGELOG.md Switch to the Grafana "standard" key name 2023-03-21 16:33:29 +01:00
CODE_OF_CONDUCT.md feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
CONTRIBUTING.md feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
docker-compose.yaml feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
eslint.config.mjs feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
go.mod feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
go.sum feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
jest-setup.js feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
jest.config.js feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
LICENSE feat: initial commit for release v1.0.0-alpha 2022-01-13 15:48:52 -04:00
Magefile.go feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
Makefile feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
package-lock.json feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
package.json feat: improve WebSocket data handling and add query parameter hashing 2025-12-13 01:00:32 +01:00
README.md feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
tsconfig.json feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00
webpack.config.ts feat: migrate from @grafana/toolbox to @grafana/create-plugin 2025-12-12 21:25:40 +01:00

WebSocket Data Source for Grafana

A WebSocket data source plugin for realtime data updates in Grafana Dashboards.

Plugin Purpose

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.

How it works

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.

Using the WebSocket Data Source

Here are the steps to configure and use the WebSocket Data Source Plugin in Grafana.

Configure Data Source

  1. Add the WebSocket data source plugin in Grafana

    • Click the gear icon on the left sidebar and choose "data sources"
    • Click "Add data source"
    • Scroll to the bottom and chose "WebSocket API" in the "Others" category.
  2. Configure WebSocket endpoint information Grafana Websockets Configuration

    • WebSocket Host (use this format): wss://your-host/some/prefix-path
    • Add Query Parameters and Custom Headers if necessary (consult your WebSocket API data source). This example shows the use of an API key.
  3. Add a panel to the Grafana Dashboard to begin seeing data

    • Click + in the left sidebar. Choose "Dashboard" --> "Add a new panel"
    • Select WebSocket API as Data Source in the select drop-down
    • In the bottom left, set the "Fields" tab to $
    • Click the "Path" tab and set the path (if necessary) of the websocket endpoint that you want to connect
    • Above the panel, click the "Table view" toggle at the top of the window
    • Any data coming from the WebSocket Endpoint will be shown as JSON in the panel

    Graphana showing stream json packets

Customizing Your Data View

Once you have confirmed that you are receiving realtime data, it can be visualized:

  1. Make sure that Table View is turned off and choose any kind of compatible graphic from the upper right "Visualizations" list.

  2. Choose "Last 5 minutes" from the time selection window in the upper right corner of the graph.

    Graphana WebSockets Graph