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
Apply monitoring linters #11454
base: main
Are you sure you want to change the base?
Apply monitoring linters #11454
Conversation
Skipping CI for Draft Pull Request. |
ff6b45d
to
cce1414
Compare
dc1cacf
to
0a1aaa7
Compare
0a1aaa7
to
dfa7917
Compare
dfa7917
to
26eb011
Compare
Since the monitoring refactoring is still WIP (should be completed by #11184 and https://issues.redhat.com/browse/CNV-39013), currently the monitoring linter gives:
|
General direction seems great to me. /approve However, since I'm not familiar with all of the details, I'd like others that were involved to have a look and have time to give feedback. Let's hold the PR until the involved people review. /hold @sradco @machadovilaca @nunnatsa @RamLavi - would you be able to review? |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: iholder101 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 |
I'd suggest adding in the |
00d10b4
to
4f45d76
Compare
Apply monitoringlinter that enforces the monitoring refactoring. Signed-off-by: assafad <aadmi@redhat.com>
4f45d76
to
9c59fe5
Compare
05bdbc2
to
e9ec5a2
Compare
Apply operator-observability rules linter to ensure kubevirt alerts and recording rules definitions are following monitoring best practices. Signed-off-by: aadmi <aadmi@redhat.com>
e9ec5a2
to
c8ceea1
Compare
@assafad: The following tests failed, say
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. |
What this PR does
Apply the following linters:
monitoringlinter that was implemented in Add monitoring linter monitoring#221, and was designed to enforce proposal: Monitoring code refactor community#219.
This linter ensures that all monitoring-related practices are implemented within the
pkg/monitoring
directory using operator-observability methods. It verifies that all metrics, alerts and recording rules registrations are centralized in this directory, and restricts the direct use of Prometheus registration methods.Example for a message reported by the linter:
operator-observability rules linter - ensures that alerts and recording rules definitions are following the monitoring best practices, e.g. alerts have all the required annotations and labels with expected values, recording rules have expressions, etc. In addition, bump operator-observability for it.
Fixes https://issues.redhat.com/browse/CNV-36761
Special notes for your reviewer:
Depending on #11184 and https://issues.redhat.com/browse/CNV-39013.
Checklist
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