VMware Cloud Community
baber
Expert
Expert

Why don't show any output a simple supermetric

This is a simple supermetric . why it cannot show any output ? I just want show memory usage for VM 

 

 

Please mark helpful or correct if my answer resolved your issue.
Reply
0 Kudos
3 Replies
sxnxr
Commander
Commander

Can you show the supermetric from the legacy screen

Reply
0 Kudos
baber
Expert
Expert

supermetric in legacy mode is :

(${this, metric=mem|usage_average})

and show the output 

Actually I decide to write supermetric for one issue . There is strange problem on one of my machines. This machine has 32G memory 

now Memory usage is 94% but Guest free memory is more than 20G what is the problem ? 

The guest OS is linux thus I decide to write a supermteric that can calculate total capacity - guest free memory to find memory usage 

Do you think is that correct ?

 

 

Please mark helpful or correct if my answer resolved your issue.
Reply
0 Kudos
sxnxr
Commander
Commander

(${this, metric=mem|usage_average}) is not the metric you are using in the screenshot. If it was then you would not have virtual machine in the text. a this formula should look like the below

sxnxr_0-1605781394922.png

If i had to guess it is because you picked a metric and not a this and didnt add a function at the start so it didnt know what to do with the metric (sum, min or max it etc)

Reply
0 Kudos