Our problem: we'd like an easy way to test new metrics via the command line, e.g. run <some command that outputs metrics> | <some statsd-like program> and have metrics flushed to stdout periodically.
In statsd terms I think what we want is a stdin "server" and a stdout "backend", packaged as a nice command-line tool.
Are pluggable servers/backends something you want in gostatsd? Or would the suggested approach be to write a tool that uses gostatsd as a library (specifically MetricAggregator) and gives it input via stdin and flushes its output to stdout?
Our problem: we'd like an easy way to test new metrics via the command line, e.g. run
<some command that outputs metrics> | <some statsd-like program>
and have metrics flushed to stdout periodically.In statsd terms I think what we want is a stdin "server" and a stdout "backend", packaged as a nice command-line tool.
Are pluggable servers/backends something you want in
gostatsd
? Or would the suggested approach be to write a tool that usesgostatsd
as a library (specifically MetricAggregator) and gives it input via stdin and flushes its output to stdout?