【问题标题】:Get the total amount of messages published on a vhost in RabbitMQ获取在 RabbitMQ 中的 vhost 上发布的消息总量
【发布时间】:2017-01-31 19:13:51
【问题描述】:

是否可以在 RabbitMQ 中获取发布到虚拟主机的消息总量(在最后一分钟或类似的时间)?我检查了RabbitMQ Management HTTP Stats documentation,但它似乎只适用于特定对象,例如队列/交换/通道。

【问题讨论】:

    标签: rabbitmq


    【解决方案1】:

    在 3.6.10 中,我可以看到 http://localhost:15672/api/vhostshttp://localhost:15672/api/vhosts/${vhost}(例如 %2F 代表 /)确实有:

    message_stats: {
        publish: 632,
        publish_details: {
            rate: 0
        },
        confirm: 0,
        confirm_details: {
            rate: 0
        },
        return_unroutable: 0,
        return_unroutable_details: {
            rate: 0
        },
        get: 0,
        get_details: {
            rate: 0
        },
        get_no_ack: 0,
        get_no_ack_details: {
            rate: 0
        },
        deliver: 998,
        deliver_details: {
            rate: 0
        },
        deliver_no_ack: 20,
        deliver_no_ack_details: {
            rate: 0
        },
        redeliver: 522,
        redeliver_details: {
            rate: 0
        },
        ack: 466,
        ack_details: {
            rate: 0
        },
        deliver_get: 1018,
        deliver_get_details: {
            rate: 0
        }
    }
    

    【讨论】:

      猜你喜欢
      • 2015-04-24
      • 2013-07-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-01
      相关资源
      最近更新 更多