Rabit-MQ  Queue Monitor Script

Rabit-MQ Queue Monitor Script

This script analyzes and displays information about various queues, focusing on key metrics like queue name , body size , and number of occurrences. The data can be used to monitor and troubleshoot different system queues effectively. Key Features

  • Queue Name Identification: Lists the names of all queues being tracked.
  • Body Size Reporting: Shows the size of each queue's payload, enabling better optimization and management.
  • Queue Count Tracking: Tracks the number of times each queue appears, helping identify high-traffic or problematic queues.

Use Cases

  • System Monitoring: Keep track of queue behavior and identify bottlenecks or errors quickly.
  • Performance Optimization: Gain insights into queue sizes and usage patterns to optimize system performance.
  • Debugging and Troubleshooting: Spot specific queues with large body sizes or frequent occurrences that may require attention

Queue Monitor Script Output

How to Use

1- give this repository a Start :)

https://github.com/farshadnick/rabbitmq-queue-size-script.git

2- change Rabbit-address and user & pass in script

curl -u USERNAME:PASSWORD https://YOUR_RABBIT_ADDR:15672/api/queues/%2f?columns=name,messages,message_bytes,consumers |  jq -r '.[] | select(.consumers == 0 and .message_bytes > 0) | { name: .name, messages: .messages, message_bytes_mb: (.message_bytes / 1048576) } | [.message_bytes_mb, .name, .messages] | @tsv'   | sort -n
        


About Author?:

Hi ??, I’m Farshad Nick (Farshad nickfetrat)


  • ?? I regularly write articles on packops.dev and packops.ir
  • ?? Ask me about Devops?, Cloud?, Kubernetes?, Linux
  • ?? How to reach me on my linkedin


Reza Asadi

DevOps Engineer| Azure

6 个月

good job bro ??

rabbitmq-plugins enable rabbitmq_prometheus

khashayar panbeian

Site Reliability Engineer at Snapp! Box

6 个月

??????

Milad Sadeghi

Java Develooper at Behsazan Mellat

6 个月

????? ????? ???

Thanks for sharing

要查看或添加评论,请登录

Farshad Nick (????? ??? ????)的更多文章

社区洞察

其他会员也浏览了