feat(metrics): add Prometheus /metrics endpoint #5

Merged
lerko merged 2 commits from feat/prometheus-metrics into feat/next 2026-05-15 15:35:03 +00:00
Owner

Summary

  • Zero-dependency Prometheus text exposition format on /metrics
  • Exposes: monitor up/down, latency, status code, check timestamps, pause state, SSL cert expiry, check counters
  • All from in-memory state, no DB hit
  • Labels: id, name, type per monitor

Test plan

  • Curl /metrics and verify Prometheus text format
  • Confirm Prometheus/Grafana can scrape endpoint
  • go test ./internal/metrics/
## Summary - Zero-dependency Prometheus text exposition format on `/metrics` - Exposes: monitor up/down, latency, status code, check timestamps, pause state, SSL cert expiry, check counters - All from in-memory state, no DB hit - Labels: `id`, `name`, `type` per monitor ## Test plan - [ ] Curl `/metrics` and verify Prometheus text format - [ ] Confirm Prometheus/Grafana can scrape endpoint - [ ] `go test ./internal/metrics/`
lerko added 2 commits 2026-05-15 15:34:37 +00:00
Expand alert provider count from 5 to 9. All new providers use
the shared HTTPProvider with closure-based payload functions.
Includes TUI form support and tests for each provider.
Zero-dependency Prometheus text exposition format. Exposes monitor
up/down, latency, status code, check timestamps, pause state,
SSL cert expiry, and check counters — all from in-memory state.
lerko merged commit 079270274f into feat/next 2026-05-15 15:35:03 +00:00
lerko deleted branch feat/prometheus-metrics 2026-05-15 15:35:05 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lerkolabs/uptop#5