2017-04-06 53 views
0

我在Graphite中有点新手,所以如果你帮助我/为配置文件提供一些提示,将不胜感激。 我需要的是:石墨 - 聚集/保留

  • 拥有多台服务器并能够从这些服务器发送指标。指标应汇总(aggregationMethod:sum)。因此,如果我有注册度量标准,并且在一台服务器上每5分钟注册3次注册,第二次注册每5分钟注册2次,那么我应该在Graphite中每5分钟注册5次注册。请纠正我,如果我错了,但它应该是可能的(在存储aggregation.conf):
[all] 
pattern = .* 
xFilesFactor = 0 
aggregationMethod = sum 
  • 我还需要有一个用ls指标: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

就看到2的值的custom_metric我理解,StatsD并不适合我,因为它只接受实时指标。

任何帮助将不胜感激!

回答

0

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

看着你/opt/graphite/conf/aggregation-rules.conf.example的一个示例配置文件和文档在这里:Graphite carbon-aggregation.conf documentation

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