statsd is a straight forward protocol for tracking counters and timers. You can also use this telemeter to power graphite, or datadog dashboards.
# export STATSD_HOST="localhost:8125"
from telemetry import StatsdTelemeter
meter = StatsdTelemeter()StatsdTelemeter accepts host and port arguments.
telemetry supports the following methods:
gauge, incr, decr, timing, send
Confirm your statsd host relative to your pods, it may not be 127.0.0.1.
If statsd is being run on your host machine, add this to your pod's environment vars
(k8s v1.7.0-alpha.1+.)
env:
- name: STATSD_HOST
value: status.hostIP