每秒的速率究竟指定了什么?
public Long getTopDonation() {
Timer topDonationCalcTimer = registry.timer("topDonationCalcTimer");
Timer.Context context = topDonationCalcTimer.time();// start time
Long max = 0L;
for (Long amount : donationManager.getDonationsList()) {
max = amount > max ? amount : max;
}
context.close();// Stop timing
return max;
}
它是否告诉线性搜索的总时间(以纳秒为单位)是 0.19107302754898328?
1.97197E-4 timer_seconds{quantile="0.99"} 指定了什么?
curl -k -u 用户:密码 https://localhost:9443/metrics/application/topDonationCalcTimer
application:top_donation_calc_timer_rate_per_second 0.19107302754898328
application:top_donation_calc_timer_one_min_rate_per_second 0.013233974568205872
application:top_donation_calc_timer_seconds_count 63
application:top_donation_calc_timer_seconds{quantile="0.5"} 8.6069E-5
application:top_donation_calc_timer_seconds{quantile="0.75"} 1.0372E-4
application:top_donation_calc_timer_seconds{quantile="0.95"} 1.53694E-4
application:top_donation_calc_timer_seconds{quantile="0.98"} 1.96615E-4
application:top_donation_calc_timer_seconds{quantile="0.99"} 1.97197E-4
application:top_donation_calc_timer_seconds{quantile="0.999"} 1.97197E-4