Based on metrics-and-stats blueprint
Usage examples:
from designate.metrics import metrics
@metrics.timed('dot.separated.name')
def your_function():
pass
with metrics.time('dot.separated.name'):
pass
# Increment and decrement a counter.
metrics.counter(name='foo.bar').increment()
metrics.counter(name='foo.bar') -= 10
Bases: object
Initialize Monasca-Statsd client with its default configuration. Do not start sending metrics yet.
list of weak references to the object (if defined)