-
Notifications
You must be signed in to change notification settings - Fork 458
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
RolloutManager controller needs to create a ServiceMonitor so that metrics from Rollouts will automatically included in Prometheus gathered metrics, including in OpenShift monitoring (for OpenShift users)
- A service, argo-rollouts-metrics, is already created to provide access to metrics, it just needs to be connected to monitoring via a ServiceMonitor CR.
Why is this important?
- Customers need to monitor components of the system including the Argo Rollouts which is deployed by the GitOps Operator
Scenarios
- Deploy Rollouts into a namespace with RolloutManager and be able to monitor Argo Rollouts
(Originally a feature request from https://issues.redhat.com/browse/GITOPS-3271)
Work Criteria
- When a
RolloutsManagerCR is reconciled, it should create the corresponding ServiceMonitor CR- Should we always create it, or should we add a new parameter to the CR which a user can set to true to enable this?
- Investigate how this works in argocd-operator and/or gitops-operator, and follow their lead
This should only occur when we detect that the cluster is an OpenShift cluster- This should only occur when the user is using the Prometheus operator, which includes the ServiceMonitor CR.
- Probably the easiest way to do this is check for CustomResourceDefinition for ServiceMonitor
For example, by checking the API version or looking for an OpenShift-only CR (e.g.Routes)
- Manually verify the functionality works as expected
- Unit/E2E tests
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request