Metering in IBM SmartCloud Provisioning

Share this post:

One of the messages behind cloud computing is pay-per-use: The adoption of a virtualized, standardized, self service and automated environment should include the possibility to be charged only for the used resources.

IBM SmartCloud Provisioning offers the messages of low complexity, low administration and ease of use.

Keeping these messages in mind, I was thinking of how to extract metering information. I had in mind something easy, doable also by people who definitely do not want to invest in programming, and that does not need any modification to database tables to store historical data.

So, I looked at the available IBM SmartCloud Provisioning interfaces and I found a couple of command-line commands that could help me achieve my goal:

  • iaas-describe-resources-inuse-by-access
  • iaas-describe-accesses-by-user

The first command displays the number of images, cores, and the amount of memory and disk space in use by a specific access ID. This command shows the key measures that, in cloud computing, are usually considered for usage and accounting.

The second command shows the relationship between access IDs and user IDs. This mapping helps in building metering information per user and not per access ID. In a simple environment, the map is 1-1; however, you might have the same user accessing more VM regions, for example, and therefore having multiple access IDs associated.

Given these two commands, setting up a couple of cronjobs/periodic tasks can be quite straightforward (depending on whether you want to do it on Linux or on Windows), and that with a predefined sequence (for example once an hour) their output will be stored in a temporary file.

You can then have a another cronjob/periodic task that sums up all this information daily, per user, maybe adding your specific rate codes. If you choose to store this data for example in a CSV file, then you can easily import it into a reporting engine.

More stories

Why we added new map tools to Netcool

I had the opportunity to visit a number of telecommunications clients using IBM Netcool over the last year. We frequently discussed the benefits of have a geographically mapped view of topology. Not just because it was nice “eye candy” in the Network Operations Center (NOC), but because it gives an important geographically-based view of network […]

Continue reading

How to streamline continuous delivery through better auditing

IT managers, does this sound familiar? Just when everything is running smoothly, you encounter the release management process in place for upgrading business applications in the production environment. You get an error notification in one of the workflows running the release management process. It can be especially frustrating when the error is coming from the […]

Continue reading

Want to see the latest from WebSphere Liberty? Join our webcast

We just released the latest release of WebSphere Liberty, It includes many new enhancements to its security, database management and overall performance. Interested in what’s new? Join our webcast on January 11, 2017. Why? Read on. I used to take time to reflect on the year behind me as the calendar year closed out, […]

Continue reading