EES-5685 - added many additional details to alerts being sent through to Slack #5449
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds additional useful contextual information to alerts coming through to Slack from Azure Monitor. This is achieved by amending the Logic App to post additional details of the alert to Slack.
Before
Once the alerts were drab, lifeless and unhappy:
After
But now, they spring with colour, details and joy!
Changes to Logic App workflow
Because getting alert details from several layers deep in the alert metric JSON body is very verbose in the Logic App, we now capture a few useful variables ahead of time before creating the Slack message.
We then include:
Testing
The Logic App is currently expecting alert message payloads of the form documented here: https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-payload-samples#metric-alert-with-a-static-threshold-and-the-monitoringservice--platform
We can manually use this example payload and amend it in different ways within Azure Portal's Logic App Designer
Run with payload
feature, and test how the Logic App responds to changes to severity, monitoring conditions etc.