Skip to content

Monitor SQLite backups with Prometheus and Grafana

Every Litebackup server charts its own load and exports the same measures as Prometheus metrics, so your backups show up in the dashboards and alerts you already run.

The Monitoring page

Syncs, uploads, requests, errors, bucket and replica lag, and host load by the minute, over the last hour, day, week, or 30 days.

The Litebackup Monitoring page with a day of charts for syncs, uploads, requests, lag, and host load. The Litebackup Monitoring page with a day of charts for syncs, uploads, requests, lag, and host load.
The Monitoring page over a busy day.

What the server measures

  • Throughput

    Syncs per minute, bytes received from your machines, and bytes and objects written to your bucket.

  • Requests and latency

    API requests by route and status, latency percentiles, and requests the server rate-limited with HTTP 429.

  • Bucket backlog

    Versions waiting for the bucket, how long the oldest has waited, and databases past their archive delay.

  • Replicas

    How far the slowest replica is behind the database it reads.

  • Disk

    Free space on the server against the reserve that pauses syncs before the disk fills.

  • Host load

    CPU, memory, and pressure stalls of the server's cgroup or machine.

The same week in Grafana

Import the Litebackup dashboard and pick your Prometheus data source. It charts one server or all of them.

A Grafana dashboard with Litebackup's database count, syncs, throughput, requests by route, and request latency. A Grafana dashboard with Litebackup's database count, syncs, throughput, requests by route, and request latency.
The Litebackup dashboard in Grafana over a busy day.

Scrape the metrics with Prometheus

The server answers /metrics on its health address, 127.0.0.1:8099 by default. Bind it to a private address to scrape it from another host.

scrape_configs:
  - job_name: litebackup
    scrape_interval: 30s
    static_configs:
      - targets: ["10.0.0.5:8099"]

Add Litebackup to your monitoring

  1. Expose the metrics

    Set --health-address, or LITEBACKUP_HEALTH_ADDRESS, to an address on your private network. The container image listens on port 8099.

  2. Scrape them

    Add a Prometheus job for the server, every 30 seconds or so.

  3. Import the dashboard

    In Grafana, import the Litebackup dashboard and choose your Prometheus data source.

  4. Add alerts

    Load the alert rules for backups that fall behind, failed bucket checks, a filling disk, and a license that ends soon.

Disk space at a glance

The Disk page charts free space against the reserve, so you see a filling disk days before syncs pause.

The Disk page showing used space, free space, and the reserve on a meter The Disk page showing used space, free space, and the reserve on a meter

Questions

Do I need Prometheus to monitor Litebackup?

No. Every server has the Monitoring page and alert thresholds in its console. Prometheus and Grafana are for teams that keep every service's metrics in one place.

Is the metrics endpoint authenticated?

No. It answers over plain HTTP without authentication, so keep it on a private network. It shows load and counts, never database contents.

Does monitoring work behind a firewall?

Yes. The metrics come from your server, and nothing reaches litebackup.com, so Prometheus and Grafana on your network see everything.

Which alerts matter most?

A version waiting more than an hour for the bucket, failing bucket checks, and free disk close to the reserve. Each means a backup could fall behind.

Put SQLite in your cloud today

Run the server on a Linux machine, add a bucket you own, and back up a database with one command.

Watch your backups like any other service

A backup you cannot see is a backup you have to trust. Litebackup shows what every server does with your SQLite databases, from the first sync on a machine to the object in your bucket.

The console's Monitoring page charts syncs, uploads, requests, lag, and host load by the minute. Thresholds on the Alerts page fire alerts when a measure stays past its limit. For teams that already run Prometheus and Grafana, the server exports the same measures at /metrics.

What to watch

  • Versions waiting for the bucket. Your machines sync to the server first, and the server archives each version to your bucket after its archive delay. litebackup_archive_oldest_unarchived_seconds says how long the oldest version has waited.
  • Bucket checks. The server checks that every object it expects is in the bucket. litebackup_bucket_check_failures counts failed checks in a row.
  • Disk. Syncs pause before the server's disk fills. Compare litebackup_disk_free_bytes with litebackup_disk_reserve_bytes.
  • Load. litebackup_rate_limited_requests_total counts HTTP 429 responses with error code rate_limited. Clients wait and try again, so a few at a peak are normal.

See every metric, the Grafana dashboard, and alert integrations and Prometheus rules.