Create an alert rule configuration for Slack
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
- Navigate to All > Site Reliability Operations > Site Reliability Ops Workspace.
-
On the Services Overview page (
), open a service.
- Click the Alert Rules tab.
- Select an alert that you want to create configuration for.
-
Click the more UI actions icon (
) that appears next to the Save button, then select Create Configuration.
-
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:- In the Table name field, select Action.
- In the Document field, search for and select Post Slack Message.
- Click OK.
-
Right-click the header, and click Save.
The Configuration Variables related list is created.
- Under Configuration variables, click New.
-
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.
- Click Submit.