E&S CVS Commit: pylib - Event counter interfaces, and a simple file-based counter implementation.

tsarna at eby-sarna.com tsarna at eby-sarna.com
Mon Jun 4 16:28:00 EDT 2001


Module Name:	pylib
Committed By:	tsarna
Date:		Mon Jun  4 20:27:57 UTC 2001

Modified Files:
	pylib/AppUtils: Connections.py
Added Files:
	pylib/AppUtils: Counters.py

Log Message:
Event counter interfaces, and a simple file-based counter implementation.

Also includes implementation of a counter for getting stats (hit
count, bytes transferred) from Apache.

XXX the latter should probably go somewhere else.  Probably should have
a separate toplevel module for monitoring/counters stuff.  Each OS will
probably need its own module, for OS-level stats (network I/O,
loadaverage, etc.) because the interfaces for getting at these (and
what's available) vary wildly between platforms.

This would be useful with the "classpath as url scheme" support in
AppUtils.Connections.  For example, if the top level was called StatMon
(for Status & Statistics Monitoring):

	StatMon/
		Apache.py
		NetBSD.py
		Linux.py
		...

Then the current "apstatus:hits at http://localhost/server-status" could
become "StatMon.Apache.Status:hits at http://localhost/server-status", and
we could allow "StatMon.NetBSD.LoadAverage:",
"StatMon.Linux.NetIO:inbound at eth0" schemes, etc.

Also, an module for generating MRTG counter input files from templates
that specify URLs should go under StatMon.

Not sure StatMon is really ideal, but I can't think of anything better.
Preferably short, for URL convenience, but reasonably unique and
descriptive.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/pylib/AppUtils/Connections.py.diff?r1=1.4&r2=1.5
http://cvs.eby-sarna.com/pylib/AppUtils/Counters.py?rev=1.1&content-type=text/vnd.viewcvs-markup

To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 pylib/AppUtils/Connections.py
cvs rdiff -r0 -r1.1 pylib/AppUtils/Counters.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.





More information about the source-changes mailing list