Create an alert rule configuration for Slack

  • Versão de lançamento: Australia
  • Atualizado 3 de ago. de 2023
  • 1 min. de leitura
  • Create a configuration to associate with an alert rule for a service or integration. Notifications are sent during specific events in a service to a channel in the Slack messaging service.

    Antes de Iniciar

    Role required: sro_admin, sro_manager, or sro_user

    Procedimento

    1. Navigate to All > Site Reliability Operations > Site Reliability Ops Workspace.
    2. On the Services Overview page (Services page icon.), open a service.
    3. Click the Alert Rules tab.
    4. Select an alert that you want to create configuration for.
    5. Click the more UI actions icon (More UI actions icon.) that appears next to the Save button, then select Create Configuration.
    6. On the form, fill in the fields.
      Tabela 1. Configuration form
      Field Description
      Name Unique name for the configuration. For example, Alerts Notification Slack.
      Attach to Table Table on which the action is performed.

      Select Action.

      Attach to Document Action to be executed on the selected table.

      Click Search. The Select the document form appears.

      To select a document, complete the following steps:
      1. In the Table name field, select Action.
      2. In the Document field, search for and select Post Slack Message.
      3. Click OK.
    7. Right-click the header, and click Save.

      The Configuration Variables related list is created.

    8. Under Configuration variables, click New.
    9. On the form, fill in the fields.
      Tabela 2. Configuration Variable form
      Field Description
      Configuration

      Name of the configuration that you are creating the configuration variable for.

      This field is auto-populated.

      Name

      Name of the configuration variable.

      Enter the value as ah_webhook_url.

      Type

      The configuration variable type.

      Select Scalar.

      Value

      Webhook URL obtained when creating the connector in the Slack messaging service.

      Paste the URL in this field.

      For more information about creating a webhook URL, see Create a Webhook URL for a channel in Slack.

    10. Click Submit.