summaryrefslogtreecommitdiff
path: root/internal/daemon/metrics.go
AgeCommit message (Collapse)Author
2026-04-16Release 0.5.1: auto-unexclude, merge excluded_host into auth DB0.5.1Paul Buetow
- /metrics: auto-remove exclusion when records mtime > excluded_at so hosts that resume uploading unexclude themselves on next scrape - Consolidate excluded_host table into the auth DB (goprecords-auth.db) instead of a separate file — removes -db daemon flag and GOPRECORDS_DB env - README: add host exclusion section with kubectl exec examples Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16Add /metrics Prometheus endpoint to daemon modePaul Buetow
Exposes a gauge per host tracking the Unix timestamp of the last records file update. Excluded hosts (from the excluded_host table) are labeled excluded="true" so alerting rules can filter them out. Uses manual Prometheus text format to avoid adding a new dependency. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>