Making sense of RabbitMQ's vhosts api results - Stack Overflow

I am trying to find average messages per month and average message size for my RabbitMQ cluster.When I

I am trying to find average messages per month and average message size for my RabbitMQ cluster.

When I call curl -i -u user:pass http://FirstServer:port/api/vhosts I get back a structure that looks similar to this:

[
    {
        "cluster_state": {
            "rabbit@firstserver": "running",
            "rabbit@secondserver": "running",
            "rabbit@thirdserver": "running"
        },
        "description": "Default virtual host",
        "message_stats": {
            "ack": 19318651,
            "ack_details": {
                "rate": 49.2
            },
       ... parts removed for brevity...
            "deliver": 19349053,
            "deliver_details": {
                "rate": 25.4
            },
            "deliver_get": 19349053,
            "deliver_get_details": {
                "rate": 25.4
            },
       ... parts removed for brevity...
            "publish": 19318618,
            "publish_details": {
                "rate": 29.0
            }
       ... parts removed for brevity...
        },
        "messages": 224,
        "messages_details": {
            "rate": -30.2
        },
        "messages_ready": 17,
        "messages_ready_details": {
            "rate": 0.0
        },
        "messages_unacknowledged": 207,
        "messages_unacknowledged_details": {
            "rate": -30.2
        },
        "metadata": {
            "description": "Default virtual host",
            "tags": [
            ]
        },
        "name": "/",
        "recv_oct": 20573353083,
        "recv_oct_details": {
            "rate": 30245.4
        },
        "send_oct": 21329546408,
        "send_oct_details": {
            "rate": 27465.8
        },
        "tags": [
        ],
        "tracing": false
    }
]

Is there any documentation on this structure? Specifically, I have the following questions:

  1. When it says rate, what are the units. (Per second, hour, month etc)
  2. How often is the rate recalculated?
  3. This url called the server FirstServer, but there are two others in the cluster. Are these stats for the whole cluster, or just for FirstServer?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743751667a4501013.html

相关推荐

  • Making sense of RabbitMQ's vhosts api results - Stack Overflow

    I am trying to find average messages per month and average message size for my RabbitMQ cluster.When I

    6天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信