Auditing the homelab with a pod and Prometheus instead of cron
Six checks published as metrics; overall_pass=1.
I want one place that tells me whether the platform is in the state I think it’s in.
My first thought was a scheduled CI job. I chose a small auditor pod that Prometheus scrapes instead, because:
- The CI runner is locked out of the cluster API, Infisical, Proxmox and the NAS on purpose. An audit job would need all of those.
- An hourly job is about 8,760 runs a year cluttering the Actions page, and it stops if Gitea or the runner is down.
- Prometheus already stores numbers over time and can alert on them.
The auditor runs on the Dell cluster, with read-only access to the x1 cluster. It checks six things:
- All 14 Gitea repos mirror to GitHub with no sync errors.
- All 89 secrets are covered by the cloud sync.
- All 5 InfisicalSecret resources are Ready.
- All 13 Argo CD Applications are Synced and Healthy.
- Nightly backups are under 30 hours old, and test restores match table counts for all 5 databases.
- All 5 Postgres StatefulSets are Ready.
Each check is a metric. Detail goes to the pod’s JSON logs. Today overall_pass is 1.