mirror of
https://github.com/benbjohnson/litestream.git
synced 2026-01-24 20:56:48 +00:00
Litestream Grafana Dashboard
This directory contains a Grafana dashboard for monitoring Litestream metrics.
Prerequisites
-
Litestream configured with metrics endpoint enabled in
litestream.yml:addr: ":9090" -
Prometheus configured to scrape Litestream metrics:
scrape_configs: - job_name: 'litestream' static_configs: - targets: ['localhost:9090'] -
Grafana with Prometheus data source configured
Installation
- Open Grafana and navigate to Dashboards → Import
- Upload the
litestream-dashboard.jsonfile or paste its contents - Select your Prometheus data source
- Click Import
Metrics Included
The dashboard monitors the following key metrics:
- Database & WAL Size: Current size of the database and Write-Ahead Log
- Total WAL Bytes Written: Cumulative bytes written to shadow WAL
- Sync Operations: Rate of sync operations and any sync errors
- Sync Duration: Time spent syncing shadow WAL
- Checkpoint Operations: Rate of checkpoint operations by mode
- Checkpoint Errors: Any checkpoint errors that occur
- Transaction ID: Current transaction ID for each database
- Replica Operations: Operations performed by replica type (GET/PUT)
- Replica Throughput: Bytes transferred by replica operations
Configuration
The dashboard uses template variables:
datasource: Select your Prometheus data sourcejob: Select the Prometheus job name (defaults to "litestream")
Support
For issues or improvements to this dashboard, please open an issue at: https://github.com/benbjohnson/litestream/issues