vRealize Operations Manager CUSTOM DASHBOARD - Part 2
Home Facebook Twitter LinkedIn Home

- 5 minutes read - 865 words
Related Categories: #Virtualization & Cloud

Purpose

In the previous post I informed about the general structure of the dashboard. In this post I am going to go deeper and talk about how exactly I built the solution. For this I created a new dashboard by the name “Organization Details”. There is a very good and detailed blog by Jason Gaudreau on how to create a custom dashboard. So instead of re-inventing the wheel I have provided below a link to the blog.

Please check the blog on this topic. Jason Gaudreau’s Blog: vRealize Operations Manager - Creating a Custom Monitoring Portal As mentioned earlier I created our custom Dashboard by the name “Organization Details”. The difference being in my case I chose different set of Widgets. I chose a total of 10 Widgets details of which is provided below:

Widget Details

Widget Details

Once the Widgets are added to the dashboard then I need to setup the interaction between them. Since the first widget (Object List Widget) provides a list of the Departments, so it does not depend on any other widget. I configured it as:

  • Mode: Self
  • Refresh: On
  • Refresh Interval : 300 Seconds
  • Auto Select First Row: On

Also in the “Object Type” I selected “Department”. This concludes the configuration for this Widget.

The second widget “Health Widget” shows the overall health of the selected Department and hence depends on the 1st Widget.

The 3rd widget is again an “Object List Widget”. I named it as “VM List of the Department”. Again this is an widget which does not take input from any other Widget, so the configuration for this Widget is similar to the 1st Widget. The only difference is the “Object Type”. For this I selected “Virtual Machine”. Note, this will show a list of all the VM’s in the environment. The rest of the widgets will depend on this 3rd Widget for their input. So the dependency of other Widgets is on the information on this widget.

Next comes the 5th and 6th widget, Customized Scoreboard Widgets. I customized it according to my requirement and the XML related to these widgets are provided below:

5th Widget: Overall Allocation:

<?xml version="1.0" encoding="UTF-8"?>
<AdapterKinds>
   <AdapterKind adapterKindKey="VMWARE">
      <ResourceKind resourceKindKey="VirtualMachine">
         <Metric attrkey="**sys|poweredOn**" label="Powered On" unit="" yellow="32" orange="48" red="64" />
         <Metric attrkey="**sys|osUptime_latest**" label="Uptime" unit="Sec." yellow="15552000" orange="31104000" red="62208000" />
         <Metric attrkey="**config|hardware|num_Cpu**" label="Allocated vCPU" unit="vCPU" yellow="24" orange="32" red="48" />
         <Metric attrkey="**guestfilesystem|capacity_total**" label="Total Disk Space " unit="" yellow="500" orange="1024" red="4096" />
         <!--Metric attrkey="**guestfilesystem|usage**" label="Guest File System Usage" unit="" yellow="500" orange="1024" red="4096" /-->
         <Metric attrkey="**mem|guest_provisioned**" label="Allocated Memory" unit="" yellow="64" orange="128" red="256" />
         <Metric attrkey="**summary|number_network**" label="Total NIC" unit="" yellow="4" orange="6" red="8" />
      </ResourceKind>
   </AdapterKind>
</AdapterKinds> 

6th Widget: Overall Utilization:

<?xml version="1.0" encoding="UTF-8"?>
<AdapterKinds>
   <AdapterKind adapterKindKey="VMWARE">
      <ResourceKind resourceKindKey="VirtualMachine">
         <Metric attrkey="**cpu|numberToAdd**" label="vCPU to Add" unit="vCPU" yellow="4" orange="8" red="16" />
         <Metric attrkey="**cpu|numberToRemove**" label="vCPU to Remove" unit="vCPU" yellow="1" orange="2" red="4" />
         <Metric attrkey="**cpu|usage_average**" label="CPU Usage" unit="%" yellow="50" orange="60" red="80" />
         <Metric attrkey="**mem|usage_average**" label="Memory Usage" unit="%" yellow="50" orange="60" red="80" />
         <Metric attrkey="**guestfilesystem|freespace_total**" label="Free Space" unit="GB" yellow="50" orange="100" red="400" />
         <Metric attrkey="**guestfilesystem|percentage_total**" label="Guest File System Usage " unit="%" yellow="50" orange="60" red="80" />
         <Metric attrkey="**net|usage_average**" label="Network Usage Rate" unit="KBps" yellow="1024" orange="2048" red="4096" />
      </ResourceKind>
   </AdapterKind>
</AdapterKinds>
 

Note the parameters that I am monitoring here. For a detailed list of parameters you can check the documentation at vROps documentation for metrices. Provided below is a screenshot from where you can add customized XML files.

Custom XML Location

Custom XML Location

Now when we configure the 5th and 6th widgets all we need to do is to select the XML file that we created in the Metric Configuration window. You can see the same from the below screenshot.

Custom XML selection for Scoreboard Widget

Custom XML selection for Scoreboard Widget

Once the configuration of the widgets is finished. I need to create custom users and roles. Remember the 3rd Widget where we got a list of all the VM’s. But our primary aim was to show case only those VM’s which are related to the selected Department only. To achieve this first we will create a custom group, the dashboard will be provided to this group so that whoever is part of this group will be able to see the dashboard. Next we will create a custom role which will be copies from Read Only role and further customize it so that all the unnecessary information will not be shown. Again there is an excellent blog from Jason Gaudreau about how to create custom roles and access policies, so I am not going to cover that portion here. Please check the information at Jason Gaudreau’s Blog: vRealize Operations 6.0 - Access Control and Dashboard Management. All I am doing here is creating custom user with Custom Read Only information (roles only which is required to show minimum information) and provide them access to the required Department only. So when I will log in with the user id, I will be able to see the only Department for which he has access in the 1st widget. Also since I have access to that department and its child items only so I will be able to see only those VM’s which are part of that department only in the 3rd Widget. So we have covered all the configuration portion. In the next blog we will see result.