使用 dropwizard 和 graphite 随时间捕获简单 responseTime 值的合适指标
Suitable metrics to capture simple responseTime value over time using dropwizard and graphite
正如我在其他示例中发现的那样,
Timer.Context timer = metricRegistry.timer("name").time();
....
timer.stop();
这给出了 Timer
指标,其中 is "A timer measures both the rate that a particular piece of code is called and the distribution of its duration."
但是我怎样才能得到简单的 ResponseTime。似乎 Gauge
更合适,但随着时间的推移连续绘制时间并没有帮助。所以 Histogram
似乎也没有帮助。
我错过了什么?
Gauge 可用于捕获响应时间,而 Graphite 提供了随时间绘制值的功能。
正如我在其他示例中发现的那样,
Timer.Context timer = metricRegistry.timer("name").time();
....
timer.stop();
这给出了 Timer
指标,其中 is "A timer measures both the rate that a particular piece of code is called and the distribution of its duration."
但是我怎样才能得到简单的 ResponseTime。似乎 Gauge
更合适,但随着时间的推移连续绘制时间并没有帮助。所以 Histogram
似乎也没有帮助。
我错过了什么?
Gauge 可用于捕获响应时间,而 Graphite 提供了随时间绘制值的功能。