簡體   English   中英

Dropwizard度量標准在石墨上的聚集問題

[英]Dropwizard Metric aggregation issues on graphite

我注意到Graphite中的數據出現了奇怪的峰值,並且我正在使用Dropwizard指標將指標發送到Graphite。 我專門使用Metrics meter類來收集指標。 我有適當的代碼來執行以下操作

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”。 這怎么可能? 這拋棄了我的其他指標,並對該指標的可行性產生了懷疑。 有沒有人遇到這個問題? 關於如何解決此問題的任何指示? 我懷疑,這可能是由於Graphite中的一些古怪現象引起的,但不確定。 任何幫助將不勝感激。 謝謝!

您如何計算費率? 如果使用nonNegativeDerivative()-請先應用導數,然后再應用sumSeries()-反之亦然。 請正確檢查http://www.jilles.net/perma/2013/08/22/how-to-do-graphite-derivatives/

另外,您還需要為計數器設置正確的匯總(總和),如http://obfuscurity.com/2012/05/A-Precautionary-Tale-for-Graphite-Users中所述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM