argo-cd icon indicating copy to clipboard operation
argo-cd copied to clipboard

Add name label to "argocd_cluster_connection_status" metric

Open Aransh opened this issue 4 months ago • 1 comments

Summary

Add "name" label to "argocd_cluster_connection_status" metric, in addition to "server"

Motivation

I have a prometheus rule set to alert me when Argo is unable to connect to a cluster, by monitoring if the metric "argocd_cluster_connection_status" is 0 for one of my connected clusters. Problem is this metric only has a field for "server", and not for the actual name of the cluster, so once I get the alert I have to go to Argo to check which cluster is down.

Proposal

A "name" label add to this metric

Aransh avatar Apr 17 '24 11:04 Aransh