Time to time you might want to know what the total transaction counts are when you perform any storage activity which included Windows Azure storage.
For example when you mount a VHD from Windows Azure Storage to you Azure VM or you write total X number of file included Y MB/GB of data. I decided to write this article to answer all of these questions.
First you really need to understand how Windows Azure Billing works and there is no better place then the link below:
The above link explains how Windows Azure Billings works along with few examples as below:
Now please follow given steps to collect Windows Azure Storage REST API level these details:
Step 1: Download CloudBerry Explorer for Windows Azure Version 1.4.1 + http://www.cloudberrylab.com/microsoft-azure-explorer-pro.aspxStep 2: Now create a Windows Azure Storage Service and configured in CloudBerry Azure Blob Storage Explorer. After configuration please enabled Storage Metrics as below:2.1 Open menu Analytics > Settings: 2.2 Select your Azure Storage Name: 2.3 Now enabled logging as below: (You can also select “Delete data older then X days” as well if want) 2.4 Now Metrics data as below: (You can also select “Delete data older then X days” as well if want)
2.5 Select Apply to confirm all of above settings.
Step 3: Now for testing please copy a file in your above configured Windows Azure Storage. As you can see below I have copied 64MB VHD to my Azure Storage.
Step 4: Now let’s check the Statistics for just copy operation. 4.1 Go to Analysis > View Log as below:
4.2 You will a long list of table for each Storage API used for the transaction. If log is not visible please try to set the Date Interval correctly. Log Analysis:You can also copy/save the log and Open in TextAnalysisTool.NET (Download from this link) to parse as below:
Or you can use Microsoft Excel 2010 to filter the log file as below to get API specific details:
This way you can get API Specific metric data for your Azure Storage.
Very nice post. I do like reading it.
So I tried the free version of this product. The log is empty after turning on the metrics and uploading a 3MB BLOB as well as downloading 4 BLOBS over HTTP. Doesn't show any activity at all.