Its often good practise to review the amount of data being served from the CDN and also the amount of data passing back to the origin servers.
This helps you tune the CDN configuration to improve cache hit rate and also understand where origin data costs are coming from.
section.io has deep metrics on every request passing through the platform. To be able to view data volumes you leverage the Graphite interface which allows you to view, group, summarise and smooth metrics.
We will look at 3 metrics around data usage:
Data served to browsers
Data served from CDN cache (Varnish cache)
Data sent to the origin servers
To view these metrics you can either browser to the Graphite part of our portal:
and then leverage the graphite metric browser to select appropriate metrics and then add a “summarise” function.
Or you can use this URL and update it with your Account, Application and Environment ID:
Fill in the <account_id>, <application_id> and <environment_id> values above
This will give you a chart like:
The blue line above is the bytes sent from CDN to browsers in the period (7 days in this case)
The green line is the bytes served from CDN cache to browsers (HITs from Varnish cache)
The gap between the 2 lines is the volume of data that has gone to the origin servers
Its also possible to use Graphite to take the difference between the 2 lines as a unique metric of its own.
For more information on Graphite please see: