Monday, March 3, 2014

Part 1 - Creating One-Click Cluster Capacity Dashboard Using vCOps!

Let me start this article by thanking & welcoming  VEEAM as the first official sponsor of vXpress. Their support to the Virtualization community is invaluable. I would request my readers to have to look at their excellent range of products which helps you Protect & Manage your virtual infrastructure in an effective & modern way. You can know more about them by clicking on the Sponsor Banner from Veeam on the right hand pane of this page.

With this article (Part 1), I wanted to share my recent experience and work I have done with vCenter Operations Manager Custom Dashboards. In the past I have written articles which help you create your own .XML files for creating interactions within vCOps Custom Dashboards Widgets. With this article I wanted to take the same interactions and customization to modernize and transform the Executive Capacity Dashboard I created & shared with you all in this post.

Let me begin with sharing the FINAL OUTCOME i.e. the dashboard which I created and the problems it is going to solve and then we will have a look at the process of designing this dashboard & the related customization. 




Here is a quick summary & features of this dashboard:-

-> On the left pane you have the list of CLUSTERS in the environment being monitored in your Virtual Infrastructure.

-> Once you select a given cluster you get the Capacity Overview of the cluster on the right hand scoreboard widget.

-> The Scoreboard gives you the Summary of the Cluster, Consolidation Ratios, Capacity Remaining, Waste & Stress Data.

-> The Colors with each score is either on the basis of VMware Configuration Maximums. (For Eg. if the number of hosts comes out to be 33, the box will turn RED as vSphere 5.x currently supports a 32 node ESXi Cluster. You have the options of defining these thresholds while creating the XML which I will share shortly.

-> This dashboard can help CXOs to get the details of the capacity of each cluster at a click of a button and can easily help them make procurement decisions.

-> This can help IT teams to quickly decide which clusters can be used for any new Virtual Machine Demand from the business, etc.

-> This can help large service providers to keep a tap on the resource utilization and available capacity at a click of a button.

The beauty behind this customization is that this dashboard can be exported right from my vCOps instance and imported into any vCOps instance with a few steps and it will work like a charm. With this part, let me just share the way by which you can successfully RE-USE this dashboard in your vCOps instance, given you have the vCOps advance or Enterprise edition, since you need the Custom UI to view this.

In this Part 1, I will guide you with steps on how to get this dashboard in your environment. In Part 2, I will explain on how you can create the interaction xml which will help you create more such interactions as per your own requirements. This Dashboard requires 2 XML files. Click on the files to download them.

Cluser-XML.xml 

Cluster-Capacity Dashboard.xml 

The Cluster-XML.xml file is the one which has all the metrics which I am trying to display in the scorecard on the right as soon as a cluster is selected on the left pane. I will tell you how to write this file in the Part 2 as I mentioned earlier. The Cluster-Capacity Dashboard.xml  file is just a simple export of the dashboard from the Custom UI. You can do the same for any dashboard which does not have any dependencies for resource ids (unique identity number given by vCOps to each of its inventory object). You would take a 2 step approach to use these files to get the final result.

STEP 1 - Place the Cluser-XML.xml in a specific location of the UI VM

1- Use an SCP software to login to the UI VM using the root credentials. I am using WinSCP.

2- Change the directory to the following location /usr/lib/vmware-vcops/tomcat-enterprise/webapps/vcops-custom/WEB-INF/classes/resources/reskndmetrics

3- Drag and drop the Cluster-XML.xml file from your system where you downloaded it to this directory as shown in the screenshot below.



4- Right click on the target file and click on Properties to change the permission level to 644 (For Read & Execute rights) as shown below.




You are done with STEP 1. Let's look at STEP 2.

STEP 2 - Import Cluster-Capacity Dashboard.xml  dashboard in vCOps Custom UI

1- Login to vCOps Custom UI with an ID with Administrative Privileges.

2- Click on the Import Option under Dashboard Tools.



3- Browse to the location where you have saved the Cluster-Capacity Dashboard.xml and click on Import.



4- You will get a dialog box that your dashboard it successfully imported. Close the same and click on the Dashboards Menu to find a new dashboard named "CLUSTER-WISE CAPACITY OVERVIEW"


5- Click on this and you will get the dashboard which we saw in the beginning of this post. Ain't it simple :-)

6- In case you do not see a blank dashboard, Edit the Resources Widget on the Left Pane, Browse to Resource Kinds - > Cluster Compute Resource -> Click on All Attributes once and click on OK. This will get you the list of the clusters and you will be good to go!!


In the next part I will explain you that how you can create your own .XML files to create more dashboards which are useful for your organization. Would appreciate a re-tweet / share and a comment on this article if you find it interesting and the dashboard useful for the bosses who want a single pane to have a look at the entire capacity of your Virtual Infrastructure.

Before I close this article, I would also want to highlight that, Lior Kamrat, who like myself is a part of VMware Consulting group has started to accumulate all the great resources available on vCOps on a dedicated page on his blog called IMALLVIRTUAL.COM. I would highly recommend you bookmark the page if you are using, learning about or want to become an expert on vCenter Operations Manager. He has also done a blog series on One Click Capacity Planning Dashboards which gives you another angle of Capacity in your Virtual Datacenter. It is a must read as well.

Stay tuned for Part 2 and also please do not forget to VOTE for vBLOG 2014 Contest.  We (vCommunity Bloggers) need your support to keep us going and continue delivering the quality content to you. 


Share & Spread the Knowledge!!



3 comments:

  1. I'm struggling to put the cluser-xml.xml resource kind to proper directory after upgrading to vrealize 6. Any ideas where to put it Sunny?
    Thanks

    ReplyDelete
  2. Viktor, this xml would not work with vROps 6.0. I am working on recreating this dashboard on the new version... Stay tuned!

    ReplyDelete
  3. Hi Sunny,

    Have you recreated XML files for dashboard on new versions?

    ReplyDelete