使用 StatsD(通过 etsy)和 Graphite 跟踪指标,石墨图似乎没有绘制所有数据 [英] Tracking metrics using StatsD (via etsy) and Graphite, graphite graph doesn't seem to be graphing all the data

查看:18
本文介绍了使用 StatsD(通过 etsy)和 Graphite 跟踪指标,石墨图似乎没有绘制所有数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个指标,每次用户在我们的网站上执行特定操作时我们都会增加该指标,但图表似乎并不准确.

We have a metric that we increment every time a user performs a certain action on our website, but the graphs don't seem to be accurate.

因此,出于这种预感,我们投资了 carbon 的 updates.log 并发现该操作今天已经发生了超过 4000 次(使用 grep 和 wc),但根据图的积分结果,它仅返回了 220ish.

So going off this hunch, we invested the updates.log of carbon and discovered that the action had happened over 4 thousand times today(using grep and wc), but according the Integral result of the graph it returned only 220ish.

这可能是什么原因?正在使用 statsd php 库将数据报告给 statsd,并调用 statsd::increment('metric'); 并且如上所述,日志确认今天发生了对该键的 4,000 多次更新.

What could be the cause of this? Data is being reported to statsd using the statsd php library, and calling statsd::increment('metric'); and as stated above, the log confirms that 4,000+ updates to this key happened today.

我们正在使用:

graphite 0.9.6 with statsD (etsy)

graphite 0.9.6 with statsD (etsy)

推荐答案

在上面发表我的评论后,我发现 Graphite 0.9.9 有一个(新的?)配置文件 storage-aggregation.conf,可以在其中控制聚合每个模式的方法.可用选项包括平均值、总和、最小值、最大值和最后.

After posting my comment above I found Graphite 0.9.9 has a (new?) configuration file, storage-aggregation.conf, in which one can control the aggregation method per pattern. The available options are average, sum, min, max, and last.

http://readthedocs.org/docs/graphite/en/latest/config-carbon.html#storage-aggregation-conf

这篇关于使用 StatsD(通过 etsy)和 Graphite 跟踪指标,石墨图似乎没有绘制所有数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆