Skip to content
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

MON-3669: fix join issue in cluster:capacity_effective_cpu_cores #505

Merged

Conversation

kahowell
Copy link
Contributor

@kahowell kahowell commented Feb 7, 2024

Related: https://issues.redhat.com/browse/MON-3669.

This addresses a bug where 0 was the effective value due to label mismatches in cluster:cpu_capacity_cores:_id.

When we added a recording rule named cluster:cpu_capacity_cores:_id, the recorded time series includes a tenant_id label and so it's not equivalent to the expression it replaced.

Adding tenant_id to the sum by expression makes it properly match the cluster:cpu_cpacity_cores:_id series.

Copy link
Contributor

openshift-ci bot commented Feb 7, 2024

Hi @kahowell. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Feb 7, 2024
@kahowell kahowell changed the title Simplify and fix issue in cluster:capacity_effective_cpu_cores MON-3669: Simplify and fix issue in cluster:capacity_effective_cpu_cores Feb 7, 2024
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 7, 2024
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Feb 7, 2024

@kahowell: This pull request references MON-3669 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.

In response to this:

Simplify by dividing all x86_64 cpu counts in 2.

This also addresses a bug where 0 was the effective value due to label mismatches in cluster:cpu_capacity_cores:_id.

When we added a recording rule named cluster:cpu_capacity_cores:_id, the recorded time series includes a tenant_id label and so it's not equivalent to the expression it replaced.

Use of on (_id) clauses ignores the additional label.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@kahowell kahowell changed the title MON-3669: Simplify and fix issue in cluster:capacity_effective_cpu_cores Simplify and fix issue in cluster:capacity_effective_cpu_cores Feb 7, 2024
@openshift-ci-robot
Copy link
Contributor

@kahowell: No Jira issue is referenced in the title of this pull request.
To reference a jira issue, add 'XYZ-NNN:' to the title of this pull request and request another refresh with /jira refresh.

In response to this:

Simplify by dividing all x86_64 cpu counts in 2.

This also addresses a bug where 0 was the effective value due to label mismatches in cluster:cpu_capacity_cores:_id.

When we added a recording rule named cluster:cpu_capacity_cores:_id, the recorded time series includes a tenant_id label and so it's not equivalent to the expression it replaced.

Use of on (_id) clauses ignores the additional label.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot removed the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 7, 2024
@simonpasquier
Copy link
Contributor

simonpasquier commented Feb 8, 2024

/retitle MON-3669: fix join issue in cluster:capacity_effective_cpu_cores

@openshift-ci openshift-ci bot changed the title Simplify and fix issue in cluster:capacity_effective_cpu_cores MON-3669: fix join issue in cluster:capacity_effective_cpu_cores Feb 8, 2024
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Feb 8, 2024

@kahowell: This pull request references MON-3669 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.

In response to this:

Related: https://issues.redhat.com/browse/MON-3669.

Simplify by dividing all x86_64 cpu counts in 2.

This also addresses a bug where 0 was the effective value due to label mismatches in cluster:cpu_capacity_cores:_id.

When we added a recording rule named cluster:cpu_capacity_cores:_id, the recorded time series includes a tenant_id label and so it's not equivalent to the expression it replaced.

Use of on (_id) clauses ignores the additional label.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 8, 2024
This also addresses a bug where 0 was the effective value due to
label mismatches in `cluster:cpu_capacity_cores:_id`.

When we added a recording rule named `cluster:cpu_capacity_cores:_id`,
the recorded time series includes a tenant_id label and so it's not
equivalent to the expression it replaced.

Adding `tenant_id` to the `sum by` expression makes it properly match
the `cluster:cpu_cpacity_cores:_id` series.
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Feb 8, 2024

@kahowell: This pull request references MON-3669 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.

In response to this:

Related: https://issues.redhat.com/browse/MON-3669.

Simplify by dividing all x86_64 cpu counts in 2.

This also addresses a bug where 0 was the effective value due to label mismatches in cluster:cpu_capacity_cores:_id.

When we added a recording rule named cluster:cpu_capacity_cores:_id, the recorded time series includes a tenant_id label and so it's not equivalent to the expression it replaced.

Adding tenant_id to the sum by expression makes it properly match the cluster:cpu_cpacity_cores:_id series.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Feb 8, 2024

@kahowell: This pull request references MON-3669 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.

In response to this:

Related: https://issues.redhat.com/browse/MON-3669.

This addresses a bug where 0 was the effective value due to label mismatches in cluster:cpu_capacity_cores:_id.

When we added a recording rule named cluster:cpu_capacity_cores:_id, the recorded time series includes a tenant_id label and so it's not equivalent to the expression it replaced.

Adding tenant_id to the sum by expression makes it properly match the cluster:cpu_cpacity_cores:_id series.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ok-to-test

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 8, 2024
Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 8, 2024
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Feb 8, 2024
Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 8, 2024
Copy link
Contributor

openshift-ci bot commented Feb 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kahowell, simonpasquier

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@simonpasquier
Copy link
Contributor

/retest-required

Copy link
Contributor

openshift-ci bot commented Feb 9, 2024

@kahowell: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 323b9e3 into openshift:master Feb 9, 2024
10 checks passed
@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

This PR has been included in build telemeter-container-v4.16.0-202402091340.p0.g323b9e3.assembly.stream.el9 for distgit telemeter.
All builds following this will include this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants