Statsd:使用哪个指标来衡量数据吞吐量

Statsd: Which metric to use to measure data throughput

我是 statsd 的新手,我想测量我的进程使用的聚合数据 volume/second,但找不到正确的 statsd 指标:

那么我应该选择哪一个,又该如何使用呢?

使用计数器,你可以用一个值递增它。例如,将 foo 递增 3

echo "foo:3|c" | nc -u -w0 127.0.0.1 8125

来自data types docs

You can increment a counter by more than one by passing a second parameter:

statsd.incr('some.other.event', 10)