argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
18.01k stars 5.49k forks source link

Add dest_cluster to argocd_app_info metric #17647

Open Aelina29 opened 8 months ago

Aelina29 commented 8 months ago

Summary

I think that you need to add a label corresponding to the cluster name to the argocd_app_info metric.

Motivation

I need to generate a report with applications OutOfSync status in the format:

To get the label-team and application-set I can create a CustomResourceStateMetric on ApplicationSet, and join it with argocd_app_info by app_name and project. But I can't get cluster this way, the cluster is located in the generator.

Proposal

I find it difficult to suggest an implementation. In ApplicationSet manifests, the cluster is located in the generator. In application manifests there is no cluster.

nikzayn commented 6 months ago

Hey @Aelina29, I would like to take this up.

/assign