石墨中的价值积累 [英] accumulation of value in Graphite

查看:75
本文介绍了石墨中的价值积累的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次用户连接到我的网站时,我都会发送一条消息.

I send one message each time a user connect to my site.

采用这种格式:

"user_login 1 13xxxxxxx"  (key value timestamp)

我的问题是Graphite每分钟给我一个只包含值"1"的线的图. 我每分钟发送一次随机数的消息(介于6到60之间),但是我认为Graphite会限制第一个(或最后一个?)消息的显示值.

My problem is Graphite give me a graph with only a line with the value "1", each minute. I send a random number of messages each minutes (between 6 and 60), but I think Graphite limits to the first (or last?) message, to display a value.

如何每分钟每条消息都有一个总和?

How to do to have an sum of each message, each minute ?

推荐答案

您还可以尝试使用碳汇总服务,以便在收集指标时(而不是在Graphite UI中)对指标进行汇总.参见 http://graphite.readthedocs.org/en/Latest/config-carbon.html#aggregation-rules-conf 用于聚合规则配置.请注意,您需要将指标发送到运行在与普通碳收集器端口不同的端口上的碳汇聚服务端口.

You could also try carbon aggregation service so that metrics are aggregated when they are collected instead of in the Graphite UI. See http://graphite.readthedocs.org/en/latest/config-carbon.html#aggregation-rules-conf for aggregation rule configuration. Note that you need to send the metrics to carbon aggregation service port that is running in different port than the normal carbon collector port.

这篇关于石墨中的价值积累的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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