在我的 ActiveMQ 上,我有一些以 .error 结尾的队列。在 Grafana 仪表板上,我想列出没有这些 .error-queues 的所有队列。 示例:
some.domain.one
some.domain.one.error
some.domain.two
some.domain.two.error
要列出所有队列,我使用此查询:
org_apache_activemq_localhost_QueueSize{Type="Queue",Destination=~"some.domain.*",}
如何排除所有 .error-queues?
最佳答案
您可以使用负正则表达式匹配器:org_apache_activemq_localhost_QueueSize{Type="Queue",Destination=~"some.domain.*",Destination!~".*\.error"}
关于grafana - Prometheus 查询 - 排除目的地,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40277612/