【发布时间】:2021-08-12 06:51:53
【问题描述】:
指标 1:custom_closed_orders_total{store="5222"} 结果:
host1,host2,host3,host4
指标 2:host_offline:health_check_container:sum{store="5222"} 结果:
host1,host2,host3,host4,host5,host6
我想要一个显示以下结果的查询:
host5, host6
我能做的最好的就是:
(count(custom_closed_orders_total{store="5222"} offset 7d) by (host))
- on(lane) group_left(host)
count(host_offline:health_check_container:sum{store="5222"} offset 7d) by (host)
有人可以通过修改上述查询来帮助我如何获得预期的结果吗?
【问题讨论】:
-
有人能帮我解决这个问题吗
标签: prometheus