How to monitor number of requests to azure cdn + storage endpoints

dhoh 0 Reputation points
2024-03-06T08:43:22.1366667+00:00

hello! I have an inquiry regarding azure cdn.

We are currently using CDN + storage together. There are many files in the storage, so the endpoint is divided into several. I would like to ask if there is a way to check or monitor the number of requests to the endpoint!

I tried to set up monitoring, but it was very difficult because I am not familiar with Azure.

Azure Storage Explorer
Azure Storage Explorer
An Azure tool that is used to manage cloud storage resources on Windows, macOS, and Linux.
231 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 18,527 Reputation points Microsoft Employee
    2024-03-06T21:54:05.1766667+00:00

    @dhoh Thanks for posting your query on Microsoft Q&A.

    With Azure CDN from Microsoft, you can enable raw logs. These logs provide rich information about every request that the CDN receives. Unlike activity logs, which focus on operations done on Azure resources, raw logs specifically capture details about CDN requests.

    To configure raw logs for your Azure CDN profile:

    • Sign in to the Azure portal.
    • Navigate to your CDN profile.
    • Under Monitoring, select Diagnostics settings.
    • Add a new diagnostic setting and choose AzureCdnAccessLog as the log type and select the destination.
    • Note that raw logs are available at the profile level, while aggregated HTTP status code logs are available at the endpoint level.

    User's image

    Metrics:

    Azure CDN provides key metrics to monitor:

    • Byte Hit Ratio: Indicates cache efficiency.
    • Request Count: Shows the total number of requests.
    • Response Size: Measures the size of responses.
    • Total Latency: Reflects the time taken for requests.

    You can break down these metrics by different dimensions.

    Alerts:

    • Set up alerts for critical metrics to receive notifications when thresholds are breached.

    User's image

    Advanced HTTP Reports:

    • From the CDN profile page, access Advanced HTTP Reports.
    • This is a feature of Azure CDN Premium from Edgio only, to configure rules on Azure CDN from Microsoft please use the Standard rules engine. Advanced rules are not available for Azure CDN from Akamai.
    • Explore geography reports (map-based) and other detailed insights.

    Hope that helps.

    If you have questions, please let me know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    1 person found this answer helpful.
    0 comments No comments