-
Notifications
You must be signed in to change notification settings - Fork 61
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
Group SyncOperator: PrometheusOperatorRejectedResources #312
Comments
This is currently documented in the README.md |
correct, I missed it. |
The operator does not create the namespace, the user does prior/at the same time as installing the operator |
When the operator automatically installs the service monitor, the label should be applied. Or at least it should be documented as post install task. |
Unfortunately, with the adjustments to the ServiceMonitor object from version 0.0.29, the metrics functionality is unusable. For the 1# UseCase "Openshift Platform Monitoring" using the label "openshift.io/cluster-monitoring="true" the following configuration is required on the ServiceMonitor:
Otherwise, the Openshift platform Prometheus operator will not be able to establish a trust relationship and will discard the target. For the 2# use case “Openshift User-Workload Monitoring” without the label “openshift.io/cluster-monitoring="true" the following configuration is not permitted on the ServiceMonitor: The Openshift User-Workload Prometheus correctly prohibits accesseing file system via bearer token file of the current configuration (0.0.30). To Use Openshift User-Workload Prometheus with bearerToken you have to use a Secret like this: So both ways are currently not possible. Unfortunately, I also have to agree with the following issues: I see the simplest option as not having the operator create the ServiceMonitor. This means that each use case can be mapped individually. To do this, simply adapt the documentation with recommendations. BTW, this is also the current procedure at RedHat. :-) |
Looks like the same problem as https://access.redhat.com/solutions/6992399 or GitOps, Tempo Operator...
Fix:
oc label ns group-sync-operator openshift.io/cluster-monitoring=true
The text was updated successfully, but these errors were encountered: