Skip to content

Support opt-in JSON payloads for generic alert webhooks - #153

Open
VibeSWE wants to merge 3 commits into
mainfrom
feat/homelab-json-alert-webhooks
Open

VibeSWE wants to merge 3 commits into
mainfrom
feat/homelab-json-alert-webhooks

Conversation

@VibeSWE

@VibeSWE VibeSWE commented Nov 21, 2026 •

Copy link
Copy Markdown

Description

Generic webhooks can opt into JSON through the target API or the dashboard’s Payload format selector. Existing targets default to plain text. The JSON body reports the transition, alert identity, severity, optional service, original series labels, and a readable message.

SQL recovery carries the last breached groups. PromQL uses the individual transition in its persisted outbox, including when one series recovers while another is still firing. Both paths retain outbound policy checks and credential masking. Each SQL target gets its own notification timer so a legacy receiver and a JSON automation can receive the same alert.

Verification

  • 100 alert and target tests passed. The existing microbenchmark was ignored.
  • The dashboard production build and 2,439 frontend unit tests passed. A Chromium test created a JSON webhook and reopened it with the selection preserved.
  • A disposable local-store server running the release binary delivered grouped SQL firing and recovery events to simultaneous plain-text and JSON receivers.
  • The PromQL loopback fixture checked per-series firing and recovery, JSON media type, a synthetic Bearer header, outbox retry after HTTP 503, and suppression after the rule owner lost query permission.

Configuration and payload examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants