Open goredar opened 5 months ago
@goredar @zachaller I would recommend a separate metric for exposing labels that could be joined with the existing metrics. This approach would be similar to what we have in argocd. WDYT?
It's a good idea, actually. Thanks @chetan-rns!
+1 i have this query for deployments
max(kube_deployment_labels{cluster="eks-dev",namespace="default",label_slack_contact!=""}) by (deployment, label_slack_contact) * on (deployment) group_left (deployment) max (kube_deployment_status_condition{cluster="eks-dev",namespace="default",status="false"} > 0) by (deployment)
Having a similar metric for rollout objects would be extremely helpful
Summary
Hey! Firstly, thank you for the amazing project and all your efforts!
Currently, the only distinguishable label for the majority of metrics is
name
(see example below). That might prevent one from building aggregation queries using PromQL language. Also, resource interconnections are impossible to grasp (e.g. from which Analysis Template was the Analysis Run build).One possible solution would be to allow configurable label pass though from the Kubernetes Custom Resources to the exposed metrics, for example:
Use Cases
Imaging the application having several rollouts, we'd like to have an overall metric for deployment success rate across multiple Rollouts and Analysis Runs.
Thanks in advance for your cooperation!
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.