首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用statsd的好处?

使用statsd的好处?
EN

Server Fault用户
提问于 2011-08-25 13:28:26
回答 1查看 1.2K关注 0票数 7

在过去的几天里,我一直在玩石墨,我可以看到石墨的潜力,以及它为什么如此强大。

我的主要问题是,为什么我应该像esty和其他很多人那样在前面使用statsd?到目前为止,我还没有看到把另一堆放在石墨前面有什么好处。

我希望有人能把它弄清楚

https://github.com/etsy/statsd

EN

回答 1

Server Fault用户

回答已采纳

发布于 2011-08-25 16:44:22

所以我进入了IRC频道

代码语言:javascript
复制
<jY> what are the benefits of putting statsd in front of graphite
 <vvuksan> data aggregation
 <vvuksan> say you wanted to find out how many registrations you have per time period
 <vvuksan> you can either keep track of it yourself
 <vvuksan> send to graphite every minute
 <vvuksan> or
 <vvuksan> any time there is a successful registration send a packet to statsd and let statsd deal with it
 <jY> ok.. so i  just keep incing the counter then to statsd?
 <vvuksan> no
 <vvuksan> you just send to statsd
 <vvuksan> statsd will increment it for you
 <jY> ok
 <vvuksan> you can do all this yourself
 <vvuksan> it's just more work
 <jY> could i also send stuff like load avg to statsd.. or should that go right to graphite?
 <vvuksan> that should go right to graphite
 <vvuksan> cause that is already a composite metric
 <vvuksan> not just a data point
 <jY> ok so it's really only app specific stuff 
 <jY> ok thanks.. clears up a lot
 <jY> statsd would be good to send logins to.. so i can see how many logins per minute i get in other words
 <vvuksan> yeah
 <vvuksan> or what's average response time of an external API
 <vvuksan> it will also do percentiles which is useful
 <vvuksan> you could even do how long it took to execute a particular important query
 <jY> great.. thanks that cleared up a lot

因此,我的方法是发送系统统计数据,如空闲内存/驱动器空间/用户登录到石墨,并发送应用程序统计数据,比如用户登录到statsd,并让statsd发挥其神奇的作用,为石墨生成良好的图形数据。

票数 8
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/304895

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档