With the webhook contact point of Grafana alerting I want to trigger a Twilio flow. For this I need to add a ‘To’ and ‘From’ parameter (example in curl can be found below)
If this isn’t enough then you might want to consider filing a feature request:
for feature requests to Grafana OSS we ask the community to make a post here, in GitHub Discussions. It can then get upvoted by fellow users. Devs use this to gauge interest in new features:
I would check and make sure someone hasn’t already started a thread:
Hi! This is not possible at present, but it is something that is being discussed within the Alerting team. We haven’t decided how it should work and so I don’t have a date of when this feature might be available.
Have we made any progress on this feature? do we have any alternate approach which we can use in the meanwhile? - The idea is to Trigger Post Webhook call with certain parameters whenever an alerting situation happens.
Hi! I’m afraid we don’t have an update to share on templating webhooks in either Grafana or Alertmanager. I think the current recommendation is to run a service in between Grafana and the receiving service that can translate the JSON as required.
Infact, after trigger alert, the webhook(public api in mycase) do receive a http request , but after fetching the object, the name and data is null, it was a long string value before:
@georgerobinson Hello! I want to up the problem, cause this is weird behavoiur. You haven’t provided any proper integration with telegram MarkDownV2 considering escaping characters, so i want to send custom webhooks, but have to provide payload with effective data such as chat_id, message etc. Please, add this functionality to webhooks. This is urgent for a lot of developers, who might not text in this thread but go and try to find workarounds: i.e. create an endpoint on their service to send this kind of alerts, but it’s kinda silly having such a good tool as grafana for this. PLEASE make this small change. Just take a look at 4K views, it must be a common issue and it’s been 2 years since this have been posted
Hello folks, I’m afraid I no longer work on the Alerting team at Grafana. I would recommend following here [Feature request] Custom json passed as a webhook alert · Issue #6956 · grafana/grafana · GitHub (and feel free to add a comment explaining your intended use case). This helps the team understand what might be needed as lots of different users will have different intentions for such a feature.
Starting with Grafana 12, webhook contact points support a custom payload, allowing you to define the entire JSON body that gets sent when an alert fires.
In earlier versions, only the title and message fields were customizable.