{ "version": "4", "groupKey": <string>, // key identifying the group of alerts (e.g. to deduplicate) "status": "<resolved|firing>", "receiver": <string>, "groupLabels": <object>, "commonLabels": <object>, "commonAnnotations": <object>, "externalURL": <string>, // backlink to the Alertmanager. "alerts": [ { "status": "<resolved|firing>", "labels": <object>, "annotations": <object>, "startsAt": "<rfc3339>", "endsAt": "<rfc3339>", "generatorURL": <string> // identifies the entity that caused the alert }, ... ]}I am trying to integrate the AlertManager to send the alerts to a webhook through a HTTP POST. From https://prometheus.io/docs/alerting/configuration/#%3Cwebhook_config%3E, I see an example of what the JSON payload as shown below:{"version": "4","groupKey": <string>, // key identifying the group of alerts (e.g. to deduplicate)"status": "<resolved|firing>","receiver": <string>,"groupLabels": <object>,"commonLabels": <object>,"commonAnnotations": <object>,"externalURL": <string>, // backlink to the Alertmanager."alerts": [{"status": "<resolved|firing>","labels": <object>,"annotations": <object>,"startsAt": "<rfc3339>","endsAt": "<rfc3339>","generatorURL": <string> // identifies the entity that caused the alert},...]}I have three questions:
- Is there a way for AlertManager to send the payload as urlencoded instead of JSON format?
- How do I modify this JSON payload to include custom key-value pairs?
- Is there an example of the JSON payload that I can look at to understand what are all the different key/value pairs typically included in this alert payload?
--
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/503e09bc-3678-4d82-8ac9-14dc12cc03e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.