Respond
Discord
Send alert notifications to channels on your Discord server.
The Discord integration posts alert notifications to channels of your Discord server. You connect channels one by one and then choose them in each alert.
Connect a channel
Only owners and admins can connect channels.
- Open Settings → Integrations.
- In the Alerts group, click Add channel in the Discord row. If Discord already has channels, click the row and use Add channel on the Discord page.
- Discord asks you to pick the server and the channel that gets the messages. Confirm.
- You return to the Discord page in OpenPerf and see Channel connected.
Repeat the steps for every channel you need. Finish each connection within 10 minutes, or OpenPerf shows The connection link expired. Try again.
If the Discord row is dimmed and has no Add channel button, Discord is not configured on your OpenPerf server.
Send alerts to the channel
A connected channel gets nothing until an alert uses it. Open an alert in Settings → Alerts and turn the channel on under Team chats. See Alerts.
The Discord page lists the channels as #channel-name with the server name, the number of alerts that use the channel, the time of the last message and a status: Active or Error.
To check a channel, open its three-dot menu and click Send test. OpenPerf posts a test message right away and tells you whether Discord accepted it.
What a message contains
Messages are posted under the name OpenPerf as an embed:
- A colored edge: red for a firing alert, green for a resolved one, blue for a test.
- A title that links to the error, or to the alert when it is about a metric. For example
New error: TypeError,Spike: TypeError,Firing: Checkout errorsorResolved: Checkout errors. - A summary. For an error it is the error message. For a metric it is a sentence such as
P95 latency is 1240 ms, above 800 ms in the last 5 min. - The fields Project, Environment and Rule. Alerts about an error add Culprit and Level, and a spike adds Events.
- A footer with
OpenPerfand the project name.
Messages never mention users or roles, even when an error message contains a mention.
Disconnect a channel
On the Discord page, open the three-dot menu of the channel and click Disconnect. Alerts stop posting to the channel, and it is removed from every alert that used it.
Disconnecting does not delete the webhook that Discord created for the channel. Delete it in Discord if you no longer need it.
Limits
- One connection posts to one channel.
- When Discord reports that the webhook is gone or access is denied, the channel gets the Error status and alerts skip it. Hover the status to read the last error. A successful Send test makes it Active again. If the webhook was deleted in Discord, disconnect the channel and add it again.
- A message that fails for a temporary reason is retried, up to 5 attempts in total.
- Long text is cut: titles at 200 characters, summaries at 1,500 and field values at 300.