Alerts from templates, and every alert as a sentence #45

Merged
jcoffey-dev merged 1 commits from feature/alert-templates into main 2026-09-28 22:01:41 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev db8b0b1d26 Alerts from templates, and every alert as a sentence
ci / build (pull_request) Successful in 1m59s
ci / publish (pull_request) Skipped
Monitoring › Alerts needed a metrics expression to do anything. It now
opens with each alert in words ("When more than 500 messages are waiting
to be delivered, email [email protected].") and five templates: pick one,
set the number if it has one, say who to email, done.

- The queue is backing up (queue.count, a gauge: re-arms when it
  drains).
- Memory is running high (server.memory in MB, a gauge).
- Certificate renewal failed, the data store reported an error, and
  publishing DNS records failed: counters, which are totals since the
  server started, so each fires the first time and again only after a
  restart. The page says so.

No template watches a rate: counters in a condition are totals since
start, so "failures per hour" can't be written honestly. Templates are
recognised again on the page ("In use"), and an empty page says that
nothing will tell you when something goes wrong.
2026-09-28 14:55:55 -07:00