-
Notifications
You must be signed in to change notification settings - Fork 149
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
Add a new metric and a new alert for not completed installation #1914
Conversation
b881144
to
6fc3cec
Compare
hco-e2e-upgrade-prev-index-sno-aws lane succeeded. |
@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-upgrade-prev-index-sno-azure In response to this:
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. |
hco-e2e-upgrade-prev-index-aws lane succeeded. |
@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-upgrade-prev-index-azure In response to this:
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. |
6fc09bd
to
56777a9
Compare
controllers/operands/monitoring.go
Outdated
Alert: installationNotCompletedAlert, | ||
Expr: intstr.FromString("(1 - kubevirt_hco_hyperconverged_cr_exists) > 0"), | ||
Annotations: map[string]string{ | ||
"description": "the installation was not completed; the HyperConverged custom resource is missing.", |
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.
@nunnatsa perhaps,
In order to complete the installation of the Hyperconverged Cluster Operator you should create the HyperConverged custom resource.
On d/s runbooks we can rename to OpenShift Virtualization.
controllers/operands/monitoring.go
Outdated
Expr: intstr.FromString("(1 - kubevirt_hco_hyperconverged_cr_exists) > 0"), | ||
Annotations: map[string]string{ | ||
"description": "the installation was not completed; the HyperConverged custom resource is missing.", | ||
"summary": "the installation was not completed; the HyperConverged custom resource is missing.", |
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.
@nunnatsa perhaps
The HyperConverged custom resource is missing.
hco-e2e-upgrade-prev-index-sno-azure lane succeeded. |
@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-upgrade-prev-index-sno-aws In response to this:
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. |
9df87e6
to
1011bd8
Compare
pkg/metrics/metrics.go
Outdated
HCOMetricHyperConvergedExists = "HyperConvergedCRExists" | ||
|
||
HyperConvergedExists = float64(1) | ||
HyperConvergedNotExist = float64(0) |
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.
nit:
HyperConvergedNotExist
--> HyperConvergedNotExists
Pull Request Test Coverage Report for Build 2292718055
💛 - Coveralls |
hco-e2e-image-index-gcp, hco-e2e-image-index-aws lanes succeeded. |
Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
hco-e2e-image-index-sno-aws lane succeeded. |
@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-image-index-sno-azure In response to this:
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. |
/retest |
hco-e2e-upgrade-prev-index-aws lane succeeded. |
@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-upgrade-prev-index-azure In response to this:
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. |
/retest |
1 similar comment
/retest |
/test hco-e2e-kv-smoke-gcp |
@nunnatsa: The specified target(s) for
Use
In response to this:
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. |
@nunnatsa: The following tests failed, say
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. |
/override-bot |
2 similar comments
/override-bot |
/override-bot |
hco-e2e-upgrade-prev-index-sno-azure lane passed /override ci/prow/hco-e2e-upgrade-prev-index-sno-aws |
@nunnatsa: Overrode contexts on behalf of nunnatsa: ci/prow/hco-e2e-upgrade-prev-index-sno-aws In response to this:
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. |
/override coverage/coveralls |
@nunnatsa: Overrode contexts on behalf of nunnatsa: coverage/coveralls In response to this:
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. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tiraboschi 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 |
This PR adds a new Prometheus metric
kubevirt_hco_hyperconverged_cr_exists
. HCO set this metric to 1 if the HyperConverged CR is exist, or 0 if not.The PR also adds a new alert
KubevirtHyperconvergedClusterOperatorInstallationNotCompletedAlert
. This alert is triggered when the newkubevirt_hco_hyperconverged_cr_exists
metric is not 1 (if the HyperConverged CR does not exist).The meaning of the new alert is that the installation is not completed, and the user should create the HyperConverged CR to complete the installation.
Reviewer Checklist
Release note: