I have a WCF RESTful application hosted on an Azure cloud service and I need to know how to bill my customers that are using my service.
Actually I want to bill them by the bandwidth comsumption. I mean to consider only the HTTP response package.
Is there a way to get the bandwidth comsumption in my application, so that I can register it, and later on, send an invoice for each customer?
Someone could post here a code sample?
Regards,
I think the easiest way (and very reliable) of doing that would be gather Azure Web Role IIS logs and parse them, getting number of bytes sent to specific clients.
There is very nice article Analyzing 1 TB of IIS logs with Hadoop Map/Reduce on Azure describing similar process.
I hope that will be helpful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With