Dropwizard 石墨上的指标聚合问题



我注意到Graphite中的数据出现了奇怪的峰值,我正在使用Dropwizard指标将指标发送到Graphite。我专门使用指标计量类来收集指标。我有代码,或多或少地执行以下操作

public void recordMetric(){
 metricRegistry.meter("count.employee").mark();
 if (employee.getDesignation().equalsIgnoreCase("manager"){
    metricRegistry.meter("count.employee.manager").mark();
 }
}

问题是,当我在Graphite上查看"m1_rate"时,在很多情况下,"count.employee.manager"指标的比率高于"count.employee"。这怎么可能?这抛弃了我的其他指标,并对指标的可行性产生了怀疑。有没有人遇到过这个问题?关于如何解决此问题的任何指示?我怀疑,这可能是由于石墨中的一些怪癖,但不确定。任何帮助将不胜感激。谢谢!

你如何计算利率? 如果使用非负导数(( - 请先应用导数,然后应用sumSeries(( - 反之亦然。请检查 http://www.jilles.net/perma/2013/08/22/how-to-do-graphite-derivatives-correctly/

此外,还需要为计数器设置正确的聚合 (sum(,如 http://obfuscurity.com/2012/05/A-Precautionary-Tale-for-Graphite-Users 中所述

最新更新