[prometheus-users] Re: Prometheus alert tagging issue - multiple servers

2024-07-27 Thread 'Brian Candler' via Prometheus Users
Q1 - yes, each route can have separate group_by section, as shown in the documentation: https://prometheus.io/docs/alerting/latest/configuration/#route-related-settings Note that if you do *group_by: [instance]* then you'll get one Opsgenie alert group for an instance, even if there are multiple

[prometheus-users] Re: Prometheus alert tagging issue - multiple servers

2024-07-27 Thread mohan garden
I plan to disable the grouping only for opsgenie routes and for specific set of alerts. Here is the example of current alert manager configuration - Example - route: group_wait: 5m group_interval: 5m repeat_interval: 7h receiver: admin routes: - match_re: alertname: ".* Type1

[prometheus-users] Re: Prometheus alert tagging issue - multiple servers

2024-07-27 Thread mohan garden
Hi Brian, Thank you for the suggestion, I was able to setup a flask application to monitor the data sent by alert manager for opsgenie using api_url end point. I had to create 3 end points 1. POST for - / 2. PUT for /v2/alerts/message 3. PUT for /v2/alerts/description *POST:* {'alias': '71c5c