All Products
Search
Document Center

CDN:Real-time monitoring

Last Updated:Apr 01, 2026

Real-time monitoring gives you 1-minute granularity data on CDN traffic, bandwidth, and origin fetch status — with a data latency as low as 5 minutes. Use it to detect traffic spikes, track cache efficiency, and identify HTTP errors as they happen.

How it works

All real-time monitoring data is collected based on client IP addresses. Each IP address maps to a specific region or carrier, so you can filter monitoring data by region, carrier, or both.

Because billing is calculated based on traffic and bandwidth measured at CDN points of presence (POPs) — not client IPs — monitoring figures and billing figures use different statistical methods and may not match. For metering data that corresponds to your bills, see Usage overview.

Metrics

Real-time monitoring tracks three groups of metrics. For each group, select a domain name, region, carrier, and time range to view the data.

Requests

Bandwidth, traffic, request count, and queries per second (QPS) for your accelerated domain names.

MetricDescription
BandwidthThe bandwidth consumed by client requests at the specified time
TrafficThe cumulative data volume transferred to clients
RequestsThe total number of requests received by CDN POPs
QPSThe number of requests processed per second

Related API operations:

Back-to-origin routing

Back-to-origin bandwidth and back-to-origin traffic for your accelerated domain names. These metrics show how much data CDN fetches from your origin server — a sustained increase may indicate a drop in cache hit ratio.

MetricDescription
Back-to-origin bandwidthThe bandwidth consumed when CDN POPs fetch content from your origin server
Back-to-origin trafficThe cumulative data volume fetched from your origin server by CDN POPs

Related API operations:

Cache hit ratio and HTTP status codes

Request hit ratio, byte hit ratio, and the breakdown of 2xx, 3xx, 4xx, and 5xx HTTP status codes for your accelerated domain names.

MetricDescription
Request hit ratioThe percentage of requests served from the CDN cache without fetching from origin
Byte hit ratioThe percentage of response bytes served from the CDN cache
HTTP status codesThe count of responses in each status code range (2xx, 3xx, 4xx, 5xx)

Edge response status codes:

  • 2xx Success: The POP successfully processed the client request and returned the resource or a confirmation.

  • 4xx Client error: The POP could not process the request because the request is invalid — for example, insufficient permissions. Modify the client request and try again.

  • 5xx Server error: An internal error occurred on the POP while processing the request — for example, the POP may be overloaded. Check your origin server configuration, such as its network settings.

For a full list of status codes and recommended actions, see HTTP status codes.

Related API operations:

Query limits

The maximum time range per query, data latency, and historical data availability vary by time granularity and whether you query via the console or API.

Console

Time granularityMaximum time range per queryHistorical data availableData latency
1 minute1 hour7 days5 minutes
5 minutes3 days7 days15 minutes

API

Time granularityMaximum time range per queryHistorical data availableData latency
1 minute1 hour7 days5 minutes
5 minutes3 days93 days15 minutes
1 hour31 days186 days4 hours

Monitoring traffic vs. log-calculated traffic

Traffic data queried through monitoring or usage features in the console (or via API) is typically 1.1 times the traffic data calculated from CDN logs. This difference is expected — monitoring and usage queries account for protocol overhead that raw log data does not capture. For more information, see Why is there a discrepancy between traffic data from monitoring queries, usage queries, and log analysis?

Choose the right monitoring feature

Alibaba Cloud CDN provides three ways to query monitoring and usage data. The right choice depends on the time granularity you need and how you want to filter results.

FeatureData collection basisFilter dimensionsMinimum granularityMinimum data latency
Real-time MonitoringClient IP addressRegion, carrier1 minute~5 minutes
Resource MonitoringClient IP addressRegion, carrier, protocol layer (HTTP, HTTPS, QUIC, IPv4, IPv6)5 minutes~15 minutes
UsageCDN POPsBilling region (e.g., Chinese mainland, Asia Pacific 1, North America)

Use Real-time Monitoring when you need the fastest view of current traffic behavior — for example, to catch a traffic spike or confirm that a configuration change is taking effect.

Use Resource Monitoring when you need to analyze traffic by protocol layer, or query historical data beyond 7 days. For more information, see Resource Monitoring.

Use Usage when you need data that maps directly to your bill — queried by billing region. For more information, see Query resource usage.

View real-time monitoring data

  1. Log on to the Alibaba Cloud CDN console.

  2. In the left navigation pane, choose Monitoring & Usage Analytics > Real-time Monitoring.

  3. On the Real-time Monitoring page, select a metric and set query conditions (domain name, region, carrier, time range), then click Search.

The page displays line charts for the selected metric. Data reflects the previous minute and covers up to the last 7 days.

实时监控

What's next

  • To query usage data for billing reconciliation, see Usage overview.

  • To analyze traffic by protocol layer or query longer historical ranges, see Resource Monitoring.

  • For a description of HTTP status codes and troubleshooting guidance, see HTTP status codes.