Пример #1
0
 def do_nothing():
     Statsd.timing("python.test.timer",500)
     Statsd.gauge("python.test.gauge",500)
     Statsd.increment("python.test.counter")
     Statsd.decrement("python.test.counter")
     Statsd.update_stats("python.test.counter", 5, sample_rate=1, message="ok")
     Statsd.update_stats("python.test.counter", -5, sample_rate=0)
Пример #2
0
 def test_stats():
     Statsd.timing('python.test.timer', 500)
     Statsd.gauge('python.test.gauge', 500)
     Statsd.increment('python.test.counter')
     Statsd.decrement('python.test.counter')
     Statsd.update_stats('python.test.counter', 5, sample_rate=1)
     Statsd.update_stats('python.test.counter', -5, sample_rate=0)