Tips for monitoring your queues

  • Last updated on: 2016-01-11
  • Authored by: Megan Meza

Note: Be sure to set up your authentication token before following the steps to create a queue by submitting an API request from the terminal.

Use the following procedures to get queue statistics, including the number of messages that exist in the queue, and the number of messages for each message status.

Monitoring through the API

Send the following request.

Queue status template

   GET /v1/queues/{queue_name}/stats

Request

Substitute your cloud queue information for the sample information:

   GET /v1/queues/fizbit/stats HTTP/1.1
   Host: marconi.example.com

The API response returns the queue statistics:

Response

   HTTP:/1.1 200 OK
   {
     "messages": {
       "free": 146929,
       "claimed": 2409,
       "total": 149338,
       "oldest": {
           "href": "/v1/queues/fizbit/messages/50b68a50d6f5b8c8a7c62b01",
           "age": 63,
           "created": "2013-08-12T20:44:55Z"
       },
       "newest": {
           "href": "/v1/queues/fizbit/messages/50b68a50d6f5b8c8a7c62b01",
           "age": 12,
           "created": "2013-08-12T20:45:46Z"
       }
   }

Monitoring through the Cloud Control Panel

You can view statistics for a queue in the Cloud Control Panel.

  1. Log in to the Cloud Control Panel.

  2. In the top navigation bar, click Servers > Message Queueing.

  3. Click on your queue name to go to the Queue Details page.

Note: If total is 0, the display does not include statistics for oldest and newest messages.

You can find more developer information in the Getting Started Guide and API Developer Guide for Cloud Queues.

Continue the conversation in the Rackspace Community.