π§Self-Hosted Slack Integration
You can use Slack to get notified about anomalies in your Kubernetes cluster using alerts.
While Ddosify Cloud allows you to integrate your Slack workspace into Ddosify seamlessly, you need to follow some steps to do the same on Ddosify Self-Hosted. Hereβs how you can do so:
Note: This doc is only applicable to Ddosify Self-Hosted Enterprise Edition. Ddosify Self-Hosted Community Edition does not support alerts and integrations.
Creating A Slack App
To create a Slack integration for Ddosify Self-Hosted, you need to create a Slack application. Go to Slack Apps. You need to sign in to your Slack workspace.
Click on βCreate New Appβ.
Choose βFrom scratchβ.
Give it a name (you can type in Ddosify) and choose a workspace you already logged in.
Click on βCreate Appβ.
Go to βOAuth & Permissionsβ from the tabs on the left.
Scroll down to βScopesβ.
Click on βAdd an OAuth Scopeβ in the βBot Token Scopesβ part.
Add the following permissions:
channels:join
channels:read
chat:write
groups:read
im:read
mpim:read
After that, your βBot Token Scopesβ should look like this:
Then click on βInstall to Workspaceβ under the section βOAuth Tokens for Your Workspaceβ
You will be redirected to a Slack page asking for permissions on your selected workspace. Click on βAllowβ to continue.
Then, in the βOAuth Tokens for your Workspaceβ section, you will see a βBot User OAuth Tokenβ. Copy it and paste it on Slack integration creation in Ddosify.
Congratulations! π You've successfully configured your Slack app. Now there remain only a few steps to connect it to Ddosify.
Setting Up The Slack App in Ddosify
After you create your Slack application, go to the integrations section in Ddosify Self-Hosted EE. You can find it here:
After that, click on βAdd Integrationβ. A pop-up will show up:
Here, provide a name for your integration, paste the Bot User OAuth Token you copied from the earlier step, and click on βMake Integrationβ. This will take you to the channel selection page.
Note: If your Bot Token is correct, you will be able to see the channels present in your Slack workspace. If your token is invalid, this channel dropdown will be stuck at loading. In that case, you can delete the integration and retry.
After you choose a channel and click on βSave Channelβ, your slack app will join that channel and will be able to send messages there.
Once successful, you can test your integration by clicking βTest Integrationβ. If you are able to see the test message sent to your selected Slack channel, that means you've successfully set up your Slack app and you can start to use this integration in your alerts.
This is what you will see if your integration works successfully:
If you require assistance with setting up Slack integration for Ddosify Self-Hosted, you can join our Discord or send an email to support@ddosify.com.
Last updated