Hey Team,
I am trying to do Prometheus Alert manager integration with Opsgenie and have defined responders as well, but mention responders are not getting any alerts instead it get redirected to Team whose Integration API key is used. For testing purposes, I tried the below API to create an alert, but from the direct API call also, it didn't work.
API Call -
--header 'Content-Type: application/json' \
--header 'Authorization: GenieKey <TEST API KEY>' \
--data-raw '{
"message": "Notification test",
"alias": "notification-test-1234",
"description":"Test notification",
"responders":[
{"name":"xxxx@xxx.com", "type":"user"}
],
"visibleTo":[
{"name":"Test","type":"team"}
],
"priority":"P1"
}'
Alert screenshot: For responders, we are expecting the name of the user passed as part of the above API call.