Part 8: vCenter Operations Custom UI – Using the Metric Selector
The metric selector widget provides an area to allow you to quickly select metrics which can populate other widgets within the same dashboard. For example, say you have a Generic Scoreboard widget displaying the CPU usage of your hosts and a single host begins to show CPU contention and turns yellow on the display. Rather than go back to vCenter and start to look at performance graphs, you can quickly click on the object within the widget, select the metrics you’d like to see, and immediately populate customizable graphs for troubleshooting. To use the Metric Selector, follow the example below.
It should also be noted that according to VMware documentation, the Metric Selector can only receive data from the following widgets:
- Generic Scoreboard, Health Status
- Health Tree, Health-Workload Scoreboard
- Heat Map, Resources
- Root Cause Ranking
- VC Relationship
- VC Relationship (Planning)
Note: In order to use the Metric Selector widget, you must be able to configure Widget Interaction. Widget interaction can provide data into, or receive data from, other widgets on the same dashboard. For more details on configuring widget interaction, see my post here.
1) Modify your dashboard by clicking Edit under the Dashboard Tools.
2) Add a widget which will provide the original data (in the list above), the Metric Selector widget, and the Metric Graph widget.
3) Configure the providing widget to display desired data from hosts, VMs, datastores, or whatever. You can check out all of our posts here on configuring individual widgets.
4) Open the Configure Widget Interaction page by clicking Interactions under the Dashboard Tools.
5) Configure the Providing Widget for the Metric Selector to be the widget you configured. For this example, I’ll be using a Generic Scoreboard widget to display the Host CPU Usage (%) for four hosts. (I’ve also modified the widget’s name to the respective name as well.) Secondly, configure the Metric Selector to now be the Providing widget for the Metric Graph. See screenshot below for example.
6) Now that multiple interactions have been configured, we can now test.
- Click a resource in the originating widget – the Metric Selector widget should populate.
- Expand the tree and select the desired metric within the Metric Selector – the Metric Graph will now populate.
- Utilize the options in the Metric Graph to find detailed information that you need.
7) Last but not least, don’t forget that just because your originating widget (our Scoreboard Widget in this example) displays CPU usage doesn’t mean that you can’t use the Metric Selector and Graph to view other metrics such as memory, disk, etc.