You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Fraser Adams <fr...@blueyonder.co.uk> on 2011/10/31 19:05:09 UTC

Is there a way to reset statistics counts on QMF Managed Objects

Hi,
The broker maintains a bunch of Managed Objects that can be returned via 
QMF, many of which yield useful info - for example queue objects record 
things like msgTotalEnqueues, msgTotalDequeues, byteTotalEnqueues etc. etc.

These are stored as 64 bit numbers I believe and increment over time as 
data arrives and departs on the queue.

Is there any way (short of restarting the broker!!) to reset the counts? 
Looking through the QMF methods in management-schema.xml there's nothing 
obvious, so I'm guessing not, but you never know.

Incidentally one of the reasons I'm prompted to ask this question is 
that if one looks at qpid-stat for a broker that has been running for a 
reasonable period with a reasonable message rate the tool includes some 
formatting code to truncate the precision and append "k", "m", or "g", 
which is sometimes useful but in many cases makes it look like nothing 
is happening on the queue :-)

I realise that qpid-queue-stats probably gives more useful results in 
this case, but I can't believe that I'm the only person to notice this 
so it prompted me to ask about resetting the statistics.


This reminds me of a question that I've asked previously but haven't 
received many responses; so what tools do people use for monitoring a 
Qpid network on mission critical deployments. Do people mainly use the 
bundled tools? Do people write bespoke QMF Consoles? Do people use 
things like cumin, is there anything else out there that is used. Are 
people seeing sufficient stability that there's no percieved need for 
active monitoring?? I'd love to know :-)

Cheers,
Frase

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Is there a way to reset statistics counts on QMF Managed Objects

Posted by Fraser Adams <fr...@blueyonder.co.uk>.
Gordon Irving wrote:
> Would it be possible to request such a feature, we are today going to restart one of our production brokers to correct this.  It would be a lot easier if we could call a qmf method and reset to zero.
>   
I've raised a Jira:
https://issues.apache.org/jira/browse/QPID-3580

Hope that's OK.
> In answer to Fraser Adams questions over monitoring, we have a bespoke qmf console that collects queue/exchange stats and stores them in a database, we then have nagios alerts based off of these on thresholds and freshness.
>   
Thanks. Are you using the python console stuff or any other language? 
Out of curiosity have you looked into Cumin? I'm playing with it in my 
set-up at home and trying to persuade my developers that it's in their 
best interests to get it up and running in our environment at work. 
Sometimes you can lead a horse to water :-) ....

Re "we then have nagios alerts based off of these on thresholds and 
freshness". You might already be aware of this, but in case not... as of 
Qpid 0.10 there's an Event available:

<event name="queueThresholdExceeded" sev="warn" args="qName, msgDepth, 
byteDepth"/>

That makes it pretty easy to trigger alerts when a threshold gets 
exceeded. If you've not already discovered this it's worth a play.



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


RE: Is there a way to reset statistics counts on QMF Managed Objects

Posted by Gordon Irving <go...@sophos.com>.
Would it be possible to request such a feature, we are today going to restart one of our production brokers to correct this.  It would be a lot easier if we could call a qmf method and reset to zero.

In answer to Fraser Adams questions over monitoring, we have a bespoke qmf console that collects queue/exchange stats and stores them in a database, we then have nagios alerts based off of these on thresholds and freshness.

Cheers
Gordon

> -----Original Message-----
> From: Gordon Sim [mailto:gsim@redhat.com]
> Sent: 01 November 2011 04:57
> To: users@qpid.apache.org
> Subject: Re: Is there a way to reset statistics counts on QMF Managed
> Objects
>
> On 10/31/2011 06:05 PM, Fraser Adams wrote:
> > Is there any way (short of restarting the broker!!) to reset the
> counts?
> > Looking through the QMF methods in management-schema.xml there's
> nothing
> > obvious, so I'm guessing not, but you never know.
>
> No, there isn't.
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org


Sophos Limited, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, United Kingdom.
Company Reg No 2096520. VAT Reg No GB 991 2418 08.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Is there a way to reset statistics counts on QMF Managed Objects

Posted by Gordon Sim <gs...@redhat.com>.
On 10/31/2011 06:05 PM, Fraser Adams wrote:
> Is there any way (short of restarting the broker!!) to reset the counts?
> Looking through the QMF methods in management-schema.xml there's nothing
> obvious, so I'm guessing not, but you never know.

No, there isn't.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org