statsd profiling

38 views
Skip to first unread message

Jonathan Vanasco

unread,
May 24, 2013, 12:24:37 AM5/24/13
to pylons-...@googlegroups.com
i decided to integrate some profiling with statsd, and it was really easy.

i use it for timing and profiling certain logical things, but also use it for some lightweight analytics based on the matched route

i use a ContextFound event to start a timer, and then send a payload using `add_finished_callback` 


I just found out about statsd.  it's pretty neat - it's a nodejs daemon that listens to (non-blocking) UDP traffic, and then does periodic dumps to a Graphite backend.  it took about 4 hours to set everything up ( install, configure, integrate and test logging across my app )

Brian O'Connor

unread,
May 24, 2013, 12:32:34 AM5/24/13
to pylons-...@googlegroups.com
For those that don't know much about StatsD, Etsy released it a while back: https://github.com/etsy/statsd

It's really nice when combined with the dashboard package released as well: https://github.com/etsy/dashboard

It's written in PHP, but I can't imagine it would be too difficult to rebuild in python, if you *really* wanted to.


--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
To post to this group, send email to pylons-...@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Brian O'Connor

John Anderson

unread,
May 24, 2013, 1:44:36 AM5/24/13
to pylons-...@googlegroups.com
You should check this lib out:


Whit Morriss

unread,
May 24, 2013, 11:36:41 AM5/24/13
to <pylons-discuss@googlegroups.com>


On May 23, 2013, at 11:32 PM, Brian O'Connor <gatz...@gmail.com>
 wrote:

For those that don't know much about StatsD, Etsy released it a while back: https://github.com/etsy/statsd

It's really nice when combined with the dashboard package released as well: https://github.com/etsy/dashboard

It's written in PHP, but I can't imagine it would be too difficult to rebuild in python, if you *really* wanted to.


graphite also acts as a statsd frontend.  you might also take a look a mozilla service hekka which covers the use cases statsd does and can push data to whisper db files read by graphite.

-w

d. "whit" morriss
Platform Codemonkey

Reply all
Reply to author
Forward
0 new messages