borg-backup-ui icon indicating copy to clipboard operation
borg-backup-ui copied to clipboard

Add optional Prometheus metrics and Grafana dashboard

Open borg-codex-bot opened this issue 2 months ago • 0 comments

Add an optional built-in Prometheus exporter and a matching importable Grafana dashboard.

User impact:

  • Enable or disable metrics in settings (disabled by default).
  • Dedicated read-only bearer token, isolated from application and Homepage credentials.
  • Backup results, last successful backup, duration, sizes and file counts; repository statistics and freshness; restore verification and scheduled tests; active jobs and application version.
  • Cached, read-only collection from existing plugin data. Scrapes must not invoke Borg, mount/probe repositories, modify status files or write to flash.
  • Provide German/English setup help, example Prometheus scrape configuration and a Grafana dashboard with server/job/location/repository filters.
  • Missing evidence remains unknown; stale data is visible. No retrospective import of history into Prometheus.

Implementation preserves the current HTTP service and storage architecture. Prometheus and Grafana remain external services; no extra exporter is required. Add focused security, format, cache and data semantics tests, then publish a verified test-channel candidate for maintainer testing.

Reference: https://grafana.com/grafana/dashboards/14516-borg-backup-status/

Release-note relevance: user-visible feature.

borg-codex-bot avatar Sep 18 '26 09:09 borg-codex-bot