Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to bill my customers that are using my Azure cloud service?

Tags:

rest

c#

wcf

azure

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,

like image 549
Fernando Môra Avatar asked Jan 17 '13 21:01

Fernando Môra


1 Answers

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.

like image 197
Tom Avatar answered Oct 12 '22 10:10

Tom