VMware Cloud Community
JohnGibson
Hot Shot
Hot Shot
Jump to solution

Supermetric for CPU % Ready

Hi all

One of the vROps metrics is %ready at the VM layer, which is fine, now in alerts or reports I really want a % Ready that reflects the %Ready divided by how many CPUs the VMs has... so I can say generate an alert if it goes beyond 5% overall.. So I created a super metric as:

sum(${this, attribute=cpu|readyPct})/sum(${this, attribute=config|hardware|num_Cpu})

Which does seem to produce some results... but they don't seem to be what im after... some examples below...

This view has VM, CPU ready, Configured CPUs, and 3 Super metric variables (the same one) just Last, Average and Max... over the last hour so I can see if theres any differences... same at 5 min intervals.

Taking VM1 as an example id have expected the supermetric to be around 6.397%... but its not... any ideas of why bnot or am I misunderstanding something here?

 

NameCPU|Ready (%)Configuration|Hardware|Number of virtual CPUsSM-VM Ready % (Last)SM-VM Ready % (Average)SM-VM Ready % (Max)
VM124.588412.22812.30112.301
VM224.068412.13712.02912.029
VM322.588412.26111.21911.219
VM422.244411.05611.15911.159
VM522.227410.95111.33511.335
VM621.758411.21410.84410.844
VM721.402410.83310.710.7
VM820.737411.77410.26210.262
VM920.69549.81610.39410.394
VM1020.41411.0410.09510.095
VM1120.3411.2110.09910.099
VM1220.264410.7510.15110.151
VM1319.98649.9139.9879.987
VM1418.953410.0069.5179.517
VM1518.73147.8649.4989.498
VM1617.907410.1758.9038.903
VM1717.72249.228.7868.786
VM1814.64648.0547.2467.246
VM1914.142214.09314.14914.149
VM2014.114214.47914.14214.142
VM2114.081214.06714.08214.082
VM2214.058214.42714.07514.075
VM2314.031213.55714.04314.043
VM2414.021213.87314.04614.046
VM2513.994214.39214.01314.013
VM2613.935214.31213.95613.956
VM2713.925213.9513.94613.946
VM2813.906213.62413.95613.956
VM2913.881213.77113.92113.921
VM3013.83213.8513.84313.843
VM315.48742.8232.7382.738
VM324.2510.3598.4238.423
VM333.8341.9111.911.91
VM343.81981.1240.9570.957
VM353.61781.0550.9060.906
VM363.36880.7410.8510.851
VM373.359120.5660.5610.561
VM383.00441.3411.5231.523
VM392.92480.7230.7310.731
VM402.66941.5111.3251.325
VM412.62980.6070.6610.661
VM422.4641.521.2351.235
VM432.32641.1241.1711.171
VM442.25480.5670.5670.567
VM452.12880.5390.5330.533
VM462.1240.7381.091.09
VM472.0680.5330.5160.516
VM482.03141.0491.0281.028
VM492.01740.6381.0441.044
VM501.98341.0660.9870.987
VM511.92940.9810.9670.967
VM521.89722.0211.8911.891
VM531.88240.9310.940.94
VM541.86441.0220.9210.921
VM551.82840.9390.9090.909
VM561.8240.9240.9120.912
VM571.76140.7190.90.9
VM581.74340.7550.8880.888
VM591.58541.0010.7710.771
VM601.58240.5220.8110.811
VM611.57940.7520.7970.797
VM621.51780.3680.3790.379
Reply
0 Kudos
1 Solution

Accepted Solutions
JohnGibson
Hot Shot
Hot Shot
Jump to solution

Raised a SR with VMware...

 

${this, metric=cpu|readyPct}/${this,metric=config|hardware|num_Cpu}

this seems to work better, still testing it but looks good so far.

View solution in original post

Reply
0 Kudos
3 Replies
JohnGibson
Hot Shot
Hot Shot
Jump to solution

Raised a SR with VMware...

 

${this, metric=cpu|readyPct}/${this,metric=config|hardware|num_Cpu}

this seems to work better, still testing it but looks good so far.

Reply
0 Kudos
yala37
Contributor
Contributor
Jump to solution

Hi John,

I understand when reading your post that you use supermetric to calculate CPU Ready % average over the last hour. Am I correct?

I'm just starting using vRops and I'm searching to obtain a similar supermetric to calculate datastore average latency over the last hour,

Please can you help me and share your supermetric command?

Many thanks in advance,

Regards,

Yann,

Reply
0 Kudos
nyjz1298
Contributor
Contributor
Jump to solution

This is the SM I've used for years... Works like a charm.  Applies to the VM....

${this, metric=cpu|readyPct}/${this, metric=cpu|corecount_provisioned}

Reply
0 Kudos