Slack notifications

Enabling Sealights Integration with Slack in Your Organization

Slack Administrative permissions are required to enable the Sealights integration.
Please contact your IT department if is not associated with your account.

To enable notifications in your Slack, please open the Cockpit > Settings > Integration > Third Party page and press the ‘Add to Slack’ button.

image-20240117-095105.png

This will open a page in Slack to enable the integration and review the permissions requested by Sealights, press the ‘Allow’ button.

When installation is completed you’ll see the following Cockpit > Settings page updated

 

Adding Slack recipients to your Sealights Notifications

Following the installation, any user will be able to setup notifications to include the Slack channel by defining the Slack recipient who needs to receive the notification from Sealight per the rule defined.

Possible Slack recipients are retrieved from your Slack information:

  • @members

  • #channels

 

Notifications will appear like the one below as Direct Messages from Slackbot

Slack private channel

If you need to send Sealights notifications to a Slack channel marked as private, you’ll need to add Sealights app specifically to the channel.

Your channel is private if there is a black locker icon next to its name.

 

For that purpose, select the “Add App” option either from the channel menu or from its Apps section in channel details.

Search for the Sealights app and add it

The app will appear in the list of authorized apps in the channel and will be able to publish notifications

When Sealights app is not explicitly added to the private channel, a specific error returned by the Slack API is visible in the Cockpit Build Monitor:
Notification failed on channel SLACK: Slack user was not found for recipient='#my-private-channel'