When working with Infinispan metrics coming through Prometheus, we query the metrics using the following statement:
sum by (pod, name) (cache_size{namespace=~”$name