In the last post, we have seen how we can Monitor our Server and can get notified for any of the Alerts using the Alert manger. In this Blog, We Will See how we can Set an Alert and Send Notification to Slack using the Grafana Embedded Alerting System.
We Assume that You have grafana Dashboard Up and Running along with the basic dashboard. If not, you can have a look at our previous blog on how to create a dashboard in grafana.
Let’s Get Started,
In this, We Will Test the Alerting for the High CPU Utilization of the same Server in which Grafana and other tools are installed.
First of All, We have to Create a Notification Channel using the Slack Incoming webhooks we have generated. Open Grafana and Click on the Bell Icon from the Navigation Pane and Select notification Channel and then click on Add Channel.
In the Notification Channel, Add the Notification Channel Created and Write small Alert message. So Now Once You have added this, It will Keep on monitoring the Metrics graph and Once it Goes beyond 50% It Will trigger an Alert on the Slack Channel.
Note: This Will Only Trigger the Alert Message to Slack, and also notify about the recovery. This Will not take the Snapshot of the metrics and Post to slack like the way it posted when we Send the Test Notification While Creating the Alert Channel. If you want to capture the Alert Metrics Image then please have a look here.
If you Like Our Content here at Devopsage, then please support us by sharing this post.
Also, please comment on the post with your views and let us know if any changes need to be done.
You May Also need to look into,