Why use statsd when graphite's Carbon aggregator can do the same job?

前端 未结 5 1350
渐次进展
渐次进展 2021-01-30 03:17

I have been exploring the Graphite graphing tool for showing metrics from multiple servers, and it seems that the \'recommended\' way is to send all metrics data to StatsD first

5条回答
  •  伪装坚强ぢ
    2021-01-30 03:25

    1. StatsD operates over UDP, which removes the risk of carbon-aggregator.py being slow to respond and introducing latency in your application. In other words, loose coupling.

    2. StatsD supports sampling of inbound metrics, which is useful when you don't want your aggregator to take 100% of all data points to compute descriptive statistics. For high-volume code sections, it is common to use 0.5%-1% sample rates so as to not overload StatsD.

    3. StatsD has broad client-side support.

提交回复
热议问题