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 the following information to successfully push notifications to Slack:
-
Slack Bot Token is the auth token which can be obtained from the
Basic Information
page of your app in Slack. Make sure to copyBot User OAuth Access Token
. You can then provide this token to Cyclops via one of the following methods:- (Recommended) Mount the token as a file from a secret in you Kubernetes cluster, then set the
SLACK_BOT_USER_OAUTH_ACCESS_TOKEN_FILE
environment variable to the path of this file. - Alternatively, you can directly set the
SLACK_BOT_USER_OAUTH_ACCESS_TOKEN
environment variable to the token.
- (Recommended) Mount the token as a file from a secret in you Kubernetes cluster, then set the
-
Environment Variable
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. -
Environment Variable
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.