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?
You can use a negative regex matcher: org_apache_activemq_localhost_QueueSize{Type="Queue",Destination=~"some.domain.*",Destination!~".*\.error"}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With