You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have Alerts in Azure Application Insights that are fired if exception count > 0 and then the message is sent to OpsGenie via webhook. The integration works great, but I need to include more information about exceptions (message and type) from AppInsights that are related to the query result of alert. I'd also like to include URL to query results as well.
I tried to use the following `Log search` with the query, but I was not able to "catch" information about query results in OpsGenie.
| where details.severityLevel == "Error"
| order by timestamp
I also tried to use `Exception` metrics as a signal, but couldn't get that information as well.
The payload I have (GUIDs are obfuscated to `[GUID]`):
"description": "[OpsGenie] Exceptions on Prod count larger than 0",
"message": "[Azure] GreaterThan 0 LogQueryCriteria in the last PT5M mins was activated\nDescription: [OpsGenie] Exceptions on Prod count large",
"integrationName": "Azure Digital (Prod alerts)",
"sourceSubName": "Create Alert",
"sourceName": "Azure Digital (Prod alerts)"
I don't see any way to get query results / URL to the alert from the above. So, the question is: How can I get query results and URL to the alert of Azure Application Insights Alert in the OpsGenie.
Hi @Dariusz Wozniak ,
If the exceptions (message and type), and the URL from AppInsights are included in the payload, you can use string processing or regex to extract them into the alert. But again, the information needs to be included in the payload. If it's not being sent from AppInsights to Opsgenie, then it wouldn't be possible.
If this data is being parsed in the payload, but you're having trouble extracting the data into the alert / finding it in the Logs, feel free to open a support ticket with our team here: https://support.atlassian.com/opsgenie/