Select Page

Part 8: vCenter Operations Custom UI – Using the Metric Selector

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:

  1. Alerts
  2. Generic Scoreboard, Health Status
  3. Health Tree, Health-Workload Scoreboard
  4. Heat Map, Resources
  5. Root Cause Ranking
  6. VC Relationship
  7. 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.

edit dashboard


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.

dashboard menu

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.

select interactions


6) Now that multiple interactions have been configured, we can now test.

  1. Click a resource in the originating widget – the Metric Selector widget should populate.
  2. Expand the tree and select the desired metric within the Metric Selector – the Metric Graph will now populate.
  3. Utilize the options in the Metric Graph to find detailed information that you need.

metric selector - flow


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.



About The Author

Bryan Krausen

Bryan Krausen is currently working as a Sr. Solutions Architect with experience in a vast number of platforms, specializing in AWS and HashiCorp tools.

Leave a reply

Your email address will not be published.