The Monocle app for Discord posts alerts, uptime incidents, and exceptions to your channels, keeps each one in a thread, and lets you resolve, archive, and assign issues from the message.
Discord webhooks are no longer supported. If you used one, see Move from incoming webhooks.
Connect a server
Organization admins connect servers:
- Go to Settings → Integrations.
- Under Slack and Discord, click Add Discord server.
- Choose the server and authorize the Monocle bot. You need the Manage Server permission on it.
An organization can connect several servers, and a server can be connected to several organizations. Each server is listed with the admin who connected it.
If Monocle loses access to the server, for example because the bot was removed, the server shows Disconnected and stops receiving messages. Click Reconnect to add the bot again. Your alerts, monitors, and exception rules keep their channels.
To remove a server, click the trash icon next to it. The alerts, monitors, and exception rules that post to its channels stop notifying them. The bot leaves the server when no other organization uses it.
Pick a channel
Every member can pick a Discord channel in:
- Endpoint alerts: under Notify, click Slack or Discord channel. See Notifications.
- Uptime monitors: turn off Default channels, then click Slack or Discord channel.
- Exception rules: in the Posts to column, click the Discord icon next to the channel list. See Exception rules.
When several workspaces or servers are connected, pick one first. Then search the text channels of the server, or paste a channel ID. The bot must be able to view the channel, send messages, and create threads in it. Click the send icon next to a picked channel to post a test message.
What gets posted
Each incident or issue gets one message in the channel. Follow-ups go to a thread opened on that message, and the message is edited to show the current state.
| Event | In Discord |
|---|---|
| Endpoint alert fires | A message with the metric, its value, the threshold, the service, and the environment |
| The alert resolves | A reply in the thread. The message shows Resolved |
| Uptime monitor goes down | A message with the monitor, its URL, and the error |
| The monitor recovers | A reply with the downtime, such as Recovered after 12m 5s. The message shows Recovered |
| New issue | One message per issue, with its exception, status, assignee, environment, and event count |
| The issue regresses | A reply in the thread, and a message in the channel that answers the first one. At most once per 30 minutes per issue and channel |
| Status, assignee, or merge of the issue | A reply in the thread, such as Resolved by Jane Doe. The message shows the new state |
Changes made in Monocle and changes made from Discord both reply in the thread.
Act on issues
Issue messages have three buttons:
- Resolve: resolves the issue. When the project has releases, choose Immediately or In the next release. On a resolved issue, the button is Unresolve.
- Archive: choose how long, from For 1 hour to Forever, or until more events or users. On an archived issue, the button is Mark as ongoing.
- Assign: choose a member with access to the project, or Unassign.
Choices open in a menu that only you can see. You need manager access to the project of the issue. Monocle acts as your Monocle user, so the change shows your name in the issue activity.
Link your account
The first time you click a button in a server, Monocle answers with Link your identity now. Open the link while signed in to Monocle and confirm. The link expires after an hour. Then click the button again.
Your linked accounts are listed in Settings → Login & security, under Slack and Discord accounts. Unlink one to stop it acting as you.