Currently the only messaging provider Cyclops supports is Slack. Notifications are an optional feature and this can enabled when required.
The Cyclops notification feature is built as a backend for a Slack integration. We do not distribute a Slack app, this means that to use the notification feature, you will need to create your own app in Slack.
Once you have created your app, you will need to add the chat:write
scope under Bot Token Scopes
in the OAuth & Permissions
section. You will also need to add the scopes required to check if the bot is in the channel on startup.
You can now install the app to your workspace.
Cyclops will need three environment variables to successfully push notifications to Slack.
-
SLACK_BOT_USER_OAUTH_ACCESS_TOKEN
is the auth token which can be obtained from theBasic Information
page of your app in Slack. Make sure to copyBot User OAuth Access Token
. -
SLACK_CHANNEL_ID
is id of the channel in which you want to post your notifications. Navigate to your Slack workspace on the browserhttps://<workspace>.slack.com
. Create the channel in which you want to add Cyclops. The url should be in the formhttps://app.slack.com/client/<workspace_id>/<channel_id>
. Copy the channel id from the url. -
CLUSTER_NAME
is the name of your cluster which you will need to pass in.
- Ensure that you have added the Slack app to the channel before posting any notifications or else nothing will appear.