-
Notifications
You must be signed in to change notification settings - Fork 73
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
MCO: add service monitor to alertmanager #1319
MCO: add service monitor to alertmanager #1319
Conversation
Skipping CI for Draft Pull Request. |
Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com>
/test test-unit |
namespace: open-cluster-management | ||
namespace: open-cluster-management-observability |
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 necessary? Is it breaking? 🤔
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.
All those namespaces are reset by the controller. So personally, I would remove all of them from the manifests. But I am not sure it has not impact 🤷
Resetting this one as it wasn't changed on purpose
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.
I removed all unnecessary namespaces. Unit tests are checking them now
operators/multiclusterobservability/manifests/base/alertmanager/alertmanager-statefulset.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com>
Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com>
@thibaultmg something's badly wrong with Prow, it seems. |
Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com>
Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com>
Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com>
Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com>
…icemonitor Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com>
Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com>
operators/multiclusterobservability/pkg/rendering/renderer_alertmanager.go
Show resolved
Hide resolved
Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com>
Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com>
Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com>
Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com>
…icemonitor Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com>
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.
LGTM
@@ -2,6 +2,5 @@ apiVersion: v1 | |||
kind: ServiceAccount | |||
metadata: | |||
name: observability-alertmanager-accessor | |||
namespace: open-cluster-management |
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 expected? In which namespace will this land on?
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.
Service account resources are handled by "ServiceAccount": r.renderer.RenderNamespace,
So it will land as before in the namespace := mcoconfig.GetDefaultNamespace()
which is open-cluster-management-observability
I removed all of them so that there is no ambiguity. And they are all checked in unit tests.
/hold |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: douglascamata, thibaultmg 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 |
/hold cancel |
New changes are detected. LGTM label has been removed. |
Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits. 📝 Please follow instructions in the contributing guide to update your commits with the DCO Full details of the Developer Certificate of Origin can be found at developercertificate.org. The list of commits missing DCO signoff:
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. |
|
@thibaultmg: 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. |
* init Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add cm watcher Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * cleaning Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * change rbac-proxy image Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * fix namespaces names Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * fix unit tests Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * fix serviceMonitor namespace Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add e2e test debug info Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add mch-image-manifest debug info Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * fix Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * improve image replacement logging Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * fix call to image replacer Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add service monitor crd to kind e2e Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add debug logging oba e2e tests Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * improve logs, reduce volume Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * improve ci logs Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * improve ci logs Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * fix Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add oba logs Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * improve oba logging Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add unit tests Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add apiextensionsv1 scheme Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add resource version to crd update Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> --------- Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
* init Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add cm watcher Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * cleaning Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * change rbac-proxy image Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * fix namespaces names Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * fix unit tests Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * fix serviceMonitor namespace Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add e2e test debug info Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add mch-image-manifest debug info Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * fix Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * improve image replacement logging Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * fix call to image replacer Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add service monitor crd to kind e2e Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add debug logging oba e2e tests Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * improve logs, reduce volume Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * improve ci logs Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * improve ci logs Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * fix Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add oba logs Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * improve oba logging Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add unit tests Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add apiextensionsv1 scheme Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> * add resource version to crd update Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> --------- Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com>
Adds platform serviceMonitor for alertManager following platform monitoring recommendations:
As a side note, kube-rbac-proxy automatically reloads TLS and client CA files. So no need to restart the service when they change.
I have tested the manifests and the new serviceMonitor is well being picked up by platform monitoring, and it is able to fetch those new metrics.
Jira task: https://issues.redhat.com/browse/RHOBS-1002