Grafana alarm system configuration

1. Brief introduction

Usually in a formal environment, it is necessary to monitor the usage of server resources, and when the usage rate exceeds a certain amount, the operation and maintenance personnel will be alerted.

At this time, the Alerting function of grafana is used to perform regular inspection/monitoring indicators. And send warning messages according to the rules, and integrate into office software such as WeChat/DingTalk

2. Form of warning

1. Add group robots

Create a nail/corporate WeChat group --> add a robot --> after adding a robot, there is a webhook address

2. Configure the alarm channel in grafana

2.1. Add alarm channel

2.2. Configure the alarm mode as the default mode

3. Specific alarm rule configuration

1. Select the target to be alerted

In the monitoring panel, click the drop-down button of the monitoring indicator --> select Edit

2. Add warning rules

After clicking Edit, the Add Alarm Rule button appears below, click Add

3. Alarm rule configuration

Finally click Save, for example the configured rule is to check every minute. When the CPU exceeds 3% (configured according to specific needs), it will enter the pengding state, and if it exceeds 3% for 2 minutes, an alarm notification will be issued

After adding an alarm, you can view the monitoring status in the list or monitoring panel

Enterprise WeChat correspondingly received an alarm notification

Guess you like

Origin blog.csdn.net/qq_38571773/article/details/128735955