[rabbitmq-discuss] Management HTTP API

Simon MacMullen simon at rabbitmq.com
Tue Jul 30 15:59:12 BST 2013


Hi Chris. Yes, the samples are fairly raw like that. The HTTP API 
generates rates for the current moment but not for all the samples.

Cheers, Simon

On 30/07/13 15:54, Chris Nicel wrote:
> Hi Simon,
>
> Many thanks for that.
>
> The stats seem to be returning the total number of messages since the server was started. Is that correct?
>
> I'm sure I can work out a little maths to get me my rates/period stats. Just wanted to check I was reading it right...
>
> Cheers
>
> Chris
>
> -----Original Message-----
> From: Simon MacMullen [mailto:simon at rabbitmq.com]
> Sent: 30 July 2013 15:49
> To: Chris Nicel
> Cc: Discussions about RabbitMQ
> Subject: Re: [rabbitmq-discuss] Management HTTP API
>
> On 30/07/13 15:40, Chris Nicel wrote:
>>   From reading the API page (http://myrabbitserver:15672/api) I am
>> aware of the sample age and sample increment parameters.
>
> Argh. That documentation is wrong.
>
> I'll update it, but there are in fact six parameters:
>
> lengths_age
> lengths_incr
> msg_rates_age
> msg_rates_incr
> data_rates_age
> data_rates_incr
>
> since some queries can return more than one set of samples (i.e. the overview returns lengths and message rates)
>
> So you want a URL like:
>
> http://server:15672/api/overview?lengths_age=3600&lengths_incr=60&msg_rates_age=3600&msg_rates_incr=60
>
> Cheers, Simon
>
> --
> Simon MacMullen
> RabbitMQ, Pivotal
>
>   15below Limited: Company registered in England and Wales No 3945289
> Registered Office: Lyndean House, 43-46 Queens Road, Brighton BN1 3XB, United Kingdom
>
> 15below Australia Pty Limited: ABN 25 132 716 379
> Level 21, Tower 2 Darling Park, 201 Sussex Street, Sydney, NSW 2000, Australia
>
> Please think about the environment before printing this email.
>
> ************************************************************************
> This email and any attachments may be confidential and/or legally privileged and are solely for the use of the intended recipient.  If you have received this email in error please contact the sender.  Any views or opinions expressed within this e-mail are solely those of the sender, and do not necessarily represent those of 15below unless otherwise specifically stated.  Although 15below has taken every reasonable precaution to ensure that any attachment to this e-mail has been checked for viruses, it is strongly recommended that you carry out your own virus check before opening any attachment, as we cannot accept liability for any damage sustained as a result of software virus infection.
>


-- 
Simon MacMullen
RabbitMQ, Pivotal


More information about the rabbitmq-discuss mailing list