咨询个promql语句写法问题,如何在n9e上让带有聚合操作的内容返回ident呢

Viewed 26

咨询个promql语句写法问题,如何在n9e上让带有聚合操作的内容返回ident呢 ? 现在遇到带有聚合相关的告警语句,告警主机没有值.想优化下promql语句的写法..求大佬指导
sum(jvm_memory_used_bytes{application="$application", instance="$instance", area="heap"}) / sum(jvm_memory_max_bytes{application="$application", instance="$instance", area="heap"})

1 Answers

sum(xx) by (ident) / sum(xx) by (ident)