I use the RabbitMQ module in Metricbeat to collect Metrics.
I made a Timelion expression of that and I am faced with the following problem:
I would like to sort the number of queues (that have been blurred) by the number of messages present in this queue and only show the top 10 of them (now 100).
.es(index=metricbeat-*, timefield=@timestamp, metric=max:rabbitmq.queue.messages.total.count, split=rabbitmq.queue.name:100).label('$1', '.*:(.*)>.*').yaxis(label='Messages')
Can someone help me write this query?