<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[vm.stats questions on response and parameters]]></title><description><![CDATA[<p dir="auto">Hello</p>
<p dir="auto">I'm pulling stats for all VMs to understand CPU usage. We're a bit behind the curve in terms of XO versions, but these questions hopefully are still relevant.</p>
<p dir="auto">If using a granularity of days, the interval is set to 86400 (understandably) but the endTimestamp varies. Running this on June 9th @ ~1740 we get timestamps for both Mon Jun  8 01:00:00 AM BST 2026 and Tues Jun  9 01:00:00 AM BST 2026.</p>
<ol>
<li>Does this average across the day? Why is the timestamp 0100?</li>
<li>Why would there be different timestamps between VMs (all are running) and does that mean that the figures are misaligned in the results?</li>
</ol>
<p dir="auto">These are retrieved via curl and a bash script, a bit hacky, but for clarity the request is:</p>
<p dir="auto"><code>++ curl -X GET -s -H accept:application/json -b authenticationToken=&lsqb;&lsqb;REDACTED&rsqb;&rsqb; -o &lsqb;&lsqb;REDACTED&rsqb;&rsqb; 'https://&lsqb;&lsqb;REDACTED&rsqb;&rsqb;/rest/v0/vms/&lsqb;&lsqb;REDACTED&rsqb;&rsqb;/stats?granularity=days'</code></p>
<ol start="3">
<li>
<p dir="auto">Really keen to know if we can control the start and endtime, as well as provide a manual interval, as well as the aggregation strategy (min, max, average). Are any of these possible?</p>
</li>
<li>
<p dir="auto">Lastly, is cpuUsage the percentage as per the dashboard, but averaged over all CPUs?</p>
</li>
</ol>
<p dir="auto">Thanks so much in advance. <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f603.png?v=977a46e9d9a" class="not-responsive emoji emoji-android emoji--smiley" style="height:23px;width:auto;vertical-align:middle" title=":smiley:" alt="😃" /></p>
<p dir="auto">James</p>
]]></description><link>https://xcp-ng.org/forum/topic/12268/vm.stats-questions-on-response-and-parameters</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 19:56:48 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/12268.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 09 Jun 2026 16:44:27 GMT</pubDate><ttl>60</ttl></channel></rss>