---
title: Azure Static Web Apps
description: Track site traffic, errors, and API usage for Azure Static Web Apps.
breadcrumbs: Docs > Integrations > Azure Static Web Apps
---

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

# Azure Static Web Apps
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 Static Web Apps](https://learn.microsoft.com/en-us/azure/static-web-apps/overview) builds and hosts static front ends with serverless API backends, deployed straight from a code repository. This integration surfaces site and CDN request and error rates and managed function and data API usage.

## 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.web_staticsites.count**(gauge)                    | The count of Azure Static Web Apps resources.                                                                                 |
| **azure.web_staticsites.bytes_sent**(count)              | Number of bytes sent in responses from the static web app.*Shown as byte*                                                     |
| **azure.web_staticsites.cdn_percentage_of4_xx**(gauge) | Percentage of CDN-served requests whose response status code was 4xx.*Shown as percent*                                       |
| **azure.web_staticsites.cdn_percentage_of5_xx**(gauge) | Percentage of CDN-served requests whose response status code was 5xx.*Shown as percent*                                       |
| **azure.web_staticsites.cdn_request_count**(count)      | Number of client requests served by the static web app CDN.*Shown as request*                                                 |
| **azure.web_staticsites.cdn_response_size**(count)      | Number of bytes sent as responses from the CDN to clients.*Shown as byte*                                                     |
| **azure.web_staticsites.cdn_total_latency**(gauge)      | Time from when the CDN received the client request until the last response byte was sent to the client.*Shown as millisecond* |
| **azure.web_staticsites.data_api_errors**(count)        | Number of Data API requests that returned an error.*Shown as error*                                                           |
| **azure.web_staticsites.data_api_hits**(count)          | Number of requests served by the static web app Data API.*Shown as hit*                                                       |
| **azure.web_staticsites.function_errors**(count)         | Number of managed function invocations that returned an error.*Shown as error*                                                |
| **azure.web_staticsites.function_hits**(count)           | Number of requests served by the static web app managed functions.*Shown as hit*                                              |
| **azure.web_staticsites.site_errors**(count)             | Number of static content requests that returned an error.*Shown as error*                                                     |
| **azure.web_staticsites.site_hits**(count)               | Number of requests served for the static web app static content.*Shown as hit*                                                |

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

Azure Static Web Apps does not include any service checks.

### Events{% #events %}

Azure Static Web Apps does not include any events.

## Troubleshooting{% #troubleshooting %}

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