ガベージ コレクションに費やした時間をグラファイトに送信しています (jmx 経由で jvm から取得します)。これは増加するカウンターです。Graphite に 1 分ごとの変化をグラフ化して、GC で費やされた時間を分単位で示すグラフを表示する方法はありますか?
13339 次
1 に答える
21
Derivative 関数を使用してカウンターをヒット率に変換し、集計関数を使用してカウンターを時間枠に変換できるはずです。
&target=summarize(derivative(java.gc_time), "1min") # time spent per minute
派生物(系列リスト)
This is the opposite of the integral function. This is useful for taking a
running totalmetric and showing how many requests per minute were handled.
&target=derivative(company.server.application01.ifconfig.TXPackets)
ifconfig を実行するたびに、RX および TXPackets が高くなります (ネットワーク トラフィックがあると仮定します)。微分関数を適用することで、合計のみを記録していても、1 分あたりの送受信パケット数を把握できます。
要約 (seriesList、intervalString、func='sum'、alignToFrom=False)
Summarize the data into interval buckets of a certain size.
By default, the contents of each interval bucket are summed together.
This is useful for counters where each increment represents a discrete event and
retrieving a “per X” value requires summing all the events in that interval.
ソース: http://graphite.readthedocs.org/en/0.9.10/functions.html
于 2012-09-08T14:35:49.477 に答える