Configuring Alarms on Cloud Eye for Abnormal WAF Metrics
Application Scenarios
This section describes how to configure alarms on Cloud Eye for abnormal WAF metrics. You can configure WAF alarm rules to customize the monitored objects and notification policies, and set parameters such as the alarm rule name, monitored object, metric, threshold, monitoring scope, and whether to send notifications. This helps you learn the WAF protection status in a timely manner.
For details, see WAF Monitored Metrics.
Prerequisites
- You have connected a website to WAF.
- You have enabled Cloud Eye.
Resource and Cost Planning
| Resource | Description | Monthly Fee |
|---|---|---|
| WAF (monitoring and alarm rules for protected domain names) | Cloud mode - standard edition:
| For details about pricing rules, see Billing Description. |
| WAF (monitoring and alarm rules for dedicated instances) | For details about pricing rules, see Billing Description. | |
| Cloud Eye |
| - |
Configuring Monitoring Alarm Rules for a Protected Domain Name
Monitoring alarm rules for protected domain names apply to WAF for cloud mode.
- Log in to the Cloud Eye console.
- Click
in the upper left corner and select a region or project. - In the navigation pane on the left, choose Alarm Management > Alarm Rules.
- In the upper right corner of the page, click Create Alarm Rule.
- Configure related parameters.
- Name: Enter a name.
- Alarm Type: Select Metric.
- Cloud Product: Select Web Application Firewall - Domains.
- Resource Level: Select Cloud product.
- Monitoring Scope: Select All resources.
- Method: Select Associated template or create a custom template.
- Alarm Notifications: If you want to receive alarms in real time, enable this option and select a notification mode.
- Other parameters: Set them based on site requirements.
Figure 1 Creating an alarm rule for a protected domain name
Table 2 Alarm policy configuration suggestions Metric Name
Description
Recommended Value in the Alarm Template
Number of Requests
This metric measures the number of requests returned by WAF over the past 5 minutes for the monitored object.
- If the raw value decreases by 50% for one consecutive time, an alarm is generated every 5 minutes.
- If the raw value increases by 50% for one consecutive time, an alarm is generated every 5 minutes.
WAF Status Code (5XX)
This metric measures the number of status codes 5XX returned by WAF over the past 5 minutes.
If the raw value is greater than or equal to 10 for one consecutive time, an alarm is generated every 5 minutes.
Number of Requests Denied by WAF
This metric measures the number of requests destined for the website over the past 5 minutes during break protection duration.
If the raw value is greater than or equal to 1 for one consecutive time, an alarm is generated every 5 minutes.
Origin Server Status Code (5XX)
This metric collects how many requests with status codes 5XX are returned by the origin server over the past 5 minutes.
If the raw value is greater than or equal to 10 for one consecutive time, an alarm is generated every 5 minutes.
Basic Web Protection Actions
This metric measures the number of attacks defended by basic web protection rules over the last 5 minutes.
If the raw value increases by 50% for one consecutive time, an alarm is generated every 5 minutes.
CC Attacks Blocked
This metric measures the number of attacks blocked by CC attack protection rules over the last 5 minutes.
If the raw value increases by 50% for one consecutive time, an alarm is generated every 5 minutes.
- Click Create. In the displayed dialog box, click OK.
Configuring Monitoring Alarm Rules for Dedicated Instances
Monitoring alarm rules for dedicated WAF instances apply to WAF dedicated mode.
- Log in to the Cloud Eye console.
- Click
in the upper left corner and select a region or project. - In the navigation pane on the left, choose Alarm Management > Alarm Rules.
- In the upper right corner of the page, click Create Alarm Rule.
- Configure related parameters.
- Name: Enter a name.
- Alarm Type: Select Metric.
- Cloud Product: Select Web Application Firewall - Dedicated WAF Instance.
- Resource Level: Select Cloud product.
- Monitoring Scope: Select All resources.
- Method: Select Associated template or create a custom template. You can create a custom rule by referring to Figure 2.
- Alarm Notifications: If you want to receive alarms in real time, enable this option and select a notification mode.
- Other parameters: Set them based on site requirements.
Table 3 Alarm policy configuration suggestions Metric Name
Description
Recommended Value in the Alarm Template
Disk Usage
This metric measures the disk usage of the measured object.
If the raw value is greater than 80% (major) for three consecutive times, an alarm is generated once every hour.
Active Connections
This metric measures the number of active connections of the measured object.
If the raw value is greater than 40,000 (major) for three consecutive times, an alarm is generated once every hour.
CPU Usage
This metric measures the CPU usage of the measured object.
If the raw value is greater than 80% (major) for three consecutive times, an alarm is generated once every hour.
Memory Usage
This metric measures the memory usage of the measured object.
If the raw value is greater than 80% (major) for three consecutive times, an alarm is generated once every hour.
- Click Create. In the displayed dialog box, click OK.
Viewing Monitored Metrics
You can view WAF metrics on the Cloud Eye console and learn about the WAF protection status in a timely manner.
- In the navigation pane on the left, choose Cloud Service Monitoring.
- Search for Web Application Firewall WAF by Dashboard in the search box. In the Dashboard column, click Web Application Firewall WAF to go to the Details page.
- On the Overview tab, you can view metrics related to resource overview and alarm statistics. Figure 3 Viewing key metrics
- Click the Resources tab. In the Operation column of the instance list, click View Metric.
To view the monitoring information about a specific website, you can go to the Website Settings page on the WAF console, locate the row containing the target domain name and click Cloud Eye in the Operation column.
Figure 4 Viewing monitored metrics
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot
