This project provides a Node.js package that makes it easy to access Windows Azure Storage Metrics.
With Windows Azure Websites you can deploy node.js applications to the cloud in just seconds using git.
For documentation on how to host Node.js applications on Windows Azure, please see the Windows Azure Node.js Developer Center.
- Capacity Metrics
- Retrieve daily capacity metrics for all blobs in an Azure account
- Transaction Metrics
- Retrieve hourly transaction metrics for all blobs, queues and tables in an Azure account
- Filter by date
- Specify a begin date and optional end date when retrieving metrics
To get the source code of the SDK via git just type:
git clone https://github.com/AltaModaTech/azure-metrics-for-node.git
cd ./azure-metrics-for-node
Alternatively, to get the source code via the Node Package Manager (npm), type
npm install azure-metrics-for-node
You can use these packages against the cloud Windows Azure Services.
var opts = {};
opts.beginDate = new Date().addDays(-5); // Retrieve the last 5 days of metrics
var metricsService = azureMetrics.createMetricsService();
metricsService.getBlobCapacities( opts, function(error, capacityEntities){
if(error === null){
// use capacityEntities JSON data
}
});
If you encounter any bugs with the library please file an issue in the Issues section of the project.