Grafana
Grafana can visualize data stored in SereneDB using the built-in PostgreSQL data source.
Setup
- Install and start Grafana following the official guide
- Navigate to Connections > Data sources > Add data source
- Select PostgreSQL
- Enter the connection details:
| Field | Value |
|---|---|
| Host | localhost:7890 |
| Database | postgres |
| User | postgres |
| Password | leave empty for a local server; otherwise the role password |
| TLS/SSL Mode | disable |
- Click Save & test
Create a dashboard
- Create a new dashboard and add a panel
- Select your SereneDB data source
- Write a raw SQL query — for example:
SQL
SELECT published_at AS time, viewsFROM articlesORDER BY published_at;time | views ------------+------- 2025-01-15 | 4200 2025-03-01 | 5100
- Choose a visualization type (Time series, Bar chart, Table, etc.)