VMware Cloud Community
Savita
Contributor
Contributor

Hourly Usage for Computing Resources

I am trying to get hourly usage of computing resources from xml report. I am generating daily reports which shows me details of memory usage like:

</Attributes>

<Parents>

<Parent id="16232">

  <Name>028072-AlphaGroup-RigginTest</Name>

<Type>112</Type>

<CostModel id="625">

<Name>LT_MATRIX_COST_MODEL</Name>

<Messages />

<Resources>

<Resource id="5">

<Name>Memory</Name>

<Details>

<Detail>

<StartTime>1362549600000</StartTime>

<EndTime>1362553200000</EndTime>

<AttributionPercent>100.00</AttributionPercent>

<Usage>2.00000</Usage>

</Detail>

<Detail>

<StartTime>1362553200000</StartTime>

<EndTime>1362560400000</EndTime>

<AttributionPercent>100.00</AttributionPercent>

<Usage>2.00000</Usage>

</Detail>

<Detail>

<StartTime>1362560400000</StartTime>

<EndTime>1362567600000</EndTime>

<AttributionPercent>100.00</AttributionPercent>

<Usage>2.00000</Usage>

</Detail>

But for memory and Harddrive it shows just one entry:

<Resource id="10">

<Name>vCPU</Name>

<Details>

<Detail>

<StartTime>1362549600000</StartTime>

<EndTime>1362635999998</EndTime>

<AttributionPercent>100.00</AttributionPercent>

<Usage>1.00000</Usage>

</Detail>

How can I get usage details for Memory and vCPU too hourly?

Thanks,

Savita

Reply
0 Kudos
3 Replies
ramkrishna1
Enthusiast
Enthusiast

Hi

Welcome to the communities.

Could you please let us know what exactly you are expecting from communites .

If you wnat to cross check script please re post it on vmware powershell .I hope you will get some suggestion.

"a journey of a thousand miles starts  with a single step."
Reply
0 Kudos
Savita
Contributor
Contributor

I am using ChargeBack REST calls as well as Java API to fetch Billing related information as well as Cost and Usage Report. In any of these report I am not seeing how much computing resources has been utilized on hourly bases. Or I should say that I want this data to display a usage meter on my screen.

Is Chargeback a right tool for that or I need sm thing else for that?

Thanks,

Savita

Reply
0 Kudos
dprabhakaran
Enthusiast
Enthusiast

Savita,

  I am afraid whether the generated **hourly** report will be accurate! Please refer to "Inconsistent usage and cost data reported" section in release notes. Chargeback server computes the usage and cost using the coarse grain stats (weighted average) information collected from vCenter. The order of stats preference by Chargeback server is 1 day --> 2 hour --> 30 mins --> 5 mins. It deletes the lower granular samples/stats after 2 days.

Thanks

Diwakar

Reply
0 Kudos