With the Instana Argo CD sensor, you can gain visibility into Argo CD-managed deployments and correlate code changes with runtime metrics to quickly detect and resolve application performance issues. After you install the Instana agent, the sensor is automatically installed. You can view synchronization details for applications that are deployed in Argo CD-managed clusters in the Instana UI after you enable and configure the sensor as outlined in the following sections.
Note: Currently, Instana supports Argo CD installations within a single cluster that might be managing one or more Kubernetes clusters. You can monitor multiple clusters through configurable access credentials and a defined list of target clusters.
Configure Argo CD to manage the same Kubernetes clusters in which the Instana agent is set up to monitor. For more information, see InstallationFigure 1. Opens in a new tab or window
.
Make sure that the actual name of the Argo CD-managed cluster is used when you add the cluster to Instana. By default, Argo CD identifies the cluster as in-kubernetes. Update this name to match the real cluster name to help ensure proper data correlation and visibility in Instana.
To enable and configure the sensor, update the agent configuration file as shown in the following example:
# Argo CD Sensor
com.instana.plugin.argocd:
enabled: true
poll_rate: 5 # Integer value in seconds. Default value is 5 seconds.
url: 'https://argocd-server.argocd'
username: 'admin'
password: 'your-password'
clusters: # List of one or more k8s cluster names.
- 'demo-cluster1'
The sensor retrieves application sync data through the Argo CD REST APIs.
After the Argo CD sensor is enabled, you can view synchronization details for applications that are deployed in clusters that are managed by Argo CD directly within the Instana UI. The sensor collects and displays key information, such as application lists, sync status, and Git repository details.
To access this information, complete the following steps in the Instana UI:
From the navigation menu, select Platforms > Kubernetes.
In the Clusters tab, search the Argo CD-managed cluster. If the cluster is configured for monitoring, a sync status button appears next to the Argo CD-managed cluster, indicating the number of applications that are currently out of sync. The cluster dashboard provides the same functionality and includes a timeline of Argo CD sync events with related performance metrics.
Figure 2. Kubernetes dashboard - Total number of out-of-sync Argo CD-deployed applications
Figure 3. Kubernetes cluster dashboard
Click the Argo CD sync status button next to a monitored cluster. An Argo CD window is displayed with a list of Argo CD-managed applications for that cluster.
Figure 4. Kubernetes cluster - Modal displaying the list of Argo CD-deployed applications
This view provides a quick summary of each application's deployment status. The following table lists the key details that are related to an application managed by Argo CD:
Field
Description
Argo CD application name
The name of the application as defined in Argo CD.
Sync status
The status indicates whether the application is currently synced with its Git repository (For example, Synced, Out of Sync).
Namespace
The Kubernetes namespace where the application is deployed.
Git repository and branch
The source Git repository and the branch that is associated with the application.
Last sync
The time since the application's last successful sync operation with Argo CD.
To troubleshoot and explore deployment details, use the following options in the Argo CD window:
To explore your Argo CD setup in more detail, click Launch Argo CD Interface. It opens the Argo CD web UI home page in a new browser tab.
To view the Git repository of Argo CD applications, click the branch name in the Repository and Branch column in the Argo CD applications table. You can quickly review the source configuration and recent changes that are related to each application.
These options simplify the workflow by giving you quick access to both the deployment tool and the source configuration for your applications.