Tips for Monitoring Your Queues in Cloud Queues


Note: Be sure to set up your authentication token before completing the terminal steps for creating your cloud queue.

The steps in this process will return queue statistics, including the number of messages that exist in the queue. These are broken out by status.

  • Use the following

    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
  • You will see your cloud queue stats:

    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 Cloud Control Panel

You can also view your cloud queue stats by logging into your cloud control panel and:

  1. Click the Queues link.

  2. Click on your queue name. You can view your queue stats in the Queue Details screen:

Discussion

NOTE: If total is 0, then "oldest" and "newest" message stats are not included.

We have additional developer information available in our API documentation. Listed under Other Products, we have Getting Started Guide and an API Developer Guide for Cloud Queues.



Was this content helpful?




© 2011-2013 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License


See license specifics and DISCLAIMER