title: Monitoring a particular sidekiq queue in a rails application
body: <p>As per the documentation for sidekiq monitoring at <a href="https://github.com/mperham/sidekiq/wiki/Monitoring" rel="nofollow noreferrer">https://github.com/mperham/sidekiq/wiki/Monitoring</a> if we need to monitor the queue backlog we add the following to <code>config/routes.rb</code></p>
  
  <pre><code>require 'sidekiq/api'
  match "queue-status" =&gt; proc { [200, {"Content-Type" =&gt; "text/plain"}, [Sidekiq::Queue.new.size &lt; 100 ? "OK" : "UHOH" ]] }, via: :get
  </code></pre>
  
  <p>To monitor the latency</p>
  
  <p><code>match "queue-latency" =&gt; proc { [200, {"Content-Type" =&gt; "text/plain"}, [Sidekiq::Queue.new.latency &lt; 30 ? "OK" : "UHOH" ]] }, via: :get</code></p>
  
  <p><strong>Q1.</strong> I have multiple queues in my application called order_submission, mailers, critical and default. 
  If i want to monitor the backlog or latency for a particular queue say 'order_submission' how can i do that ?</p>
  
  <p><strong>Q2.</strong> The documentation also says that <code>We have a Pingdom check every minute which fires off an email if the response == 'UHOH'</code> for the following</p>
  
  <p><code>match "queue-status" =&gt; proc { [200, {"Content-Type" =&gt; "text/plain"}, [Sidekiq::Queue.new.size &lt; 100 ? "OK" : "UHOH" ]] }, via: :get
  </code></p>
  
  <p>I know the Pingdom service is used to hit urls for testing performance and availability but its not clear to me what it means that there is already a pingdom check that runs every minute and sends the email . Would like to have clarification on this.</p>
  
  <p>Thanks</p>