Docs
Type to search every article.
  1. Docs
  2. Delivery

Statistics

7 min read Updated

On this page
  1. The figures at the top
  2. Dynamic requests
  3. Where visitors came from
  4. Units and the zone list
  5. What is not shown

A zone's statistics page shows what it delivered, how much of that came from the cache, what was fetched from your origin, and where the viewers were. Every figure is in UTC, and most of them are available from the API.

A period is any range up to 366 days that does not end in the future, measured in UTC; hourly detail covers up to 31 days, and a longer period is shown by day. Hourly figures are kept for 90 days and older traffic is kept by day, so a period that starts more than 90 days ago is shown by day whichever detail is chosen. Figures reach the page within a few minutes of the traffic, so the current hour is always still filling.

The figures at the top#

Three figures lead the page: what was delivered to your visitors, what was fetched from your origin, and the cache hit ratio. Under them a bar shows how much of your cacheable traffic came from our cache, with the share said in words, and below that are the request count, the Dynamic requests count once a request in the period could not be cached, and, once something has been refused, the Blocked count.

FigureWhat it counts
Delivered to your visitorsBytes sent to viewers, from the cache or from your origin. This is the bandwidth you are billed for
Fetched from your originBytes your origin sent us, and how much less that is than what was delivered. Never charged
Cache hit ratioThe share of the cacheable bandwidth delivered that came from our cache rather than your origin. Dynamic requests are left out, so it says how well the cache works however much of your traffic is dynamic. The line beneath says whether it was measured by bandwidth or by requests, and how many requests reached your origin: of the cacheable ones, once a dynamic request is in the period. It reads None when every request in the period was dynamic
RequestsViewer requests answered, whether from the cache or from your origin. The line beneath says how many reached your origin
Dynamic requestsRequests no cache could have kept, and their share of all requests (see Dynamic requests). Shown only when the period has one
BlockedRequests your blocking rules refused, by rule. Shown only when something was refused, and never billed

A cache hit is any request your origin never heard of: one the location your visitor reached answered from its own cache, and one it answered with a copy another of our locations already held, such as the zone's Home PoP or a location the Caching strategy fetched it from, and one that joined another visitor's request for the same file already on its way from your origin: that file was fetched once, and counts as fetched for the request that asked first. A request is counted as fetched from your origin only when your origin was asked for it, so a file served from another location's copy is not in Fetched from your origin, and the cache hit ratio counts its bytes as from our cache. The traffic between our locations is never billed.

The cache hit ratio is measured in bytes, because a large file is served in pieces and may be partly cached: if four of a video's five gigabytes came from our cache and one from your origin, the ratio counts the four gigabytes as cached and the one as not, while the request counts as one that reached your origin. Older traffic was counted by requests alone: a period made only of it shows the ratio by requests, and the line beneath begins "Measured by requests"; in a period that mixes the two, the ratio is over the traffic that was measured.

Dynamic requests#

A dynamic request is one that reached your origin and could never have been answered from a cache: a method other than GET and HEAD (a form post, an API call), a request carrying a cookie or an Authorization header on a zone that passes those through, or an answer your origin marked private or no-store, that sets a cookie, or that is never cached at all (a redirect, an error).

Dynamic requests are still requests that reached your origin, and their bytes are delivered and billed like any other, but the cache hit ratio and the bar leave them out: a site whose assets are 95% cached reads 95% however many of its requests are pages. A file that was cacheable but had to come from your origin (the first request for it, or one too large to keep) is a miss, never dynamic, so it still counts against the ratio. The line under the bar says how much of what was delivered was dynamic, such as "93% of your cacheable traffic came from our cache: 2.33 TB of 2.49 TB. The other 94.08 GB delivered was dynamic, made by your origin for each request". Traffic from before dynamic requests were counted reads as cacheable, as it always did.

Fetched from your origin is not what was delivered less the cached share, so the two figures do not add up to the ratio: an answer your origin did not compress is fetched whole and delivered compressed, the pieces read ahead of a viewer count when they arrive, and so does the part of one stopped when its viewer seeked away or every viewer of the file left. The line under the bar says the share in the bytes it is of, such as "40% of what your visitors received came from our cache: 22.03 MB of the 53.99 MB delivered".

A request is one viewer request answered: a hit, or a fetch. A request that had to be passed through to your origin, because of a cookie, an Authorization header or a method other than GET and HEAD, counts as fetched from your origin, and as a dynamic request. A HEAD and a 304 count as requests with no bytes delivered (a HEAD for a file not yet cached asks your origin for its first byte only). What a viewer uploads is not counted as either. Hits and requests that reached your origin add up to Requests exactly.

Not counted at all: requests the edge refused (a signed link that failed, a method a bucket does not accept; a blocked visitor is counted under Blocked instead), the maintenance page, the background refresh of expired files, and the edge's own error pages, with one exception: a large file whose next piece could not be fetched is counted as a request fetched from your origin, with whatever was fetched before it failed. The pieces the edge reads ahead when serving a large file count as origin bandwidth, since your origin sent them.

A zone that has used an origin shield also gets an Origin Shield chart of the bytes the Home PoP sent to the other locations, with the requests it answered for them above it; that is traffic between our own locations and neither viewer traffic nor billed. See Origin shield.

Where visitors came from#

The Where visitors came from card lists the countries your requests came from, with requests, bytes delivered and each country's share. Under them, the Network type rows (VPN networks, Hosting and datacenter networks, Tor exit nodes) count how many of the requests you served came from each, which is the number to read before switching one of those blocking rules on: it is how many real requests the rule would have refused. A request can come from more than one network type, so those rows are not parts of a whole. When more than twelve countries sent traffic, the ten busiest are shown and Show all lists the rest. With one location chosen in Location, every figure in the card is that location's alone.

Once something has been refused, a Served / Blocked switch in the header turns the whole card to what your rules turned away: the countries refused, how many requests the VPN, hosting and Tor rules each refused, and every AS number the zone blocks, with the name it is registered under and how many requests from it were refused. An AS number that sent nothing reads 0, and its name is how you check it is the network you meant. Every share in the Blocked view is of all the requests refused in the period.

Countries and AS numbers are counted per day, so they cover whole UTC days and can reach a little either side of a period that starts or ends mid-day. A country the data cannot place appears as Unknown. Country data comes from DB-IP, network data and AS names from iptoasn. See Blocking visitors.

Units and the zone list#

Bytes here and on the invoice are decimal: a kilobyte is 1,000 bytes, a gigabyte 1,000,000,000 and a terabyte 1,000 gigabytes. The file size limits elsewhere in these articles (10 MB, 5 MB, 100 GB) are binary, so 10 MB there is 10,485,760 bytes. The zone list on the Zones page shows each zone's bandwidth for the current calendar month, in GB and in TB from 1,000 GB, and its cache hit ratio of cacheable traffic (None for a zone with no traffic this month, or whose every request was dynamic), both in UTC.

What is not shown#

There is no breakdown by URL or by status code, and no per-hostname figure. The statistics describe traffic, not the machines that carried it: which server answered and how a file was stored are not published. Requests, cache hits and misses, dynamic requests and their bytes, bandwidth, the bytes from our cache, origin bandwidth and the Blocked total, with the countries and the fifty busiest networks by AS number, are available from the API; the Origin Shield chart, the Blocked breakdown by rule, the served-from-VPN, hosting and Tor counts and the names of the AS numbers you block are only on this page.