-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enriching Info in Slack alerts for cloudwatch alarms #8666
Comments
I've tested a solution whereby we can include some extra detail in the alerts we get in the #modernisation-platform-low-priority-alarms channel. My branch with changes can be seen here: main...feature/8666-enriching-alerts This does the following:
The results of this can be seen in this slack alert of the The lambda function has allowed me to edit the contents of the event summary, which is the main bit of detail you see via Slack, with the account alias and the account number. This means that at a glance we can see which account the alarm relates to, which speeds up the process of any further investigation required. Previously, via the slack alert alone, we could only see only that the alarm has been triggered, but not where. With some extra clicks e.g. clicking "View Details" or clicking the link into PagerDuty we can find the account number which we would then need to cross reference elsewhere. An example of that can be seen here Limitations:
|
After getting this working I did spend some extra time looking at adding extra functions to the script to attempt to interrogate the cloudtrail logs around the timestamp of the alarm being triggered (e.g. +/- 15 mins) to try and establish the user identities that may have triggered the alarm and include this info in the alert. Unfortunately I was unable to make this work, although this could be expanded on in future. |
#8871 has been raised to look at deploying this into production. |
User Story
As a MP Engineer
I would like to enrich the information provided in our low priority alerts channel
So that I can get more pertinent insights into the alerts being raised before having to open PagerDuty or query cloudtrail logs etc.
Value / Purpose
The idea with this one is to save some clicks basically. We receive alerts in our channels via PagerDuty e.g. #modernisation-platform-low-priority-alarms channel and the only information at a glance is the name of the cloudwatch alarm that has been triggered.
At a minimum it would be useful to have an idea of the name/alias of the account that has triggered the alert. Anything extra would be a bonus e.g. links to a cloudwatch insights query to speed up interrogation of logs etc.
Context / Background
Idea for a firebreak ticket that will improve our ability to respond to alerts.
AWS ChatBot comes with some of this stuff out of the box but unfortunately requires manual steps to set up and so might not be viable yet to role out at scale.
Useful Contacts
No response
Additional Information
No response
Definition of Done
The text was updated successfully, but these errors were encountered: