Azure Front Door
Collect Azure Front Door monitoring data.
Configuration¶
Install Func¶
Enable Guance Integration - Extensions - Managed Func. All prerequisites are installed automatically; continue with script installation.
For a self-hosted Func deployment, see Deploy Func yourself.
The GSE edition is recommended
Install the script¶
Tip: Prepare the required Azure app registration information, and assign the subscription's
Monitoring Readerrole to the app registration.
To synchronize Azure Front Door monitoring data, install the collection script: “Guance Integration (Azure-Front Door Collection)” (ID: integration_azure_front_door).
Click Install, then enter the following parameters:
Azure Tenant ID: Tenant IDAzure Client ID: App registration Client IDAzure Client Secret Value: Client secret value; use the value rather than the IDSubscriptions: Subscription IDs, separated by,
Click Deploy Startup Script. The system automatically creates the Startup script set and configures the corresponding startup script.
Once enabled, the automatic trigger appears under Management / Automatic Trigger Configuration. Click Execute to run it immediately without waiting for the scheduled time. After a short wait, review the task records and logs.
Verification¶
- Under Management / Automatic Trigger Configuration, confirm that the task has an automatic trigger, and inspect its records and logs for errors.
- In Guance, check Infrastructure - Resource Catalog for asset information.
- In Guance, check Metrics for the corresponding monitoring data.
Metrics¶
After configuring Azure Front Door monitoring, the default measurement is listed below. You can configure collection of additional metrics.
Measurement: azure_cdn_profiles.
| MetricName | MetricDescribe | Dimensions | Unit |
|---|---|---|---|
request_count_total |
Client request count. | subscription_name, resource_group, resource_name, resource_id, location, httpstatus, httpstatusgroup, clientregion, clientcountry, endpoint | count |
response_size_total |
Response data volume sent to clients. | subscription_name, resource_group, resource_name, resource_id, location, httpstatus, httpstatusgroup, clientregion, clientcountry, endpoint | B |
total_latency_average |
Average end-to-end latency of client requests. | subscription_name, resource_group, resource_name, resource_id, location, httpstatus, httpstatusgroup, clientregion, clientcountry, endpoint | ms |
byte_hit_ratio_average |
Percentage of cache-hit bytes in response bytes. | subscription_name, resource_group, resource_name, resource_id, location, endpoint | percent |
percentage_4xx_average |
HTTP 4XX response ratio. | subscription_name, resource_group, resource_name, resource_id, location, endpoint, clientregion, clientcountry | percent |
percentage_5xx_average |
HTTP 5XX response ratio. | subscription_name, resource_group, resource_name, resource_id, location, endpoint, clientregion, clientcountry | percent |
request_size_total |
Client request data volume. | subscription_name, resource_group, resource_name, resource_id, location, httpstatus, httpstatusgroup, clientregion, clientcountry, endpoint | B |
origin_latency_average |
Average latency of origin requests. | subscription_name, resource_group, resource_name, resource_id, location, origin, endpoint | ms |
origin_request_count_total |
Requests sent to origins. | subscription_name, resource_group, resource_name, resource_id, location, httpstatus, httpstatusgroup, origin, endpoint | count |
origin_health_percentage_average |
Origin health probe success ratio. | subscription_name, resource_group, resource_name, resource_id, location, origin, origingroup | percent |
web_application_firewall_request_count_total |
Requests processed by WAF. | subscription_name, resource_group, resource_name, resource_id, location, policyname, rulename, action | count |
web_application_firewall_js_request_count_total |
WAF JavaScript challenge requests. | subscription_name, resource_group, resource_name, resource_id, location, policyname, rulename, action | count |
web_application_firewall_captcha_request_count_total |
WAF CAPTCHA challenge requests. | subscription_name, resource_group, resource_name, resource_id, location, policyname, rulename, action | count |
web_socket_connections_total |
WebSocket handshake request count. | subscription_name, resource_group, resource_name, resource_id, location, httpstatus, httpstatusgroup, clientregion, clientcountry, endpoint | count |
active_web_socket_connections_total |
Active WebSocket connections at sampling time. | subscription_name, resource_group, resource_name, resource_id, location | count |
average_web_socket_connection_duration_average |
Average WebSocket connection duration. | subscription_name, resource_group, resource_name, resource_id, location, httpstatus, httpstatusgroup, clientregion, clientcountry, endpoint | ms |
Objects¶
{
"measurement": "azure_cdn_profiles",
"tags": {
"cloud_provider": "azure",
"subscription_name": "Example Subscription",
"subscription_id": "00000000-0000-0000-0000-000000000000",
"tenant_id": "00000000-0000-0000-0000-000000000000",
"location": "global",
"region_id": "global",
"resource_group": "example-resource-group",
"resource_name": "example-afd",
"resource_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/example-resource-group/providers/microsoft.cdn/profiles/example-afd",
"resource_kind": "frontdoor"
},
"fields": {
"sku": "{\"name\": \"Premium_AzureFrontDoor\"}",
"provisioning_state": "Succeeded",
"resource_state": "Active",
"front_door_id": "00000000-0000-0000-0000-000000000000",
"origin_response_timeout_seconds": 30,
"tags": "{\"owner\": \"owner@example.com\", \"purpose\": \"integration-validation\", \"retention\": \"until-user-validation-complete\", \"validation-run\": \"41006d\"}"
}
}
Note: Fields in tags and fields may change in future updates.