11 Nov 2022 11:27 AM - last edited on 23 May 2023 01:53 PM by Michal_Gebacki
I'm trying to build a simple table showing the dead messages in RabbitMQ.
In the data-explorer tab I'm running this query:
builtin:tech.rabbitmq.topN_queue_messages_ready:filter(in("queue", entitySelector("entityName.contains(~"dead~")"))):sort(value(auto,descending)):limit(100)
but it's not working due to:
Metric selector parse error: Illegal criterion: `entitySelector("entityName.contains(~"dead~")")`
What am I doing wrong?
Thank you in advance for your time and suggestions!
Solved! Go to Solution.
14 Nov 2022 07:30 AM
Entity selectors can only be applied to entity dimensions, the "queue" dimension in this metric is of type String.
14 Nov 2022 12:36 PM
Thanks for your reply!
Is there a way to apply a filter "contains" on the queue dimension then? I tried but I couldn't find a way to do it. Most likely it's just my poor understanding of the syntax, sorry if it's a basic question...
15 Nov 2022 06:13 AM
filter(contains("queue", "dead")) should do the trick.
Will be hopefully added to the documentation soon.
15 Nov 2022 10:34 AM
Thank you, that's very helpful and solved my issue!