VMware Cloud Community
TBKing
Enthusiast
Enthusiast
Jump to solution

Custom UI: Choose resource, same metric graph

I'd like to build a dashboard where I can choose a resource (VM) from the Resource widget, and have a Metric Graph widget update with that resource's data for a consistent set of metrics... ie CPU, memory, disk, network.

I set the interactions so the provider is Resources and the Receiving is Metric Graph, but whenever I select a resource the metric graph seems to select a random set of metrics to graph for that resource.

Example:

For one VM, I'll get Time Remaining, Risk, Uptime, Memory Overhead Touched

The next selected VM I might get a Supermetric, CPU Active, number of virtual disks, Multicast packets received ...

It's really random and makes no sense.

I've edited the Metric Graph widget to select the specific metrics I want (and have to select a resource to do so), but that doesn't make a difference.

What do I need to do to "pin" the Metric Graph to a particular set of metrics?

I have already set up the 3-tier interaction of selecting the resource and selecting the metric to display the graph.  I'm trying to shortcut that by one step.

Thanks

Reply
0 Kudos
1 Solution

Accepted Solutions
mark_j
Virtuoso
Virtuoso
Jump to solution

Create a resource interaction file and set it on the metric graph. See here:


https://communities.vmware.com/message/2332940

If you find this or any other answer useful please mark the answer as correct or helpful.

View solution in original post

Reply
0 Kudos
2 Replies
mark_j
Virtuoso
Virtuoso
Jump to solution

Create a resource interaction file and set it on the metric graph. See here:


https://communities.vmware.com/message/2332940

If you find this or any other answer useful please mark the answer as correct or helpful.
Reply
0 Kudos
TBKing
Enthusiast
Enthusiast
Jump to solution

Worked Great!

Your SQL query example helped a lot.

The path down to "reskindmetrics" was deeper than in the KB:

/usr/lib/vmware-vcops/tomcat-enterprise/webapps/vcops-custom/WEB-INF/classes/resources/reskndmetrics

I was more successful using just the "attrkeyId" rather than the "attrkey"

But most importantly, I got to where I wanted.

I wonder why this was a KB and not in the users manual - Yes, I actually looked it up beforehand -haha

Thanks

Reply
0 Kudos