Create a Slack configuration that stores an incoming webhook URL, channel, and message type so that alerting profiles can deliver notifications to Slack.
To add a Slack configuration, complete the following steps.
Ensure that you have the following:
A Slack workspace in which you can create an incoming webhook, or a webhook URL from your Slack administrator.
The name of the Slack channel that must receive the messages.
A role in Cloudera Cloud Factory that can manage configurations for the organization.
In the left navigation, go to Configurations > Slack.
Click Add Slack Config at the upper right of the page.
In the Add Slack Configuration drawer, fill in the fields:
From the Organization drop-down list, select the organization that owns the configuration. The list can be searched by typing in the box at its top.
In Name, enter a descriptive name, for example demo-cluster-alerts.
In Slack Webhook URL, paste the incoming webhook URL from Slack, for example https://hooks.example.com/services/<webhook-path>.
In Channel, enter the channel that receives the messages, for example #cluster-alerts.
From the Type drop-down list, select Alert or General.
Figure 1. The Add Slack Configuration drawer
The following table describes the fields:
Table 1. Slack configuration fields
Field
Description
Organization
The organization that owns the configuration. Only alerting profiles of the same organization can use it.
Name
A name that identifies the configuration when you attach it to an alerting profile.
Slack Webhook URL
The incoming webhook URL that Slack generates for a channel. Cloudera Cloud Factory posts messages to this address.
Channel
The Slack channel that receives the messages.
Type
Alert for Kubernetes cluster alerts. General for other notifications.
Figure 2. Selecting the type of a Slack configuration