Skip to content

Comments

feat: webhook template#4215

Closed
baerwang wants to merge 1 commit intoprometheus:mainfrom
baerwang:feat/webhook-template
Closed

feat: webhook template#4215
baerwang wants to merge 1 commit intoprometheus:mainfrom
baerwang:feat/webhook-template

Conversation

@baerwang
Copy link

No description provided.

@baerwang baerwang force-pushed the feat/webhook-template branch from a6d625c to ccb5f43 Compare January 21, 2025 09:11
@grobinson-grafana
Copy link
Collaborator

I appreciate this a popular request, but I am reluctant to support templating of JSON in Alertmanager. The main reason for this is that usability is very poor, and writing correct JSON in templating languages is very difficult once you start using conditionals and loops (i.e. trailing commas). I raised the same concerns on #3799 (comment). I'll leave it up to the other maintainers to make a decision on whether this is something we want in Alertmanager.

@Bezzzub
Copy link

Bezzzub commented Apr 11, 2025

We really need that feature. Give approve pls :)

@dmitryBLN
Copy link

The ability to independently generate a payload for webhooks is a necessary feature, and without it, using webhooks in alertmanager looks excessively curtailed compared to other integrations.

@TheMeier
Copy link
Contributor

related #4243

@Amejonah1200
Copy link

The reason to wanting that feature would be to forward alerts to another alertmanager.

Instead of using go templating, why no use something like gojq instead?

@kunlun122
Copy link

We also need this feature too.

@TheMeier
Copy link
Contributor

TheMeier commented Feb 9, 2026

Even if templating the webhook payload would be accepted, I think it should be done in the existing webhook notifier and not in a new one

@TheMeier TheMeier closed this Feb 9, 2026
@TheMeier TheMeier reopened this Feb 9, 2026
Copy link
Contributor

@SoloJacobs SoloJacobs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

thanks for this contribution. As already pointed out, we should update the existing webhook receiver. We are trying to implement this here: #5011

In case you have any use cases and specific requirements, feel free to comment on the PR.

Kind regards

@SoloJacobs SoloJacobs closed this Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants