active_argocd_instances_by_phase{phase="Available"}
The Red Hat OpenShift GitOps Operator emits metrics about its performance. With the OpenShift monitoring stack that picks up these metrics, you can monitor and analyze the Operator’s performance. The Operator exposes the following metrics, which you can view by using the OpenShift Container Platform web console:
Metric name | Type | Description |
---|---|---|
|
Gauge |
The total number of active Argo CD instances currently managed by the Operator across the cluster at a given time. |
|
Gauge |
The number of active Argo CD instances in a given phase, such as pending, or available. |
|
Counter |
The total number of reconciliations that have occurred for an instance in a given namespace at any given time. |
|
Counter |
The number of reconciliation cycles completed under given time durations for an instance. For example, |
|
Counter |
The total number of reconciliation cycles observed for a given instance. |
|
Counter |
The total amount of time taken for the observed reconciliations for a given instance. |
Gauge is a value that can go up or down. Counter is a value that can only go up. |
You can access the Operator metrics from the Administrator perspective of the OpenShift Container Platform web console to track the performance of the Operator.
You have access to the OpenShift Container Platform web console.
The Red Hat OpenShift GitOps Operator is installed in the default openshift-gitops-operator
namespace.
The cluster monitoring is enabled on the openshift-gitops-operator
namespace.
In the Administrator perspective of the web console, go to Observe → Metrics.
Enter the metric in the Expression field. You can choose from the following metrics:
active_argocd_instances_total
active_argocd_instances_by_phase
active_argocd_instance_reconciliation_count
controller_runtime_reconcile_time_seconds_per_instance_bucket
controller_runtime_reconcile_time_seconds_per_instance_count
controller_runtime_reconcile_time_seconds_per_instance_sum
(Optional): Filter the metric by its properties. For example, filter the active_argocd_instances_by_phase
metric by the Available
phase:
active_argocd_instances_by_phase{phase="Available"}
(Optional): Click Add query to enter multiple queries.
Click Run queries to enable and observe the GitOps Operator metrics.