Hi Joe and David, thanks for your persistence. I have just committed a new version that supports a "statistics subsystem":
http://git.adiscon.com/?p=rsyslog.git;a=commitdiff;h=e86cb62f1299ef18732f7b3b 87d45a840ee38f1e It is not a big system, but contains a counter registry and the necessary plumbing to define simple counters. So far, I have implemented a counter for the number of messages received by imuxsock, and for the queue current queue size, max queue size ever and how often the queue was full. Of course, these are demo counters and others can (and will) be added. They all fall into the "easy to obtain" category, done with atomic instructions where available. Counters are always present, but are maintained only when impstats is loaded. So the performance toll should be minimal when not in use. I still plan to add a configure option to turn off stats at all (for very high-end environments). I hope to have this as a official release soon. Feedback on the current status is appreciated. Thanks, Rainer > -----Original Message----- > From: [email protected] [mailto:rsyslog- > [email protected]] On Behalf Of Joe Williams > Sent: Wednesday, September 08, 2010 5:25 PM > To: rsyslog-users > Subject: Re: [rsyslog] rsyslog stats - counters > > > On Sep 7, 2010, at 11:12 PM, Rainer Gerhards wrote: > > > I have thought once again about which counters I could provide > without > > generating most of the plumbing. Probably the only one I can envision > is the > > number of message objects inside the system (assuming that number of > queues > > itself and such is of really no interest at all), or more precisely > number of > > messages generated and number of messages deleted. This does roughly > reflect > > the number of messages processed, but only if no async queues are > used (they > > require some message duplication). If this is considered useful, I > could look > > into that. It probably takes two to three days to get that going with > some > > minimal plumbing for the background writer (done in a clean way). > > > > I could also output the main queue size, but once again be reminded > that this > > reflects only part of the picture (depending on config only a very > small > > part...). > > > > Feedback appreciated. > > > Thanks Rainier, > > I'm of the opinion that any introspection is better than none and this > is a move in the right direction. > > -Joe > > > Name: Joseph A. Williams > Email: [email protected] > Blog: http://www.joeandmotorboat.com/ > Twitter: http://twitter.com/williamsjoe > > _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com

