Monitor sidekiq queues for your application
Sidekiq comes with a web application,
Sidekiq::Web that can display the current state of a Sidekiq installation. We have configured this to monitor multiple Sidekiq configurations used throughout GOV.UK.
We have restricted public access as the Web UI allows modifying the state of Sidekiq queues.
To gain access you should setup SSH port forwarding to a backend box belonging to the environment you wish to monitor when connected to the Bardeen wireless network or the VPN:
$ ssh backend-1.backend.integration -CNL 9000:127.0.0.1:80
You can also monitor Sidekiq queue lengths using this Grafana dashboard.
To view your local Sidekiq queue, go to the sidekiq-monitoring app in the vm and run
./bin/foreman start for all applications, or
./bin/foreman run <app_name> for a specific app. In the output of sidekiq-monitoring, you’ll find the port number of the app whose queue you want to view. Make a note of it, then in your local machine, go to govuk-puppet/development-vm and run:
$ vagrant ssh -- -CNL <port_number>:localhost:<port_number>
http://localhost:<port_number>/<app_name> to see a list of Sidekiq configurations you can monitor.
See also: Add sidekiq-monitoring to your application.