Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change RabbitMQ Management Plugin refresh rate

Tags:

rabbitmq

RabbitMQ Management plugin auto refreshes the page in selected intervals of 5, 30 or 300 seconds. I want it to refresh it every 1 second. Is it possible?

enter image description here

like image 280
RHaguiuda Avatar asked Oct 19 '25 10:10

RHaguiuda


1 Answers

Its too late reply :P but for the sake of documentation I am answering this.

You can try a quick hack with the management plugin.

Steps:

Unzip the management plugin:

cd /usr/lib/rabbitmq/lib/rabbitmq_server-3.7.4/plugins
unzip rabbitmq_management-3.7.4.ez
cd rabbitmq_management-3.7.4

vim rabbitmq_management-3.7.4/priv/www/js/tmpl/layout.ejs

 [...]
    <option value="5000">Refresh every 5 seconds</option>    
    <option value="10000">Refresh every 10 seconds</option>
    <option value="30000">Refresh every 30 seconds</option>
    <option value="">Do not refresh</option>
[...]

Edit with appropriate values (in your case 1000 --> Refresh every 1 second)

Move old plug in:

cd /usr/lib/rabbitmq/lib/rabbitmq_server-3.7.4/plugins/
mv rabbitmq_management-3.7.4.ez /myhome/rabbitmq_management-3.7.4.ez

Zip the the plugin directory

zip -r rabbitmq_management-3.7.4.ez rabbitmq_management-3.7.4

Restart the rabbitmq service.

-Rahul N.

like image 137
Rahul Nair Avatar answered Oct 22 '25 08:10

Rahul Nair