石墨 - 聚合/保留

时间:2017-04-06 10:04:01

标签: graphite

我是Graphite的新手,所以如果你帮助我/提供配置文件的一些提示,将不胜感激。 我需要的是:

  • 拥有多台服务器并能够从这些服务器发送指标。应汇总度量标准(aggregationMethod:sum)。因此,如果我有注册指标,并且在一台服务器上每5分钟注册3次,在第二台服务器上每5分钟注册2次,我应该在Graphite中每5分钟注册5次。如果我错了,请纠正我,但应该可以使用(在storage-aggregation.conf中):
[all]
pattern = .*
xFilesFactor = 0
aggregationMethod = sum
  • 我还需要一个1s的度量标准:3y分辨率,能够在3小时内聚合它。我的意思是,我应该报告以下内容:
Name: custom_metric Time: 00000 Value: 1 ( Reported now )
Name: custom_metric Time: 00001 Value: 1 ( Reported 1 second from now )
..............
Name: custom_metric Time: 00000 Value: 1 ( Reported 2h 59m from now )

最终,我应该在0000时看到custom_metric的值为2。

据我了解,StatsD不适合我,因为它只接受实时指标。

任何帮助都将受到高度赞赏!

1 个答案:

答案 0 :(得分:0)

看起来你想要碳聚合器服务。

在/opt/graphite/conf/aggregation-rules.conf.example中查看示例配置文件和文档:Graphite carbon-aggregation.conf documentation

我使用statsd而不是这个。 carbon-relay-ng也会聚合。