Are you a startup?
Get BizSpark cloud access
Get up to $3,700 of cloud benefits
Don’t have MSDN?
Here’s cloud access
New source code has been published that lets you meter tenant-level consumption of various Windows Azure resources such as bandwidth, storage, SQL Azure, and compute.
The Cloud Ninja Multi-Tenant Metering Block (CNMB) tenant-level meters, application level aggregates, rich query model based on OData, extensibility to implement customer meters. It comes with out-of-box meter providers for bandwidth, storage, SQL Azure, and compute. In future we will add providers for Tomcat and CDN.
You can write your own custom provider if you wants to meter application specific resources.
Get Cloud Ninja Multi-Tenant Metering Block (CNMB) on Codeplex.
CNMB includes HTML5 portal to visualize tenant and app level usage. But all data can be queried using OData API, which enables interesting mash-ups in PowerPivot and integration with external systems like billing. You can try Live Demo here and download full source code from CodePlex. The live demo is currently metering our Cloud Ninja application. When you try the demo, check out links on home page to app-level, tenant-level usage, PowerPivot dashboard, and OData feed.
Here are some screen shots from CNMB.
Our very first Cloud Ninja sample included some metering capabilities along with many other SaaS concepts such as monitoring, scaling, provisioning, etc.
Given the demand for multi-tenant metering, we felt that there is a need for stand-alone metering sub-system that is isolated from main SaaS application, easy to deploy, based on standards, and extensible. The outcome of that effort is CNMB.
Easy to Use: CNMB works with existing multi-tenant SaaS application in a non-intrusive manner. It needs simple configuration to point to SaaS application’s storage account and SQL Azure database and simple regular expressions to associate tenants with resource consumption.
Economical: CNMB can be deployed in a single web role, which hosts UI, Web Services, and metering workers. Data schema is optimized so that 1GB SQL Azure database can hold an entire year’s worth data for thousands of tenants.
Standards Based: All data in and out is via authenticated OData API. OData allows rich query model on top of meter data. We support both JSON and Atom payloads. This enables 3rd party apps like PowerPivot and external systems like billing to consume meter data through industry standard API.
Extensible: CNMB has multiple levels of extension points from writing your own tenant resolver, defining customer meters, and developing customer meter providers.
Bruce D. Kyle ISV Architect Evangelist | Microsoft Corporation