2016-10-27 47 views
0

在我的ActiveMQ上,我有一些以.error结尾的队列。在Grafana仪表板上,我想列出没有这些错误队列的所有队列。 例子:普罗米修斯查询 - 排除目的地

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队列?

回答

1

您可以使用正则表达式负匹配:org_apache_activemq_localhost_QueueSize{Type="Queue",Destination=~"some.domain.*",Destination!~".*\.error"}

+0

酷,THX。我不知道我可以更频繁地指定目的地。这对我现在有效:'org_apache_activemq_localhost_ConsumerCount {Type =“Queue”,Destination =〜“some.domain。*”,Destination!〜“。* error”}' –