Prometheus query - exclude destination

grafana, prometheus

Solution

You can use a negative regex matcher: `org_apache_activemq_localhost_QueueSize{Type="Queue",Destination=~"some.domain.*",Destination!~".*\.error"}`

Problem

On my ActiveMQ I have some Queues, which end with .error. On a Grafana Dashboard I want to list all queues without these .error-queues. Example: ``` some.domain.one some.domain.one.error some.domain.two some.domain.two.error ``` To list all queues I use this query: ``` org_apache_activemq_localhost_QueueSize{Type="Queue",Destination=~"some.domain.*",} ``` How do I exclude all .error-queues?

Original source