ClientRequestMetrics: Using the APITimer
The APITimer uses a different endpoint not to break existing API. Signed-off-by: Amnon Heiman <amnon@scylladb.com>
This commit is contained in:
parent
2c07ca2e09
commit
ad49d05780
@ -59,12 +59,13 @@ public class ClientRequestMetrics extends LatencyMetrics {
|
||||
public ClientRequestMetrics(String url, String scope) {
|
||||
super(url, "ClientRequest", scope);
|
||||
|
||||
timeouts = APIMetrics.newMeter(url + "/timeouts",
|
||||
timeouts = APIMetrics.newMeter(url + "/timeouts_rates",
|
||||
factory.createMetricName("Timeouts"), "timeouts",
|
||||
TimeUnit.SECONDS);
|
||||
unavailables = APIMetrics.newMeter(url + "/unavailables",
|
||||
unavailables = APIMetrics.newMeter(url + "/unavailables_rates",
|
||||
factory.createMetricName("Unavailables"), "unavailables",
|
||||
TimeUnit.SECONDS);
|
||||
|
||||
}
|
||||
|
||||
public void release() {
|
||||
|
Loading…
Reference in New Issue
Block a user