Get automated alerts in Slack for a certain service isn’t working or resource limits are about to be exceeded when:
- CPU usage is too high
- RAM consumption exceeds defined limits
- High inodes usage
- Disc utilization is next to the 100%
- External network traffic is close to the expected limit
Such notifications are important because they inform the status of your production, and let you quickly fix what needs fixing. In most cases, Slack can be more convenient than emails because people often read them not so often compared to quick messages.
The installation can be performed on Jelastic certified containers.
Import the raw link of the add-on manifest within Jelastic PaaS dashboard.
Note: to access the dashboard you need to be registered at one of the Jelastic Public Cloud providers or have a Private Cloud installation.
In the opened confirmation window:
- Choose target environment and node the add-on should be attached to.
- Select any of mentioned alerts or just use All Alerts option.
- Specify Сhannel ID you want to receive notifications on. Channel ID can be extraceted from existing channel's link. Go to Slack and open link for any channel of required workspace:
Get the channel ID as the last word in link.
- Sign in the required workspace and create an Application for your service by the following link: https://api.slack.com/apps?new_app=1.
- Open Features>OAuth & Permissions and choose(Copy) token the messages should be sent from: either on behalf of application's name(Bot User OAuth Token) or your Slack user name(User OAuth Token).
- Depending on token, define the Slack application's capabilities and permissions via respective scopes. For example: chat:write.
- Go back to Jelastic dashboard and paste token to the Slack OAuth Token field.
Note: The bot user tokens represent a bot associated with the application installed within a workspace. Compared to user tokens, they're not tied to a user's identity; they're just tied to your application and allow your app to stay installed even when an installing user is deactivated. So, using the bot tokens is better choice.
- Once installation is finished you will observe notifications in Slack client software regarding the load alerts configured for your application.
Try out the Slack integration add-on within Jelastic Multi-Cloud PaaS for any application.