Chapter 9: Monitoring Applications in Kubernetes
Activity 10: Setting Up Alert Notifications in Kubernetes
Solution:
Perform the following steps to complete this activity:
- Create an Incoming Webhook for the devops channel. Click on your username and then click on Customize Slack:
Figure 9.43: Customizing Slack to add Incoming Webhooks
- On the next page, click on Configure Apps, which will direct you to the following screen. Here, search for Incoming Webhooks, as follows:
Figure 9.44: Searching for Incoming Webhooks
- Click on Add Configuration, as follows:
Figure 9.45: Adding Incoming Webhooks configurations
- Select the channel that you want to set for the alerting notifications, and then click on Add Incoming WebHooks integration:
Figure 9.46: Adding Incoming Webhooks to the devops channel
- From the resulting page, note down the Webhook URL that will be used to configure Alertmanager:
Figure 9.47: The generated Webhook URL
If you can see the Webhook URL already...