|
| 1 | +:_content-type: ASSEMBLY |
| 2 | +[id="monitoring-argo-cd-custom-resource-workloads"] |
| 3 | += Monitoring Argo CD custom resource workloads |
| 4 | +include::_attributes/common-attributes.adoc[] |
| 5 | +:context: monitoring-argo-cd-custom-resource-workloads |
| 6 | + |
| 7 | +toc::[] |
| 8 | + |
| 9 | +[role="_abstract"] |
| 10 | +With {gitops-title}, you can monitor the availability of Argo CD custom resource workloads for specific Argo CD instances. By monitoring Argo CD custom resource workloads, you have the latest information about the state of your Argo CD instances by enabling alerts for them. When the component workload pods such as application-controller, repo-server, or server of the corresponding Argo CD instance are unable to come up for certain reasons and there is a drift between the number of ready replicas and the number of desired replicas for a certain period of time, the Operator then triggers the alerts. |
| 11 | + |
| 12 | +You can enable and disable the setting for monitoring Argo CD custom resource workloads. |
| 13 | + |
| 14 | +// Prerequisites for monitoring Argo CD custom resource workloads |
| 15 | +[discrete] |
| 16 | +== Prerequisites |
| 17 | + |
| 18 | +* You have access to the cluster as a user with the `cluster-admin` role. |
| 19 | +* {gitops-title} is installed in your cluster. |
| 20 | +* The monitoring stack is configured in your cluster in the `openshift-monitoring` project. In addition, the Argo CD instance is in a namespace that you can monitor through Prometheus. |
| 21 | +* The `kube-state-metrics` service is running in your cluster. |
| 22 | +* Optional: If you are enabling monitoring for an Argo CD instance already present in a user-defined project, ensure that the monitoring is xref:../../monitoring/enabling-monitoring-for-user-defined-projects.html#enabling-monitoring-for-user-defined-projects_enabling-monitoring-for-user-defined-projects[enabled for user-defined projects] in your cluster. |
| 23 | ++ |
| 24 | +[NOTE] |
| 25 | +==== |
| 26 | +If you want to enable monitoring for an Argo CD instance in a namespace that is not watched by the default `openshift-monitoring` stack, for example, any namespace that does not start with `openshift-*`, then you must enable user workload monitoring in your cluster. This action enables the monitoring stack to pick up the created PrometheusRule. |
| 27 | +==== |
| 28 | + |
| 29 | +//Enabling Monitoring for Argo CD custom resource workloads |
| 30 | +include::modules/gitops-enabling-monitoring-for-argo-cd-custom-resource-workloads.adoc[leveloffset=+1] |
| 31 | + |
| 32 | +//Disabling Monitoring for Argo CD custom resource workloads |
| 33 | +include::modules/gitops-disabling-monitoring-for-argo-cd-custom-resource-workloads.adoc[leveloffset=+1] |
| 34 | + |
| 35 | +[role="_additional-resources"] |
| 36 | +[id="additional-resources_monitoring-argo-cd-custom-resource-workloads"] |
| 37 | +== Additional resources |
| 38 | +* xref:../../monitoring/enabling-monitoring-for-user-defined-projects.adoc#enabling-monitoring-for-user-defined-projects[Enabling monitoring for user-defined projects] |
0 commit comments