VMware Cloud Community
produban
Contributor
Contributor

[issue] Supermetric - count the attribute: diskspace|snapshot|snapshotAge result = 0

Hello everyone

     I have an issue / problem with this supermetric creation.

At first I have created a view filtering the VMs name which snapshot is over 100 days, it works perfectly

snapshot over 100 days - view works.png

But, when I work on supermetric trying to count, on vCenter level, the number of VMs which snapshot is over 100 days,it shows 0 Smiley Sad . I have other supermetrics with same structure and they are working.

count(${adaptertype=VMWARE, objecttype=VirtualMachine, attribute=diskspace|snapshot|snapshotAge, depth=5, where = "diskspace|snapshot|snapshotAge>=100"})

supermetric doesnt works.png

Someone knows where is the issue or mistake? It should shows at least 3 vms as you can see on the first image.

Thanks

Reply
0 Kudos
7 Replies
sxnxr
Commander
Commander

It works for me all i changed was the age down to 1 as we have none over 100. The only thing i can think of is i am running 7.0 and 7.5 and it worked on both. I know there were problems in the passed using attributes in super metrics but seems to have been added in 7.0

Reply
0 Kudos
produban
Contributor
Contributor

Hello sxnxr

     I'm working on 6.7 version and we are waiting the update for version 7.x in our environment, As soon as we have it I will try. Anyone can confirm that it doesn't work on 6.7 version? or I had a mistake on someone point?

    sxnxr can you explain this: "All i changed was the age down to 1 as we have none over 100" (I don't understand the sentence)

Thanks, regards.

Reply
0 Kudos
sxnxr
Commander
Commander

I changed your where statement to where = "diskspace|snapshot|snapshotAge>=1 because we dont have a snapshot age >= 100 so that i can see if it would work

Another example that works in 7.x and not in 6.7 is

count(${adaptertype=VMWARE, objecttype=VirtualMachine, attribute=summary|guest|fullName, depth=2, where ="summary|guest|fullName startsWith Microsoft Windows"})

This works on cluster level

Reply
0 Kudos
produban
Contributor
Contributor

Hello sxnxr

      I found an alternative to this "problem" on vrops 6.7 I have replaced snapshot age (because supermetric doesn't apply properly) to Disk Space|Snapshot Space (GB), filter is greater than 0.000027 Gb and it works Smiley Happy I have the same number on snapshot vms and vCenter & total critical events also I have snapshot age

solved number snapshots and count.png

Thanks for your help, As soon as I migrate to 7.5 I will check your statement.

Reply
0 Kudos
produban
Contributor
Contributor

RickVerstegen​ I tried your answer:

count(${adapterype=VMWARE, objecttype=VirtualMachine, attribute=diskspace|snapshot|snapshotAge, depth=3, where="diskspace|snapshot|snapshotAge>=100"}) in the Visualize super metric and it doesn't works Smiley Sad it shows 0 results (I verified the information with the current snapshots)

Reply
0 Kudos
RickVerstegen
Expert
Expert

Can you change the range from to for example the last 60 days to see if this show you any results when you visualize the super metric?

Was I helpful? Give a kudo for appreciation!
Blog: https://rickverstegen84.wordpress.com/
Twitter: https://twitter.com/verstegenrick
Reply
0 Kudos
produban
Contributor
Contributor

it doesn't work Smiley Sad There are VMs over 60 days that appears on a view (snapshot age as data) but if I create a supermetric it shows 0 results. I will try on 7.x and I will provide feedback

Reply
0 Kudos