AlertManager + Pagerduty + Grafana?

45 views
Skip to first unread message

Kevin Z

unread,
Jul 11, 2023, 3:46:22 AM7/11/23
to Prometheus Users
We have integrated alertmanager with pagerduty to generate alerts. In the pagerduty alert, there is a field called "Source:" which links to the prometheus query that triggered the alert.

Something like this:
Source: http%3A%2F%2Fprometheus-k8s-0%3A9090%2Fgraph%3Fg0.expr%3D100%20-%20(sum(rate(errors%5B30m%5D)%20or%20on%20()%20vector(0))%20%2F%20sum(rate(errors%5B30m%5D))%20*%20100)%20%3C%2099.9%26g0.tab%3D1

Ideally, we have a link to our grafana UI for someone to view the event query, instead of having to port-forward the prometheus pod.

Is it possible to parse the query that is generated in this Source URL, and paste it in another field to link to the grafana explore UI with this query prepopulated?
Reply all
Reply to author
Forward
0 new messages