argocd-extension-metrics icon indicating copy to clipboard operation
argocd-extension-metrics copied to clipboard

Not able to do maths on the query expression

Open Tchoupinax opened this issue 6 months ago • 1 comments

Hey!

I tested to improve the default dashboard by customized prometheus query and I'm surprised that it does not work with the ArgoCD extension while it works directly with Prometheus.

sum(rate(container_memory_usage_bytes{pod=~\"{{ "{{" }}.name{{ "}}" }}\", container!=\"POD\", image!=\"\", container!=\"\", container_name!=\"POD\"}[5m])) by (pod)/1000/1000"

For instance, I want to display the memory usage in megabytes (so we divide by 10^6). However, it continues to display the metrics in bytes in argoCD Could you help me to know why it does not work?

Thank you!

Tchoupinax avatar Feb 14 '24 12:02 Tchoupinax