Rudimentary pubsub.py statistics

"Adam Rifkin" <[email protected]>
Newsgroups gmane.comp.web.mod-pubsub.devel
Message-ID <[email protected]>
Committed into cvs is an updated

    mod_pubsub/python_pubsub/pubsub.py

that includes basic statistics, published every second.

Topics are /kn_statistics/%statname%/ where %statname% are:
    starttime
    uptime = time.time() - starttime
    openedconns
    closedconns
    liveconns = openedconns - closedconns

kn_id of each update is also %statname% and
kn_payload is the sampled value at the last update.

pubsub.py also posts all stats to /kn_statistics for compatibility
with the watchdog library.

Net-net is that you can now watch rudimentary server stats.
I checked in an example app called "statwatch" -- it's not
much but it demonstrates what's cool about having statistics:

    http://pubsub.knownow.com/beta/kn_apps/statwatch/

This was inspired by Mike's call-to-action about the
PeopleOnPage app

    http://sourceforge.net/mailarchive/forum.php?thread_id=2627726&forum_id=12984

Live statistics takes us one step closer...

    Adam


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.