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
Refactor monitoring recording-rules #10651
Refactor monitoring recording-rules #10651
Conversation
Skipping CI for Draft Pull Request. |
c1c0f74
to
b9137e2
Compare
/test all |
/cc @enp0s3 |
b9137e2
to
e819f91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@machadovilaca Hi, thank you for taking care of it! Can you please elaborate in the PR description on the need to bump the vendor packages?
@@ -253,7 +253,7 @@ Returns the total number of virtual machine disks restored from the source virtu | |||
Returns the amount of space in bytes restored from the source virtual machine. Type: Gauge. | |||
|
|||
### kubevirt_vmsnapshot_persistentvolumeclaim_labels | |||
Returns the labels of the persistent volume claims that are used for restoring virtual machines. Type: Info. | |||
Returns the labels of the persistent volume claims that are used for restoring virtual machines. Type: Gauge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change related to the refactoring or is it a bug you've fixed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
50/50, metric type Info does not exist: https://prometheus.io/docs/concepts/metric_types/
and therefore the package does not provide it
e819f91
to
66b0f98
Compare
updated @enp0s3 |
…rometheus-operator/prometheus-operator Signed-off-by: João Vilaça <jvilaca@redhat.com>
66b0f98
to
9716c52
Compare
3c42cac
to
ccef0ff
Compare
Signed-off-by: João Vilaça <jvilaca@redhat.com>
Signed-off-by: João Vilaça <jvilaca@redhat.com>
9a3179b
to
4b924d8
Compare
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@machadovilaca Thank you!
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: enp0s3 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold
@enp0s3
hack/dep-update.sh
Outdated
@@ -29,7 +29,7 @@ done | |||
echo $_sync_only | |||
cd staging/src/kubevirt.io/client-go | |||
if [ "${_sync_only}" == "false" ]; then go get $@ ./...; fi | |||
go mod tidy | |||
go mod tidy -compat=1.17 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xpivarc Thanks! @machadovilaca I think I commented on it in the previous review cycle, why did you still keep it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad, sorry, this was indeed resolved in a previous interaction, but after some reviews eventually it was changed back because we then discussed some unnecessary dependency updates in staging/src/kubevirt.io/client-go/go.mod
, namely, onsi/ginkgo/v2
and onsi/gomega
, that didn't seem necessary
by default the flag defaults to ensure compatibility with the previous version (-compat=1.16
since this go.mod
declares go 1.17) which causes dependency incompatibilities and required manual updates of many dependencies, this change guaranties compatibility with declared go 1.17
an alternative to -compat=1.17
addition would be adding on top off this PR changes this commit: f348aca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The required changes look good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added @xpivarc
To ensure compatibility we need to update some client-go dependencies after the update of other related dependencies Signed-off-by: João Vilaça <jvilaca@redhat.com>
/hold cancel |
/lgtm |
/retest-required |
What this PR does / why we need it:
Following the work started in #10044, and according to the kubevirt/community#219 proposal, this PR:
refactors recording rules and precedes a following PR to also refactor alerts, in a similar way
updates the old name of the
github.com/coreos/prometheus-operator
dependency togithub.com/prometheus-operator/prometheus-operator
replaces the usage of
k8s.io/utils/pointer
withk8s.io/utils/ptr
, because with the deps updatesk8s.io/utils/pointer
became deprecatedChecklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.
Release note:
JIRA ticket: