I was looking at adding the ability to report back statistics in my web application. I was planning on exporting them via snmp, so I could graph operations/sec, etc in cacti. I was very happy that uwsgi has this functionality already! However, I can only set a counter; I can't get/update or increment. Mostly, I want my application to increment a counter per operation, and increment a byte count.
I don't know what the proper way to suggest changes, so please pardon me if I'm doing it wrong here. I was thinking of adding some functions: Existing functions: uwsgi.snmp_set_counter32 uwsgi.snmp_set_counter64 uwsgi.snmp_set_gauge Proposed new: uwsgi.snmp_incr_counter32 uwsgi.snmp_incr_counter64 I'm thinking that the _incr functions should take an optional argument (integer type) that will increment the counter by that amount. The default would be 1. Making the increment functions should be straightforward, based on the existing set functions. Do I need to create a lock like in py_uwsgi_sharedarea_inclong? I'm happy to write the code for this, just let me know how you'd like me to proceed. Steve
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
