mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-27 07:26:51 +00:00
Grafana's default notification body appends every expression node's value and every label, so an alert arrived as `Value: A=0, B=0, C=1` over a five-line `key = value` dump. The refIds mean nothing to a reader and the labels repeat the title. Add templates.yaml and point both Slack receivers and the email receiver at it, so the body is the rule's own description plus its remediation line, and any panel_* annotation renders as a link. Rewrite all 13 descriptions to be status-neutral, since the same annotation is rendered when the alert resolves: a firing-only wording made a resolved notification claim the node had stopped closing ledgers while reporting a healthy rate. The reason to care moves to a new `action` annotation, which the template prints only while firing. Each description now formats its value with printf and states its threshold, rather than emitting a bare float. Also fix the Slack title, which referenced a `rulename` label that no rule sets and so rendered blank; `alertname` is the label Grafana always provides.