Fernando Môra
Fernando Môra

Reputation: 106

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

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,

Upvotes: 5

Views: 378

Answers (1)

Tom
Tom

Reputation: 26829

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.

Upvotes: 6

Related Questions