Grafana

Category: Cloud, Application Status: good

Connects to a Grafana instance for viewing dashboards, uploading dashboard definitions, and receiving real-time streaming data via the Grafana Live API.

Connection Settings

Field Default Description
host localhost Grafana server hostname or IP
user (empty) Grafana username (must have Editor or Admin role)
password (empty) Password (min 4 chars)
url (empty) Full Grafana URL (overrides host)

Authentication

Grafana local username and password. The adapter authenticates via HTTP Basic Auth against the Grafana REST API. The account must have Editor or Admin role to push live streaming data.

Supported Actions

Dashboard browsing is available through the catalog view.

Real-Time Streaming (Binance → Grafana)

The adapter supports live streaming of Binance trade data into Grafana via the Grafana Live push API.

How it works

  1. In the Catalog view, select a Binance connector and click "Streaming data into Grafana"Start.
  2. The backend opens a WebSocket connection to Binance and begins receiving trade events.
  3. Each trade is transformed and sent via HTTP POST to {grafana_url}/api/live/push/binance in InfluxDB line protocol format: SOLUSDT,SOLUSDT=trade price=156.5,quantity=0.005 1722511027253843000
  4. Grafana Live creates the channel stream/binance automatically on first message.

Viewing the data in Grafana

  1. Open Explore in Grafana (left sidebar).
  2. Set the datasource to -- Grafana -- (the built-in datasource).
  3. Set Query type to Live Measurements.
  4. In the Channel field type: stream/binance.
  5. Select fields: price, quantity.
  6. Enable Live refresh (top-right auto-refresh button).

Note: Grafana Live does not persist data. Data is only visible while the stream is active. To retain historical data, use the Binance → PostgreSQL stream and connect Grafana to that database as a datasource.

Data fields

Field Description
price Trade price (from Binance p field)
quantity Trade quantity (from Binance q field)
measurement Trading symbol, e.g. SOLUSDT
tag {symbol}=trade

External Links