Slide 6
Slide 6 text
with statsd.timer('foo'):
for i in xrange(0, 100000):
i ** 2
statsd.gauge('foo', 70) # Set the 'foo' gauge to 70.
statsd.gauge('foo', 1, delta=True) # Set 'foo' to 71.
statsd.gauge('foo', -3, delta=True) # Set 'foo' to 68.
statsd.incr('some.event')
statsd.incr('some.other.event', 10)
statsd.incr('some.third.event', rate=0.1)
statsd.set('users', userid)