Director users can get instantaneous notifications from Mulebot (Mulebot is a slack app live in slack app directory which can be installed through Director or slack app directory ) to a slack channel configured for Mulebot app. Users can also interact with Mulebot to query the status of their clusters connected to Director, details of the application deployed within those clusters such as state of the application, number of pods, OpenEBS volumes, etc.
Integrating ChatOps enables interaction between clusters present in the organization on Director and user through Slack. The user will be able to receive alerts and query applications present health status from Director through the configured slack channel.
What is Mulebot?
Mulebot is a slack application that intends to cover the storage operational support of Kubernetes enabled OpenEBS clusters. DevOps developers and administrators receive alerts, analytics of their OpenEBS volumes deployed across multi-cloud Kubernetes clusters into their [Slack](https://slack.com/) configured channels and also provides a way to query a cluster configuration from the configured slack channels. The Mulebot app enhances your experience with Director Online by allowing you to query the Director cluster configurations and Director applications using the following slash commands.
- /maya help
Displays a list of all the available slash commands and their functionality that can be used to query the cluster configurations of the Director online.
Displays the command options which user can click on and get the results like Get Clusters which will give a list of all the clusters connected to Director Online.
- /maya get clusters
Lists all the clusters connected to Director Online whether active or inactive.
- /maya get cluster “cluster-name”
Fetches the details of a particular cluster when cluster-name is provided.
A sample interaction with Mulebot using slash commands:
Steps to Configure Director with Slack
First, click on Slack icon present in the left side-bar then click on Create a new Slack card button.
Connect to your workspace
In the pop-up, you can either enter an existing workspace or you can create a new workspace. All the notifications will be generated in this workspace.
Login to your workspace.
Grant permissions and select channel for notification
Next, you will be redirected to a page requesting access to your workspace. On this page, you get a drop-down menu to choose a channel from your workspace where these notifications will be generated. After going through all the permissions that are requested click on Allow button to authorize Mulebot to get access to your workspace.
As soon as slack integration is successful you will receive a notification from Mulebot in the configured channel.
To verify, click on the slack icon on left side-bar. Now you will be able to view a new slack card entry.
Users can select specific clusters, to select or remove clusters, click on (Edit) icon. This displays the list of clusters integrated with Director. The clusters having a checkmark are already integrated. Select/Unselect the clusters as per your requirement.
Clicking on Done you will be redirected to the page displaying the Slack Cards. To verify, check the number of clusters currently integrated.
Integration of Director with Slack is successful. Following are a few examples of updates/alerts that will be received:
- Cluster Connect:
A sample ClusterConnect alert could look like
- Cluster Disconnect:
A sample ClusterDisconnect alert could look like
- Volume Up:
A sample VolumeUp alert could look like :
- Volume Down:
A sample VolumeDowm alert could look like :
- User Sign Up:
A sample VolumeDown alert could look like :
NOTE: Some of the alerts mentioned above are meant for a user and some are for admin i.e. UserSignUp, ClusterConnect, ClusterDisconnect is mainly meant for admin rather than a user.