Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1008 Bytes

File metadata and controls

35 lines (23 loc) · 1008 Bytes

StatsdTelemeter

statsd is a straight forward protocol for tracking counters and timers. You can also use this telemeter to power graphite, or datadog dashboards.

StatsdTelemeter

# export STATSD_HOST="localhost:8125"

from telemetry import StatsdTelemeter

meter = StatsdTelemeter()

StatsdTelemeter accepts host and port arguments.

Methods

telemetry supports the following methods: gauge, incr, decr, timing, send

Kubernetes

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