Include action buttons in Slack alerts
What this does
This is a small experimental change to provide faster access to the appropriate Grafana dashboard directly from a Slack Alert from AlertManager.
Most of our alerts now have grafana_dashboard_link attributes which open on the correct Service Overview dashboard, appropriate to the alert.
Unfortunately, at present, this detail is excluded from our Slack alerts.
This change adds a button to the alert for fast access.
In this first, experimental, iteration the buttons are only included for non-prod alerts, so that we can test whether it works.
Note that on our Slack instance, :grafana: will be an actual Grafana logo.
Verification
Tested using this online tool: https://juliusv.com/promslack/
Edited by Andrew Newdigate
