java Timer 和 Meter 指标的分钟费率表示什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26038298/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What do minute rates of Timer and Meter metrics indicate?
提问by ravikumar
We are trying to achieve reporting functionality based on information from Yammer metrics.
我们正在尝试基于来自 Yammer 指标的信息实现报告功能。
Yammer metrics provides information about Timers and Meters as shown below:
Yammer 指标提供有关计时器和仪表的信息,如下所示:
METER_METRIC:
count = 1
mean rate = 0.01 count/s
1-minute rate = 0.00 count/s
5-minute rate = 0.00 count/s
15-minute rate = 0.00 count/s
TIMER_METRIC:
count = 1
mean rate = 0.01 calls/s
1-minute rate = 0.01 calls/s
5-minute rate = 0.00 calls/s
15-minute rate = 0.00 calls/s
min = 89.77ms
max = 89.77ms
mean = 89.77ms
stddev = 0.00ms
median = 89.77ms
75% <= 89.77ms
95% <= 89.77ms
98% <= 89.77ms
99% <= 89.77ms
99.9% <= 89.77ms
I read an overviewand am able to get the application statistics as shown above. The Timer and Meter metrics have information about the 1-minute rate, 5-minute rate and 15-minute rate.
我阅读了概述并能够获得如上所示的应用程序统计信息。Timer 和 Meter 指标包含有关 1 分钟费率、5 分钟费率和 15 分钟费率的信息。
Question:
问题:
What do the minute rates of the Timer and Meter metrics indicate and how those are getting calculated?
Timer 和 Meter 指标的分钟费率表示什么以及它们是如何计算的?
回答by josketres
All (mean|1-min|5-minute|15-minute)-rate
metrics indicate throughput; i.e., how many units of information (events) where processed per second.
所有(mean|1-min|5-minute|15-minute)-rate
指标都表示吞吐量;即,每秒处理多少个信息(事件)单位。
Mean rate
平均比率
Calculates the rate at which events have occurred since the meter was created. But that's not very useful because it doesn't represent what is happening right now.
计算自创建仪表以来事件发生的速率。但是,这并不是非常有用,因为它并不表示发生了什么,现在。
Minute rates
分钟费率
Calculates the rate at which events have ocurred using a technique called Exponentially-weighted moving average (EWMA).
使用称为指数加权移动平均 (EWMA)的技术计算事件发生的速率。
This rate has the same exponential decay factor as the fifteen-minute load average in the top
Unix command.
该速率与top
Unix 命令中的 15 分钟平均负载具有相同的指数衰减因子。
More Information
更多信息
Take a look at the source code of Timer.java, Meter.javaand EWMA.java
看一下Timer.java、 Meter.java和EWMA.java的源代码
If you have more time, take a look at a talk about the topic by Coda Hale: Metrics, Metrics, Everywhere - Coda Hale
如果你有更多的时间,可以看看 Coda Hale 关于这个话题的演讲:Metrics, Metrics, Everywhere - Coda Hale
回答by Denis Mikhaylov
It indicates an average request rate in a given time period. While mean rate is average for timer's lifetime.
它表示给定时间段内的平均请求率。而平均速率是定时器生命周期的平均值。