I am building a SaaS which allows customers there own space. They get a subdomain but they can also add their own custom domain by setting their CNAME to my server. The subdomains and custom domains are not parked, they just point to my server and then my app checks the URL and displays the correct content.
In this circumstance, how would I monitor bandwidth for each subdomain and domain?
I'm using PHP if that makes any difference.