所以过去几天我一直在玩石墨,我可以看到那里的潜力,为什么它如此强大。
我的主要问题是为什么我应该像esty那样使用statsd,还有很多其他人呢? 到目前为止,我还没有看到在石墨前面放置另一个叠层的好处。
我希望有人能清除它
https://github.com/etsy/statsd
所以我进入了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
所以我的拿走就是发送系统状态像可用内存/驱动器空间/用户login到石墨和发送应用程序状态,如用户login到statsd,让statsd做它的魔力生成石墨的好数据图