webhook changes the type of data structures.

19 views
Skip to first unread message

Zhang Zhao

unread,
Jun 3, 2020, 7:00:49 PM6/3/20
to Prometheus Users

Anyone could please explain to me why webhook changes the type of these 3 highlighted data from KV to string??

Attached is an alert received on ServiceNow from AlertManager via webhook. The type of the 3 fields was changed to string.




{"receiver":"prometheus-snow","status":"firing","alerts":[{"status":"firing","labels":{"alertname":"Watchdog","cluster":"espr-aksepme-dev-westus-cluster-01","geo":"us","prometheus":"espr-prometheus-nonprod/prometheus-prometheus-oper-prometheus","region":"westus","severity":"none"},"annotations":{"message":"This is an alert meant to ensure that the entire alerting pipeline is functional.\nThis alert is always firing, therefore it should always be firing in Alertmanager\nand always fire against a receiver. There are integrations with various notification\nmechanisms that send a notification when this alert is not firing. For example the\n\"DeadMansSnitch\" integration in PagerDuty.\n"},"startsAt":"2020-06-02T06:41:40.558Z","endsAt":"0001-01-01T00:00:00Z","generatorURL":"http://prometheus-prometheus-oper-prometheus.espr-prometheus-nonprod:9090/graph?g0.expr=vector%281%29&g0.tab=1","fingerprint":"53b6e733174ba8ac"}],"groupLabels":"","commonLabels":"","commonAnnotations":"","externalURL":"http://prometheus-prometheus-oper-alertmanager.espr-prometheus-nonprod:9093","version":"4","groupKey":"{}:{alertname=\"Watchdog\"}","groupLabels_alertname":"Watchdog","commonLabels_alertname":"Watchdog","commonLabels_cluster":"espr-aksepme-dev-westus-cluster-01","commonLabels_geo":"us","commonLabels_prometheus":"espr-prometheus-nonprod/prometheus-prometheus-oper-prometheus","commonLabels_region":"westus","commonLabels_severity":"none","commonAnnotations_message":"This is an alert meant to ensure that the entire alerting pipeline is functional.\nThis alert is always firing, therefore it should always be firing in Alertmanager\nand always fire against a receiver. There are integrations with various notification\nmechanisms that send a notification when this alert is not firing. For example the\n\"DeadMansSnitch\" integration in PagerDuty.\n"}


Snip20200603_7.png

Zhang

Reply all
Reply to author
Forward
0 new messages