This topic describes how to create and customize real-time monitoring dashboards and add charts to the dashboards for Web Application Firewall (WAF) in the Cloud Monitor console. By using custom dashboards and charts, you can view detailed information about how your workloads are protected by WAF in a visualized manner.

Background information

Cloud Monitor is a service that monitors Internet applications and Alibaba Cloud resources. It allows you to view monitoring data in custom dashboards. You can aggregate monitoring data of different products and instances running the same type of workloads by using one dashboard.

You can configure dashboards for WAF in the Cloud Monitor console. Cloud Monitor allows you to monitor the following WAF data metrics.

Table 1. WAF metrics
Metric Dimension Unit Description Remarks
4XX_ratio Domain name % The percentage of the 4xx HTTP status codes per minute (405 excluded). The value is a decimal number.
5XX_ratio Domain name % The percentage of the 5xx HTTP status codes per minute. The value is a decimal number.
acl_blocks_5m Domain name PCS The number of requests blocked by access control within the last five minutes. None.
acl_rate_5m Domain name % The percentage of requests blocked by access control within the last five minutes. The value is a decimal number.
cc_blocks_5m Domain name PCS The number of requests blocked by HTTP flood protection within the last five minutes. None.
cc_rate_5m Domain name % The percentage of requests blocked by HTTP flood protection within the last five minutes. The value is a decimal number.
waf_blocks_5m Domain name PCS The number of requests blocked by web intrusion prevention within the last five minutes. None.
waf_rate_5m Domain name % The percentage of requests blocked by web intrusion prevention within the last five minutes. The value is a decimal number.
QPS Domain name CPS QPS None.
qps_ratio Domain name % The growth rate of QPS every minute on the minute. The value is a percentage.
qps_ratio_down Domain name % The decrease rate of QPS every minute on the minute. The value is a percentage.

Procedure

  1. Log on to the Cloud Monitor console.
  2. In the left-side navigation pane, choose Dashboard > Custom Dashboard.
  3. In the Create Dashboard dialog box, specify a name for the dashboard and click Create.Create a view group
    After the dashboard is created, you are redirected to the Dashboards page. You can select a dashboard from the Dashboards drop-down list to view or manage the dashboard.
  4. Click Add View. On the Add View panel, set the following parameters.
    1. Chart Type: Supported chart types are Line, Area, Table, Heat Map, and Pie Chart.
      For more information, see Add a monitoring chart.
    2. Select Metrics: Click the Dashboards tab and select WAF. Then, select a metric from the Metrics drop-down list and select resources from the Resource drop-down list.
      • Metrics: Select a metric that you want to monitor. For more information, see Table 1.
      • Resource: Select a domain name that you want to monitor.
        Note Only the domain names for which data is generated over the last 12 hours are displayed in the resource list.
        Select domain names

        Click AddMetrics if you want to add more metrics.

    3. Click Save to create the chart.
    Add View
    You have created the WAF monitoring chart.
  5. To add more charts to the dashboard, repeat Step 4. For more information, see Add a monitoring chart and Manage dashboards.