---
title: Azure CDN
description: >-
  Track request traffic, latency, cache performance, and WAF activity for Azure
  CDN.
breadcrumbs: Docs > Integrations > Azure CDN
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Azure CDN
Integration version1.0.0
{% callout %}
# Important note for users on the following Datadog sites: us2.ddog-gov.com

{% alert level="info" %}
To find out if this integration is available in your organization, see your [Datadog Integrations](https://app.datadoghq.com/integrations) page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email [support@ddog-gov.com](mailto:support@ddog-gov.com).
{% /alert %}

{% /callout %}

## Overview{% #overview %}

[Azure CDN](https://learn.microsoft.com/en-us/azure/cdn/cdn-overview) caches and delivers static and dynamic content from points of presence close to end users. This integration surfaces CDN profile request and latency metrics, edge action execution, and web application firewall (WAF) policy activity.

## Setup{% #setup %}

### Installation{% #installation %}

If you haven't already, set up the [Microsoft Azure integration](https://docs.datadoghq.com/integrations/azure.md) first. There are no other installation steps.

## Data Collected{% #data-collected %}

### Metrics{% #metrics %}

|  |
|  |
| **azure.cdn_edgeactions.count**(gauge)                                                            | The count of Azure CDN edge actions.                                                                                                                                            |
| **azure.cdn_cdnwebapplicationfirewallpolicies.count**(gauge)                                      | The count of Azure CDN web application firewall policies.                                                                                                                       |
| **azure.cdn_profiles.count**(gauge)                                                               | The count of Azure CDN profiles.                                                                                                                                                |
| **azure.cdn_cdnwebapplicationfirewallpolicies.web_application_firewall_request_count**(count) | Number of client requests processed by the web application firewall.*Shown as request*                                                                                          |
| **azure.cdn_edgeactions.action_execution_latency**(gauge)                                       | Time taken to execute the action code.*Shown as millisecond*                                                                                                                    |
| **azure.cdn_profiles.origin_latency**(gauge)                                                     | Time calculated from when the request was sent by AFDX edge to the backend until AFDX received the last response byte from the backend.*Shown as millisecond*                   |
| **azure.cdn_profiles.total_latency**(gauge)                                                      | Time calculated from when the client request was received by the HTTP/S proxy until the client acknowledged the last response byte from the HTTP/S proxy.*Shown as millisecond* |
| **azure.cdn_profiles.origin_health_percentage**(gauge)                                          | Percentage of successful health probes from AFDX to backends.*Shown as percent*                                                                                                 |
| **azure.cdn_profiles.byte_hit_ratio**(gauge)                                                    | Ratio of total bytes served from the cache to total response bytes.*Shown as percent*                                                                                           |
| **azure.cdn_profiles.percentage4_xx**(gauge)                                                     | Percentage of all client requests with a 4xx status code.*Shown as percent*                                                                                                     |
| **azure.cdn_profiles.percentage5_xx**(gauge)                                                     | Percentage of all client requests with a 5xx status code.*Shown as percent*                                                                                                     |
| **azure.cdn_profiles.active_web_socket_connections**(gauge)                                    | Number of active websocket connections.*Shown as connection*                                                                                                                    |
| **azure.cdn_profiles.average_web_socket_connection_duration**(gauge)                          | Average time taken by websocket connections.*Shown as millisecond*                                                                                                              |
| **azure.cdn_profiles.origin_request_count**(count)                                              | Number of requests sent from AFDX to origin.*Shown as request*                                                                                                                  |
| **azure.cdn_profiles.request_count**(count)                                                      | Number of client requests served by the HTTP/S proxy.*Shown as request*                                                                                                         |
| **azure.cdn_profiles.request_size**(count)                                                       | Number of bytes sent as requests from clients to AFDX.*Shown as byte*                                                                                                           |
| **azure.cdn_profiles.response_size**(count)                                                      | Number of bytes sent as responses from HTTP/S proxy to clients.*Shown as byte*                                                                                                  |
| **azure.cdn_profiles.web_application_firewall_captcha_request_count**(count)                 | Number of CAPTCHA requests evaluated by the web application firewall.*Shown as request*                                                                                         |
| **azure.cdn_profiles.web_application_firewall_js_request_count**(count)                      | Number of JS challenge requests evaluated by the web application firewall.*Shown as request*                                                                                    |
| **azure.cdn_profiles.web_application_firewall_request_count**(count)                          | Number of client requests processed by the web application firewall.*Shown as request*                                                                                          |
| **azure.cdn_profiles.web_socket_connections**(count)                                            | Number of websocket connections requested.*Shown as connection*                                                                                                                 |
| **azure.cdn_edgeactions.action_cpu_time_millis**(gauge)                                        | CPU time consumed by the action code.*Shown as millisecond*                                                                                                                     |
| **azure.cdn_profiles.origin_shield_origin_request_count**(count)                              | Number of requests sent from origin shield to origin.*Shown as request*                                                                                                         |
| **azure.cdn_profiles.origin_shield_rate_limit_request_count**(count)                         | Number of blocked requests by origin shield.*Shown as request*                                                                                                                  |
| **azure.cdn_profiles.origin_shield_request_count**(count)                                      | Number of requests sent from AFDX to origin shield.*Shown as request*                                                                                                           |
| **azure.cdn_profiles.origin_shield_request_size**(count)                                       | Number of bytes sent as requests from AFDX to origin shield.*Shown as byte*                                                                                                     |
| **azure.cdn_profiles.httpd_do_s_ruleset_is_active**(gauge)                                   | Indicates whether the HTTP DoS ruleset is active in the web application firewall.                                                                                               |

### Service Checks{% #service-checks %}

Azure CDN does not include any service checks.

### Events{% #events %}

Azure CDN does not include any events.

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
