StatsD

statsD is a network daemon that runs on the Node.jsarrow-up-right platform and listens for statistics, like counters and timers, sent over UDParrow-up-right or TCParrow-up-right and sends aggregates to one or more pluggable backend services (e.g., Graphitearrow-up-right). https://github.com/statsd/statsdarrow-up-right

sfp supports emitting events to a statsD collector. You can activate the same by enabling the following environment variables

Environment Variable
Type

SFPOWERSCRIPTS_STATSD

boolean

Activate sending metrics to a StatsD collector (such as a Datadog Agent) by setting this key to true

SFPOWERSCRIPTS_STATSD_PORT

string

The port to send stats to, if not set, it is automatically set to 8125

SFPOWERSCRIPTS_STATSD_HOST

string

The host to send stats to, if not set, it is send to 127.0.0.1

SFPOWERSCRIPTS_STATSD_PROTOCOL

string

:Use tcp option for TCP protocol, or uds for the Unix Domain Socket protocol or stream for the raw stream. Defaults to udp otherwise.

Last updated