Skip to content

[UI] Time range in VM metrics is not working #12309

Closed

Description

@SviridoffA

problem

Time ranges work correctly for "1 hour", "6 hours", and "12 hours". However, for "24 hours" and "All available data", only the last 12 hours of data are displayed.(This is not a bug but rather the default setting for vm.stats.max.retention.time.)
The custom time range works correctly on the first attempt, but the calendar starts behaves incorrectly upon subsequent attempts to change the range. Was disscussed in #12291

Image Image

versions

OS: Ubuntu 24.04.3
ACS 4.20.2 Looks like issue persists in version 4.22 as well.

The steps to reproduce the bug

Just try switching between different time ranges while viewing VM metrics.

What to do about it?

VM metrics statistics should display correctly according to the selected time range.Time range selection should work correctly.

Activity

  1. added this to the 4.20.3 milestone on Dec 19, 2025
  2. added theissue type on Dec 19, 2025
  3. winterhazel commented on Dec 23, 2025

    @winterhazel
    Member

    @SviridoffA could you check what value does the global setting vm.stats.max.retention.time have in your environment? It probably is set to the default of 720 minutes, hence only the last 12 hours of metrics are kept in the database.

    You may change it to a larger value if you want to keep more than the last 12 hours.

  4. SviridoffA commented on Dec 23, 2025

    @SviridoffA
    Author

    Thanks @winterhazel ! you're right, I had the default value set. I'll edit this issue and remove this part of the problem since it doesn't seem to be a bug.

  5. moved this from Todo to ready for Review in Apache CloudStack BugFest - Issueson Dec 30, 2025
  6. changed the title [-]UI Bug: Time range in VM metrics is not working[/-] [+][UI] Time range in VM metrics is not working[/+] on Dec 31, 2025
  7. DaanHoogland commented on Jan 6, 2026

    @DaanHoogland
    Contributor

    fixed in #12351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions