Skip to content

Commit 570c2f5

Browse files
authored
Merge pull request #292164 from craigshoemaker/swa/supported-metrics
[Static Web Apps] Add supported metrics article
2 parents 10c049d + 238677a commit 570c2f5

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

articles/static-web-apps/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@
224224
- name: Overview
225225
href: monitor.md
226226
displayName: Application Insights
227+
- name: Supported metrics
228+
href: metrics.md
227229
- name: Resources
228230
items:
229231
- name: Supported languages and runtimes

articles/static-web-apps/metrics.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: Supported metrics for managed Functions in Azure Static Web Apps
3+
description: List of metrics collected for managed Functions in Azure Static Web Apps
4+
services: static-web-apps
5+
author: craigshoemaker
6+
ms.service: azure-static-web-apps
7+
ms.topic: how-to
8+
ms.date: 12/20/2024
9+
ms.author: cshoe
10+
ms.custom:
11+
---
12+
13+
# Supported metrics for managed Functions in Azure Static Web Apps
14+
15+
Azure Static Web Apps collects a series of metrics when you add a managed API to your application.
16+
17+
To view metrics on your app, open your static web app in the Azure portal and select **Monitoring**. In the *Monitoring* query window, you have access to metrics that report activity of your application.
18+
19+
## Supported metrics
20+
21+
The following metrics are tracked for your application:
22+
23+
| Name | Description |
24+
|---|---|
25+
| `BytesSent` | The number of outgoing bytes. |
26+
| `CdnPercentageOf4XX` | Percentage of requests that result in `400` series server responses. |
27+
| `CdnPercentageOf5XX` | Percentage of requests that result in `500` series server responses. |
28+
| `CdnRequestCount` | Number of requests that make it to the site when enterprise grade edge is enabled. |
29+
| `CdnResponseSize` | Size of CDN responses in bytes. |
30+
| `CdnTotalLatency` | Time, measured in milliseconds, representing the CDN latency. |
31+
| `DataApiErrors` | Number of errors produced from API calls. |
32+
| `DataApiHits` | Number of hit to API endpoints. |
33+
| `FunctionErrors` | Number of errors encounter by managed API functions. |
34+
| `FunctionHits` | Number of hits to managed API functions. |
35+
| `SiteErrors` | Number of errors encountered by the website. |
36+
| `SiteHits` | Number of hits to the website. |
37+
38+
## Related content
39+
40+
* [Monitoring in Azure Static Web Apps](./monitor.md)

0 commit comments

Comments
 (0)