How to Send Monitor Alerts to Slack or Microsoft Teams
Add a Slack or Teams channel as a contact, then pick it on any monitor.
Overview
Monitor alerts in Spojit go to contacts: email addresses, Slack channels and Microsoft Teams channels you set up once on the Control Center's Contacts tab. Each monitor then picks the contacts it tells, so one channel can serve many monitors and you change the channel in one place.
Slack and Teams alerts are short so they read well in a busy channel: a one-line summary, the suggested next step when Miraxa has one, and buttons to open the alert, see the monitor, continue in Miraxa, or apply a ready fix. Alerts carry the monitor's summary and a link, never your run data.
Before You Start
- You need permission to manage monitors to add contacts.
- In Slack, you need to be able to add an incoming webhook to the channel. In Teams, you need to be able to create a workflow for the channel.
Steps
- Create the webhook:
- Slack: create an incoming webhook for the channel. Its URL starts with
https://hooks.slack.com/services/. - Teams: in the channel, use Workflows to create a workflow that posts to the channel when a webhook request is received, and copy its URL.
- Slack: create an incoming webhook for the channel. Its URL starts with
- In Spojit, open Control Center and go to the Contacts tab.
- Choose New contact, give it a name such as
Ops channel, choose Slack webhook or Teams webhook, and paste the URL. - Save, then choose Send test and check the message arrives in the channel.
- Open a monitor, select the who to tell part of its sentence, add the contact, and save.
What Gets Sent
- Incidents - when an incident opens, as reminders while it stays open, and when it resolves.
- Notices - once for each change, finding or broadcast.
- Applied fixes - when a fix is applied, if the monitor has Also tell when a fix is applied on.
When a monitor asks Miraxa for suggested next steps, the first alert waits up to two minutes so the suggestion arrives with it. The Apply button opens the alert in Spojit to confirm; nothing changes from inside Slack or Teams.
Tips
- Use one channel per team or severity, such as a Critical channel that pages people and a quieter Info channel.
- Check the Used by column on the Contacts tab before deleting or changing a contact, to see which monitors rely on it.
- Email contacts suit people who are not in Slack or Teams. Each address must belong to a workspace member or be on your workspace's email allow-list.
Common Pitfalls
- Pasting a Slack app or bot URL instead of an incoming webhook URL. Only
hooks.slack.com/servicesaddresses are accepted. - Expecting to see the webhook URL again. After saving, only its last characters are shown, so keep a copy if you need it elsewhere.
- Adding the contact but not picking it on any monitor. A contact only gets alerts from the monitors that choose it.
Related Articles
- Creating a Monitor
- How to Get Alerted When a Workflow Stops Succeeding
- Understanding the Control Center
- Slack Connector: Send Messages and Alerts
- How to Set Up Slack Alerts for Workflow Failures
- Roles and Permissions