pip install statsd
python
import statsd
statsd_client = statsd.StatsClient(host='statsd.example.com', port=8125, prefix='myapp.')
statsd_client.incr('requests.count')
with statsd_client.timer('requests.duration'):
statsd_client.gauge('memory.usage', 80)