Skip to content

Argo CD monitor

A CDK8s chart that adds what the Pulumi-installed Argo CD lacks: metrics Services for VMAgent to scrape and a trusted TLS certificate. Adding them here avoids changing the platform stack.

Namespaceargocd
Sourceargocd_monitor.go
Exposure—
Storage—
Auth—

Each component gets a <name>-metrics Service and a ServiceMonitor scraping /metrics every 30s.

ComponentMetrics port
argocd-application-controller8082
argocd-server8083
argocd-repo-server8084
argocd-applicationset-controller8085

The cert-manager Certificate argocd-server-tls (issuer letsencrypt-prod, argocd.madhan.app) writes the Secret Argo CD looks for by name, replacing its self-signed certificate.

Empty endpoints mean the Service selector matches no pod; compare with the pod labels.

Terminal window
kubectl get servicemonitor,endpoints -n argocd | grep metrics
kubectl get pods -n argocd --show-labels