Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vistahigherlearning / statsd   deb

Repository URL to install this package:

/ etc / init / statsd.conf

# statsd - Network daemon for aggregating statistics
#
# This is a network service that receives metric data via UDP from other
# applications. It aggregates this data and flushes it to a storage backend
# (typically Graphite) at regular intervals.
#
description "Network daemon for aggregating statistics"
author      "Etsy"

start on (local-filesystems and net-device-up IFACE!=lo)

setuid _statsd
setgid _statsd

respawn
respawn limit 10 5

chdir /usr/share/statsd

pre-start script
    NODE_BIN=$(which nodejs || which node)
    [ -n $NODE_BIN ] || { stop; exit 0; }
end script

script
    NODE_BIN=$(which nodejs || which node)
    exec $NODE_BIN stats.js /etc/statsd/localConfig.js
end script