[rabbitmq-discuss] RabbitMQ 3.1.0 HTTP API rates are always zero

Simon MacMullen simon at rabbitmq.com
Mon Jun 3 11:24:46 BST 2013


Hmm, not sure I can say much more than "works for me".

The numbers that are shown in the web UI are taken from the request 
http://xxx:15672/api/overview (albeit without the ?columns= parameter); 
there is only one source for these numbers.

One thing you might want to check is if you are using a different user 
for web UI vs nagios. Users that do not have the "administrator" or 
"monitoring" tags will only see message rates for vhosts they have 
access to - could you be seeing that?

Another possibility (and I know this might sound patronising, but we all 
make mistakes) - are you talking to the same server in each case?

Cheers, Simon

On 01/06/13 23:20, Darrell Burgan wrote:
> First let me say I absolutely love RabbitMQ. Fabulous uptime and
> zero-headaches. I don't even worry about it every going down, it is so
> stable. An outstanding product.
>
> I'm sure I'm doing something totally dumb, but I've tried everything I
> can think of and I am stumped. I am trying to use the HTTP API to do
> external monitoring of my RabbitMQ instances from Nagios. I discovered
> the HTTP API, which is awesome. The only trouble is that no matter what
> query I run via the HTTP API, the rates always come back as 0.0. For
> example:
>
> http://xxx:15672/api/overview?columns=message_stats.deliver_get_details.rate
>
> This URL yields the following JSON:
>
> {"message_stats":{"deliver_get_details":{"rate":0.0}}}
>
>
> Note that the rate is 0.0. This is on a production server that is processing between 100 and 1000 messages per second. Same for this URL:
>
>
> http://xxx:15672/api/overview?columns=message_stats.publish_details.rate
>
>
> Yields:
>
>
> {"message_stats":{"publish_details":{"rate":0.0}}}
>
>
> I've verified that statistics are being gathered fine-grained.
>
>
> Just for my own sanity management, I've attached a snippet of the management console from the same server that shows these rates are much higher than zero:
>
>
> <https://lh6.googleusercontent.com/-XOjxEDFVhrA/UapynVGypWI/AAAAAAAAAAs/mG9ipbSjiN0/s1600/rabbitmq.png>
>
> So I am stumped. I really want to run an HTTP API query that returns the "651" and "662" shown in the above image, but I cannot find it anywhere in the JSON the HTTP API returns. I have looked at the results for the following API calls to no avail:
>
>
> /api/overview
>
> /api/nodes
>
> /api/connections
>
> /api/channels
>
> /api/exchanges
>
> /api/queues
>
> /api/vhosts
>
>
> Any suggestions?
>
>
> Thanks so much in advance!
>
>
> Darrell Burgan
>
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>


-- 
Simon MacMullen
RabbitMQ, Pivotal


More information about the rabbitmq-discuss mailing list