> For the complete documentation index, see [llms.txt](https://docs.groundcover.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.groundcover.com/integrations/data-sources/argocd.md).

# ArgoCD

groundcover supports metrics collection from your ArgoCD deployment, to allow you to visualize your continuous-delivery health and set up monitors.

{% hint style="info" %}
Configuration is only enabled for Admins
{% endhint %}

### How ArgoCD exposes metrics

ArgoCD is multi-component, and each long-running component exposes its own native Prometheus `/metrics` endpoint on a distinct port:

| Component                 | Port |
| ------------------------- | ---- |
| Application controller    | 8082 |
| API server                | 8083 |
| Repo server               | 8084 |
| ApplicationSet controller | 8080 |
| Notifications controller  | 9001 |
| Commit server             | 8087 |

These are the component **metrics** endpoints, not the `argocd-server` API. They are unauthenticated `http` in-cluster, so no credentials are needed in the common case. See ArgoCD's [metrics documentation](https://argo-cd.readthedocs.io/en/stable/operator-manual/metrics/) for details.

### Adding the ArgoCD integration

Navigate to [Data Sources](https://app.groundcover.com/settings/integrations/data-sources) and select ArgoCD.

#### Define the list of targets

ArgoCD is multi-endpoint: add **one target per component** you want to scrape. All targets share the same path and scheme:

1. Scheme — `http` (the default for in-cluster component metrics endpoints).
2. One or more endpoints — the component metrics services (e.g. `argocd-metrics:8082`, `argocd-server-metrics:8083`, `argocd-repo-server:8084`, `argocd-applicationset-controller-metrics:8080`).
3. Path — `/metrics`.
4. Authentication method — usually none; Basic Auth or a Bearer token only if you front the endpoints with an authenticating proxy.

#### Metrics scraping rules

On top of the targets configuration, you can also provide:

1. Drop/Keep metrics (optional) — list of regexes of metrics to drop or keep.
   1. Drop metrics — drop all metrics that match any of the regular expressions.
   2. Keep metrics — drop all metrics that don't match any of the regular expressions.
2. Additional relabeling (optional) — apply any additional Prometheus relabeling rules. Use the [relabeling cookbook](https://docs.victoriametrics.com/victoriametrics/relabeling/) to configure them.
3. Extra labels (optional) — a list of key-value pairs added to all scraped metrics from this configuration, such as `env=production`.
4. Scrape interval and scrape timeout — control the cadence of scraping.

### Scraping ArgoCD in-cluster (sensor / ServiceMonitor)

If groundcover runs in the same cluster as ArgoCD, you can also collect these metrics through the in-cluster scrape path instead of the tile: annotate the component metrics services with `prometheus.io/scrape`, or use the Prometheus-Operator `ServiceMonitor` manifests ArgoCD ships for each component. Either path keeps the metric names verbatim, so the same `argocd_*` series described below apply.

## Common Questions

### Where can I find scraped metrics?

All metrics in the platform can be found in the metrics exploration page: <https://app.groundcover.com/explore/data-explorer>.

For the full list of metrics groundcover collects from ArgoCD, what each means, and the labels you can slice by, see [ArgoCD Metrics](/integrations/data-sources/argocd/argocd-metrics.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.groundcover.com/integrations/data-sources/argocd.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
