Add first-class handling for AlertManager webhook types with links from annotations #635
Labels
T-Enhancement
New features, changes in functionality, performance boosts, user-facing improvements.
We're using the following JS transformation for creating Generic Webhooks for Alertmanager alerting to Matrix rooms (and I'm not entirely sure where we got it from at the moment )
This works well enough, but it gets complicated now that we're exploring appending further context URLs (grafana links, ArgoCD links etc) inside the alert's
annotations
field like so:At first I tried stuffing the URL into the description but the Javascript hook we've ended up with didn't seem to parse it correctly into a link (whether I used markdown or html, could be pebcak issue), but it would be cool to have the ability to specify an AlertManager webhook without a transform and have a map of
annotation
fields and link labels that gets built into a list of links in the issue, like this:Which we've clumsily hacked together with this transform:
This seems overkill, and won't scale for us, especially since this is a manual configuration step and can't be pre-provisioned / managed via IaC as far as I can tell.
Would it be possible to create a class of webhook aside from
Generic Webhook
that could handle Alertmanager hooks with it's own configuration to escape some of this transform stuff?The text was updated successfully, but these errors were encountered: