From 37f29154d1b7b908ca517b401a81adc22beb7206 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 21 Sep 2026 20:57:41 +0800 Subject: [PATCH] docs(backup): record what the metrics actually expose rest-server only ships the go/promhttp defaults, so repository growth is charted from node-exporter's filesystem metrics instead. --- BACKUP.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BACKUP.md b/BACKUP.md index d9879cac..fbe490bf 100644 --- a/BACKUP.md +++ b/BACKUP.md @@ -130,6 +130,10 @@ Restoring a btrbk snapshot (offline; stop writers first): - `restic-rest-server`'s log must not print `Invalid htpasswd entry`: that means the client's REST password and the server's htpasswd disagree, and the credentials pair needs rebuilding from one password. +- Metrics: the rest-server exposes the Go/promhttp defaults on loopback (scraped as the + `restic-rest-server` job; `/metrics` is blocked on the public vhost). Repository growth is charted + from `node-exporter`'s filesystem metrics for youko's `/data` mount instead — rest-server itself + has no per-repository size metrics. - Failures are not silent: a failed `restic-backups-homelab` starts `restic-backup-notify`, which posts to alertmanager and, above info severity, on to telegram. alertmanager clears it after `resolve_timeout`. @@ -142,7 +146,6 @@ Restoring a btrbk snapshot (offline; stop writers first): The target must not live in the homelab, and should be immutable or versioned (object lock) — that is the layer which survives a compromised host. - **`restic check` timer**: periodic integrity verification, on the host that holds the password. -- **Metrics**: run rest-server with `--prometheus` and chart repository growth in Grafana. ## Components