Edge Policy Metrics

You can monitor the health, capacity, and performance of your edge policies by using metrics, alarms, and notifications.

This topic describes the metrics emitted by the metric namespace oci_waf (the WAF service).

Overview of the WAF Service Metrics

Oracle Cloud Infrastructure Web Application Firewall (WAF) is a cloud-based global security service that protects applications from malicious and unwanted internet traffic. The WAF service metrics help you measure various levels of traffic encountering your WAF policies, including non-malicious traffic. For more information, see Overview of the Web Application Firewall Service.


  • IAM policies: To monitor resources, you must be granted the required type of access in a policy  written by an administrator, whether you're using the Console or the REST API with an SDK, CLI, or other tool. The policy must give you access to the monitoring services as well as the resources being monitored. If you try to perform an action and get a message that you don't have permission or are unauthorized, contact the administrator to determine the type of access you were granted and which compartment  you need to work in. For more information about user authorizations for monitoring, see IAM Policies.
  • Permissions are required to allow monitoring, alarm, and notification (ONS) definition for users in a group for all compartments. The following policies must be configured in the root compartment:

    Allow group <WAFMonitors> to read metrics in compartment <CompartmentName>
    Allow group <WAFMonitors> to manage alarms in compartment <CompartmentName>
    Allow group <WAFmonitors> to manage ons-family in compartment <CompartmentName>

Available Metrics: oci_waf

The metrics listed in the following table are automatically available for any policies you create. You do not need to enable monitoring on the resource to get these metrics. However, you must have the policy properly set up with web traffic passing through it to make the oci_waf metric space available in the Metrics Explorer feature. Policies with no web traffic emit no metric data.

Metric Metric Display Name Unit Description Dimensions
NumberOfRequests Requests count The total number of requests serviced by the WAF.








Traffic Traffic bytes Data egress from the WAF (compressed by default) measured in one minute intervals.
Bandwidth Bandwidth B/s (bytes per second)

Bandwidth rate calculated by dividing total data egress in a minute by 60.

NumberOfRequestsDetected Detects count The number of requests that triggered a detect (alert) for a WAF policy. resourceID



Viewing Metrics

Describes the different methods to view metrics for an edge policy.

Use one of the following methods to view logs for an edge policy.

Using the Console

  1. Open the navigation menu and click Identity & Security. Under Web Application Firewall, click Policies.

    Alternatively, open the Web Application Firewall page and click Policies under Resources.

    The WAF Policies page appears.

  2. Select the Compartment from the list.

    All the WAF policies in that compartment are listed in tabular form.

  3. (Optional) Apply one or more of the following Filters to limit the WAF policies displayed:
    • Name

    • Policy Type

    • Status

  4. Select the edge policy whose logs you want to view.
    The Edge Policy Details dialog box appears.
  5. Click Metrics under Resources.

    The Metrics list appears. The list consists of panels displaying metric information on areas such as blocked requests, detected requests, traffic, and response code groups.

    For each panel, you can select commands from the Options list, such as viewing the query in the Metric Explorer, copying the chart URL, copying the query, and viewing the metric information in table view. You can also specify the Interval and Statistic for each chart.

    See Monitoring for more information on monitoring and the Metric Explorer. Use the oci_waf namespace when prompted to provide a monitoring namespace.

  6. Specify the date-time group range covered by the metrics by completing the following:
    • Start time
    • End time

    Alternatively, select one of the time spans from the Quick Selects list. The time spans available range from the previous hour to 90 days in the future from that moment.

The metrics for the edge policy are displayed according to your specifications.