在过去的几天里,我一直在玩石墨,我可以看到石墨的潜力,以及它为什么如此强大。
我的主要问题是,为什么我应该像esty和其他很多人那样在前面使用statsd?到目前为止,我还没有看到把另一堆放在石墨前面有什么好处。
我希望有人能把它弄清楚
发布于 2011-08-25 16:44:22
所以我进入了IRC频道
<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发挥其神奇的作用,为石墨生成良好的图形数据。
https://serverfault.com/questions/304895
复制相似问题