vatesfr / xen-orchestra

The global orchestration solution to manage and backup XCP-ng and XenServer.
https://xen-orchestra.com
Other
767 stars 262 forks source link

Add "last day" in Stats #4160

Closed Arraylistlistlist closed 5 years ago

Arraylistlistlist commented 5 years ago

Context

This is not an issue, just a nice to have.

Expected behavior

When viewing stats of a VM or host, it would be nice to be able to select "last day" in addition to the current possibilities.

Current behavior

Currently one can select last 10 minutes, last 2 hours, last week, last year.

olivierlambert commented 5 years ago

Hi,

It's not "directly" possible because how XAPI RRDs are exposed: https://xenserver.org/partners/developing-products-for-xenserver/18-sdk-development/96-xs-dev-rrds.html

IDK how hard it would be to make our own "division" on top of XAPI.

olivierlambert commented 5 years ago

Also re-linking to an duplicate but closed issue on that topic: https://github.com/vatesfr/xen-orchestra/issues/1223

@badrAZ IDK if it's doable now, so you can take a look when you can.

badrAZ commented 5 years ago

@olivierlambert Its doable, when we ask the XAPI RRDs for the last week stats we get them per hours. So, we can show the last 24 h stats for the last day granularity.