Skip to main content

Discord alert method

Reading time: 0 minute(s) (0 words)

The Discord alert method sends alerts through Discord to notify Nobl9 users whenever an incident is triggered.

Authentication​

To set up the Discord integration, you’ll need to provide a Discord Webhook URL. This allows you to send an automated notification to a channel of your choice. For details, see Discord documentation.

Known limitations​

Currently, Nobl9 doesn't return the severity level when a Discord alert is triggered.

Adding the Discord alert method​

You can add the Discord alert method directly in the Nobl9 Web application.

Alternatively, utilize the SLOs-as-code approach by:

Nobl9 Web​

To set up the alert method in the Nobl9 Web, follow these steps:

  1. Navigate to Integrations > Alert methods.
  2. Click .
  3. Select Discord.
  1. Enter the URL (mandatory).
    This is your Discord Webhook URL. For more information, refer to the Authentication section.
  1. Select a Project (mandatory).
    Projects provide the structure for organizing Nobl9 resources and managing access permissions.
    If a project is not specified, Nobl9 assigns the default project value automatically.
  2. Enter a Display Name (optional).
    Spaces are allowed.
  3. Enter a Name (mandatory).
    It can only contain lowercase, alphanumeric characters, and dashes (for example, my-alert-method-1). Nobl9 auto-populates this field based on the display name you enter, transforming it into the supported format. You can edit the result.
  4. Enter a Description (optional).
    Provide extra details, such as the purpose and responsible personnel.
    Up to 1050 characters.
  1. Click Add alert method.

YAML configuration​

General YAML sample for discord
apiVersion: n9/v1alpha
kind: AlertMethod
metadata:
name: string # Mandatory
displayName: string # Optional
project: default # Mandatory
# Optional
# The key value: only alphanumeric characters, `-`, `_`, or `.` are allowed.
# The key value must start and end with an alphanumeric character.
# An optional DNS subdomain prefix followed by `/` is allowed.
annotations:
key: value
spec:
description: string # Optional
discord:
url: # URL to Discord webhook, must start with https://

Testing the Discord alert method in the Web​

You can test alert methods for all notification services supported by the Nobl9 platform through the UI.

To verify the correctness of your alert method configuration:

  1. Navigate to Integrations > Alert methods.
  2. Click the required alert method.
    Its Details page opens.
  3. Click Test under the alert method name:

    • When the configuration is correct, Nobl9 displays Test completed successfully! under the button.
    • Otherwise, the Test failed message appears. It contains the details of incorrect settings.
Check out these related guides and references: