Skip to content

Tweaks to cpu metrics #6530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

gangj
Copy link
Contributor

@gangj gangj commented Jun 13, 2025

No description provided.

@gangj gangj requested review from mg12 and BengangY June 13, 2025 06:52
@psafont psafont changed the title metric RRD1 update Tweaks to cpu metrics Jun 13, 2025
@psafont
Copy link
Member

psafont commented Jun 13, 2025

Please explain in the commit why the new name is better. for example: the name name makes it clear there's at least one cpu in the runnable stable, previously this was not clear

gangj added 2 commits June 13, 2025 18:15
The renaming is done to resolve one problem with rrd2csv: rrd2csv
selected both RRD1("runnable") and RRD2("runnable_vcpus") when the RRD1
name is used:

> rrd2csv AVERAGE:vm:<vm-uuid>:runnable
> timestamp, AVERAGE:vm:<vm-uuid>:runnable, AVERAGE:vm:<vm-uuid>:runnable_vcpus

This is because "runnable" is a prefix of "runnable_vcpus".

After the renaming, with rrd2csv:
* can select only RRD1 if we use:
  rrd2csv AVERAGE:vm:<vm-uuid>:runnable_any
* can select only RRD2 if we use:
  rrd2csv AVERAGE:vm:<vm-uuid>:runnable_vcpus
* can select both RRD1 and RRD2 if we use:
  rrd2csv AVERAGE:vm:<vm-uuid>:runnable

And the renaming also makes it clearer as the 'runnable' metric is % of
time that at least one vCPU of the domain is in the runnable state.

Signed-off-by: Gang Ji <gang.ji@cloud.com>
Follow the fix here:
xapi-project#6493

Signed-off-by: Gang Ji <gang.ji@cloud.com>
@gangj gangj force-pushed the private/gangj/rrd1-fixup branch from a860b90 to a9a0c18 Compare June 13, 2025 10:31
@gangj gangj requested a review from psafont June 13, 2025 12:02
@psafont psafont merged commit b9ebe6f into xapi-project:feature/vcpu-runnable Jun 13, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants