6.3

Table Of Contents
Add a Resource Interaction XML File
A resource interaction le is a custom set of metrics that you want to display in widgets that support the
option. You can congure one or more les that dene dierent sets of metrics for particular object types so
that the supported widgets are populated based the congured metrics and selected object type.
The following widgets support the resource interaction mode:
n
Metric Chart
n
Property List
n
Rolling View Chart
n
Scoreboard
n
Sparkline Chart
n
Topology Graph
To use the metric conguration, which displays a set of metrics that you dened in an XML le, the
dashboard and widget conguration must meet the following criteria:
n
The dashboard Widget Interaction options are congured so that another widget provides objects to
the target widget. For example, an Object List widget provides the object interaction to a chart widget.
n
The widget Self Provider option is set to .
n
The custom XML le in the Metric  drop-down menu is in the following directory and
has been imported into the global storage using the import command.
n
vApp or Linux. The XML le is in /usr/lib/vmware-vcops/tools/opscli.
n
Windows. The XML le is in C:\vmware\vcenter-operations\vmware-vcops\tools\opscli.
If you add an XML le and later modify it, the changes might not take eect.
Prerequisites
n
Verify that you have the necessary permissions to access the installed les for
vRealize Operations Manager and add les.
n
Create a new les based on the existing examples. Examples are available in the following location:
n
vApp or Linux. The XML le is in /usr/lib/vmware-vcops/tomcat-web-app/webapps/vcops-web-
ent/WEB-INF/classes/resources/reskndmetrics.
n
Windows. The XML le is in C:\vmware\vcenter-operations\vmware-vcops\tomcat-web-
app\webapps\vcops-web-ent\WEB-INF\classes\resources\reskndmetrics.
Procedure
1 Create an XML le that denes the set of metrics.
For example:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<AdapterKinds>
<AdapterKind adapterKindKey="VMWARE">
<ResourceKind resourceKindKey="HostSystem">
<Metric attrkey="sys:host/vim/vmvisor/slp|resourceMemOverhead_latest" />
<Metric attrkey="cpu|capacity_provisioned" />
<Metric attrkey="mem|host_contention" />
</ResourceKind>
</AdapterKind>
</AdapterKinds>
Chapter 2 Customizing How vRealize Operations Manager Displays Your Data
VMware, Inc. 35