Monday, April 6, 2015

The return of the One Click Cluster Capacity Dashboard on vROps 6.0

Let me begin this post by thanking all the readers of vXpress who voted this year during the TopvBlog2015 survey. I am happy to share that your support and encouragement has helped vXpress retain a spot in the Top 50 Virtualization blogs in the year 2015 as well by being ranked as number 38 in the world. Here are the full results of this years ballot.  I will continue to share my experiences through this blog and I hope that the quality and the quantity of the content increases this year as compared to the previous year.

On this note, I should share that in March 2014, I wrote a post on creating a one-click cluster capacity dashboard in vCOps. I must say that the response I got on that post was enormous and that dashboard was replicated in hundreds of vCOps installations across the globe. Since the release of vRealize Operations Manager, I have received an over-whelming amount of requests to re-create the one click cluster capacity dashboard on vROps 6.0. I should mention here that the dashboard which I created with vCOps 5.x would not work with vROps 6.0, since a number of metrics have changed in vROps 6.0 and the one which remain are also laid in a different pattern within the database. 


So without further ado, let me quickly show you the face of the NEW ONE CLICK CLUSTER CAPACITY DASHBOARD....




Just like the previous version of the dashboard, you would need to click on the cluster name on the left pane which will give you the details of the cluster and the important capacity metrics. With vROps 6.0, I have selected the metrics which I believe are important and would give you an overview of the cluster. Let me quickly explain these 16 metrics to you.

  • Total HostsTotal number of hosts in the cluster
  • Total Datastores = Total number of datastores in the cluster
  • Total VMsTotal number of virtual machines
  • Powered on VMs = Number of powered on VMs in the cluster
  • VM:HOST Average number of running virtual machines per running host.
  • vCPU:pCPU Ratio of CPU consumption to provision based on consumer demand
  • vMEM : pMEM = Ratio of Memory consumption to provision based on consumer demand
  • WASTAGE% = Overall score of waste, on a scale of 100
  • VM Remaining Average = Capacity remaining based on average consumer demand
  • CPU - VM Remaining = Capacity remaining based on average consumer CPU demand
  • Memory - VM Remaining = Capacity remaining based on average consumer Memory demand
  • Disk - VM Remaining = Capacity remaining based on average consumer Disk Space demand
  • VM Remaining Large = Capacity remaining based on Large consumer demand
  • VM Remaining Medium = Capacity remaining based on Medium consumer demand
  • VM Remaining Small = Capacity remaining based on Small consumer demand
  • VM Remaining Average = Capacity remaining based on average consumer demand
In case you want some more or other metrics to show up in your scoreboard widget, then you can refer to the vROps Admin Guide here which gives you the description of various metrics available.

Now let me tell you how to replicate this dashboard in your environment. Here are the pre-requisites:-


  • vRealize Operations Manager 6.0.1
  • Advanced Edition or Above
  • Administrative Access to vROps
  • Internet Explorer or Mozilla Firefox

Here are the steps to replicate the dashboard.

  • Login to your vROps instance with an administrator account. (This could be to any instance of the cluster in case you are running a vROps Cluster).

  • Click on Content - > Manage Metric Config -> Expand the folder "ReskndMetric" -> Click on the Green PLUS Sign to add a new XML -> Name the file as "cluster-cap" (without .xml extension) Copy the xml content highlighted in RED from below and paste it on the right window -> Click on Save.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<AdapterKinds>
   <AdapterKind adapterKindKey="VMWARE">
<ResourceKind resourceKindKey="ClusterComputeResource">

<Metric attrkey="summary|total_number_hosts" label="Total Hosts" unit="" yellow="63" orange="64" red="65" />

                <Metric attrkey="summary|total_number_datastores" label="Total Datastores" unit="" yellow="255" orange="256" red="257" />
                <Metric attrkey="summary|total_number_vms" label="Total VMs" unit="" yellow="9999" orange="10000" red="10001" />
<Metric attrkey="summary|number_running_vms" label="Powered On VMs" unit="" yellow="9999" orange="10000" red="10001" />

                <Metric attrkey="summary|avg_vm_density" label="VM : HOST" unit=":1" yellow="15" orange="30" red="40" />
                <Metric attrkey="cpu|demand|vConsumption.per.pConsumption" label="vCPU : pCPU" unit=":1" yellow="5" orange="6" red="7" />
                <Metric attrkey="mem|demand|vConsumption.per.pConsumption" label="vMEM : pMEM" unit="memory" yellow="2" orange="3" red="4" />
               <Metric attrkey="badge|waste" label="WASTAGE%" unit="%" yellow="20" orange="30" red="40" />

<Metric attrkey="summary|capacityRemainingUsingConsumers_average" label="TOTAL VM REMAINING" unit="" yellow="10" orange="5" red="0" />
                 <Metric attrkey="cpu|capacityRemainingUsingConsumers_average" label="CPU - VM REMAINING" unit="" yellow="10" orange="5" red="0" />
                 <Metric attrkey="mem|capacityRemainingUsingConsumers_average" label="MEMORY - VM REMAINING" unit="" yellow="10" orange="5" red="0" />
<Metric attrkey="diskspace|capacityRemainingUsingConsumers_average" label="DISK SPACE - VM REMAINING" unit="" yellow="10" orange="5" red="0" />

<Metric attrkey="summary|capacityRemainingUsingConsumers_large" label="VM REMAINING-LARGE" unit="" yellow="10" orange="5" red="0" />
               <Metric attrkey="summary|capacityRemainingUsingConsumers_medium" label="VM REMAINING-MEDIUM" unit="" yellow="10" orange="5" red="0" />
<Metric attrkey="summary|capacityRemainingUsingConsumers_small" label="VM REMAINING-SMALL" unit="" yellow="10" orange="5" red="0" />
               <Metric attrkey="summary|capacityRemainingUsingConsumers_average" label="VM REMAINING-AVERAGE" unit="" yellow="10" orange="5" red="0" />

      </ResourceKind>
   </AdapterKind>
</AdapterKinds>



Once you are done with creating this file, you now need to import a dashboard which is called "CLUSTER CAPACITY DASHBOARD" To import this dashboard you need to download the following file: CLUSTER-CAP.json (click on the filename to download).

Once you have this file, let's see the steps to import it.


  • Login to your vROps instance with an administrator account. (This could be to any instance of the cluster in case you are running a vROps Cluster).
  • Click on Content - > Dashboards -> Actions -> Click on the Import Dashboard.

  • Browse to the CLUSTER-CAP.json file and click on Ok.

This will bring the Cluster Capacity Dashboard in the list of dashboards which you have..



Hope you enjoy the new Cluster Capacity Dashboard!!


Share & Spread the Knowledge!

30 comments:

  1. Great job as always Sunny! Small correction:

    Click on Content - > Manage Metric Content -> ...

    SHOULD READ

    Click on Content - > Manage Metric CONFIG-> ...

    Cheers!

    ReplyDelete
  2. Thanks.. I will update the article... Glad you liked the dashboard!!

    ReplyDelete
  3. I don't understand what super metric you are using for the CPU - VM Remaining.

    ReplyDelete
  4. It is not a Super Metric, its just a normal metric



    What don't you understand, I can help you!!

    ReplyDelete
  5. So I am trying to understand why my dashboard shows no more availalbe vm's based on the CPU-VM Remainaing.

    http://imgur.com/IbuAQau

    When if I look from the vcenter side I am barely using 10% of what is possible.

    http://imgur.com/dyvua4S

    ReplyDelete
  6. That is because of the policy which drives the results.. Have you made changes to the default policy. Also, if you select the same cluster and look at the capacity number within the environment do you see the same numbers??

    ReplyDelete
  7. Ok that was what was going on, I had not changed the Default Policy but i had applied some of the out of the box Policy's to some of my Compute Clusters (the ones having issues). I have removed those Object from those Policy's and Now the numbers look much more accurate. Thanks for you help Sunny! Your Dashboard for the previous version was one of my favorites, and I believe you have done it again with this iteration.

    ReplyDelete
  8. Awesome... Glad you solved the issue... Rather corrected the policy. The out of the box policies are either too conservative or too aggressive. I prefer using the Base Settings and then make my own changes as per the requirements.

    I am glad you liked the Dashboards...

    Stay tuned for more to come.

    Regards
    Sunny

    ReplyDelete
  9. Hi Sunny. I'm having same problem as Unknown above. I'm not really sure how to check in regards to default policy. I made a change to it where i enabled super metric i added on all object types and cluster compute resource like its listed here:
    https://www.dropbox.com/s/eiyy2aijx61lv4c/Screenshot%202015-06-11%2009.12.02.png?dl=0

    is this what is causing the issue or is it something else?

    Thanks

    Alex

    ReplyDelete
  10. The super metric has nothing to do with the number of VMs Remaining Metric. The Default Policy which you are using has a Consolidation Ratio which is on the basis of allocation. Either this ratio or the demand for that particular metric is driving the result for number of VMs remaining.

    ReplyDelete
  11. how do i import dashboard in vrops 6.1.. don't seen an option

    ReplyDelete
    Replies
    1. Hey Kris... Could you please explain as to what option you are referring to. If it is the Import Dashboard option under, Content->Dashboards-> Import Dashboards is greyed out then it could be a permissions issue. Please provide more details to provide you a solution.

      Delete
    2. Hi,
      Using 6.1.0.3292452. Dont'see the import Dashboard option.

      Tried creating new admin user with access to all objects. Same issue. See the screenshot below.

      https://drive.google.com/file/d/0B2_Uevjq-n4MRHlickowWV81Mm8/view?usp=sharing


      Delete
    3. Just realised vrops requires standard version of license key aswell.. which resolved the issue. thank you offering to help

      Delete
    4. Yup.. you need the advanced or enterprise edition..

      Delete
  12. Hello, is there a way to run a report on this dashboard? When I try to setup a report it doesn't run on the cluster I select and the format it a little off.

    ReplyDelete
    Replies
    1. Yeah.. The report of dashboard feature in vROps 6.1 and beyong can only handle a certain screen area, make sure you are within that area to have a single page worth of view

      Delete
  13. Just set up the dashboard but it shows ? for all metrics besides total hosts, total datastores, total VMs, running VMs and VM count per host. Any ideas?

    ReplyDelete
    Replies
    1. What is the version if vROPs u are using. This is for vROps 6.0 only.

      Delete
  14. I got this all configured but the dashboard is blank aside from the cluster chooser. Any guidance would be helpful.

    Thanks,
    mike

    ReplyDelete
    Replies
    1. Click in the edit icon to edit the scorecard widget. Ensure that cluster-cap file is selected for interactions mode. If not select is from the drop down and click in save and then click on any cluster in the ovject list.

      Delete
    2. That was it, it was blank. Thanks for the help. The dashboard looks great.

      Delete
  15. any way to get the vCPU:pCPU to take into account HA over heads?

    ReplyDelete
  16. I have enabled this dashboard, it's really nice and thank you. Regarding DISK metric , how can I filter and remove local or unwanted datastores when counting Disk Space - VM remaining ?

    ReplyDelete
  17. Hi Sunny,

    CLUSTER-CAP.json is not available for download.

    thanks

    ReplyDelete
    Replies
    1. The download works for me. Are you blocked by a firewall.

      Delete
  18. from where i is will get the option for the below
    Click on Content - > Manage Metric Config -> Expand the folder "ReskndMetric" ->

    VROPS version is 6.6.0.5707161

    ReplyDelete
  19. Hi Sunny,

    I liked the dashboards and uploaded some of them already, I uploaded Cluster capacity dashboard however issue with view, it shows no values for vcpu, vmemory or any other metrics afterwards, just shows question mark. I am using vrops 6.7, Would you know what could go wrong here?

    ReplyDelete
  20. Hi Sunny,

    Do you have any similar dashboard which can work with vROPS 7.5 ?

    ReplyDelete