As part of the MediaWiki Intefaces team's work on improving the REST API's monitoring and alarms (KR5.2.3) we'd like to see if it's possible to set up another alert channel for Alertmanager to send alerts to a channel in Slack.
This will enable us to set up alerts with some threshholds and different severities that will be sent to a Slack channel so Wikimedia staff can have that channel to be alerted to failures or problems in their API modules quickly, before they impact other systems or users.
MWI and other teams should then be able to choose "Slack" as a channel to receive the alerts from Prometheus and Grafana.
Slack channel: #api-alerts
Implementation steps:
- Create a Slack app and request the installation of the Slack app to the IT department.
- Create Alertmanager route
- Route the matching Prometheus alerts
- Create custom template for alert messages
- Document how to send alerts to Slack. https://wikitech.wikimedia.org/wiki/Alertmanager#Sending_alerts_to_Slack
