Prometheus /metrics endpoint & observability #15

Open
opened 2026-07-07 16:52:23 +00:00 by claude-bot · 0 comments
Contributor

Goal

Expose operational metrics so Iris can be monitored (and alerted on) in a homelab Prometheus/Grafana stack.

Why it's valuable

Iris is a set-and-forget scheduler; when a nightly push silently fails, the user wants an alert, not to notice dark lights. v1 has structured JSON logging and a schedule_log, but no scrape target.

Sketch

  • Add prometheus-client, expose GET /metrics (env-gated).
  • Metrics: push success/failure counters, WLED connection up/down gauge, scheduler job run durations, AI request counts vs. cap, last-successful-push timestamp.
  • Optional: a shipped Grafana dashboard JSON.

Acceptance criteria

  • /metrics exposes counters/gauges for pushes, scheduler jobs, WLED connectivity
  • Endpoint env-gated, off by default
  • Documented scrape config

Proposed enhancement (not in the original spec).

## Goal Expose operational metrics so Iris can be monitored (and alerted on) in a homelab Prometheus/Grafana stack. ## Why it's valuable Iris is a set-and-forget scheduler; when a nightly push silently fails, the user wants an alert, not to notice dark lights. v1 has structured JSON logging and a `schedule_log`, but no scrape target. ## Sketch - Add `prometheus-client`, expose `GET /metrics` (env-gated). - Metrics: push success/failure counters, WLED connection up/down gauge, scheduler job run durations, AI request counts vs. cap, last-successful-push timestamp. - Optional: a shipped Grafana dashboard JSON. ## Acceptance criteria - [ ] `/metrics` exposes counters/gauges for pushes, scheduler jobs, WLED connectivity - [ ] Endpoint env-gated, off by default - [ ] Documented scrape config Proposed enhancement (not in the original spec).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rbrooks/Iris-WLED#15
No description provided.