Hi, I’m using grafana 8.5.2, self hosted, new alerting system, wanting to setup a webhook to send SMS via my provider (twilio) …
Alerting → Contact Points → New → Webook
… allows me to add the URL, METHOD, user, pass … all ok.
BUT, where is it possible to configure any additional JSON body data? twilio provides for setting the TO and FROM and BODY via JSON.
The docs (Contact points | Grafana documentation ) list an example JSON body, can I configure to send some/all of that?
It seems like something that should be very obvious, but I just can’t seem to find it? I presume as soon as I hit “send”, I’ll find the answer
Is this a brand new instance? Are you using the legacy alerting system?
check out the new message templating docs:
Did you ever get to the bottom of this one?
Im actually testing it now - (With legacy alerting)
but according to the documentation - while you can’t modify the json body, you can add tags to it
Notification policies
So i want to use tags to specify the hook properties like
tagname: tagvalue
trigger: ssm
command: sudo service blabla restart
Have you figured it out how to do it? I need to send labels on the JSON but I can’t find how to do it
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 — full control over the JSON structure wasn’t available.
Here are a few templating examples that show how to include labels in the payload.