How can I template my alertmanager webhook_configs

2,635 views
Skip to first unread message

am...@scylladb.com

unread,
Sep 16, 2018, 11:26:44 AM9/16/18
to Prometheus Users
Hi List,

I'm integrating alertmanager with an external system that accepts json posts for new tickets.

I saw that the reports from other sources can be templated and customized,

I would like to send the following json:
{
"ticket": {
    "subject": "${alert_name}",
     "comment": { "body": "${alert_description}" }}
}

How Can I configure it?

Simon Pasquier

unread,
Sep 17, 2018, 5:05:35 PM9/17/18
to am...@scylladb.com, Prometheus Users
It isn't possible to customize the payload sent by the webhook notifier.
The capability has already been discussed but for now, it has been rejected:

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/a67089c1-ac86-49d5-9349-3d27cc3a6e67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Meier

unread,
Oct 7, 2018, 2:19:52 AM10/7/18
to Prometheus Users
For this puprose i made myself a small go daemon which receives alerts from alertmanager applys a go template and then sends them off to another webhook. You can find an example here: https://github.com/TheMeier/gawa
Reply all
Reply to author
Forward
0 new messages