Skip to content

Commit

Permalink
Merge pull request #13 from StrongestNumber9/fix_metrics_names
Browse files Browse the repository at this point in the history
Fixes metrics names to be in <[name]> format
  • Loading branch information
kortemik authored Dec 7, 2023
2 parents d7c9e45 + 5bb34c3 commit 30219f2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/java/com/teragrep/aer_01/Output.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ final class Output implements Consumer<byte[]>, AutoCloseable {
this.relpConnection.setReadTimeout(readTimeout);
this.relpConnection.setWriteTimeout(writeTimeout);

this.records = metricRegistry.counter(name(Output.class, "<[" + name + ">]", "records"));
this.bytes = metricRegistry.counter(name(Output.class, "<[" + name + ">]", "bytes"));
this.resends = metricRegistry.counter(name(Output.class, "<[" + name + ">]", "resends"));
this.connects = metricRegistry.counter(name(Output.class, "<[" + name + ">]", "connects"));
this.retriedConnects = metricRegistry.counter(name(Output.class, "<[" + name + ">]", "retriedConnects"));
this.sendLatency = metricRegistry.timer(name(Output.class, "<[" + name + ">]", "sendLatency"));
this.connectLatency = metricRegistry.timer(name(Output.class, "<[" + name + ">]", "connectLatency"));
this.records = metricRegistry.counter(name(Output.class, "<[" + name + "]>", "records"));
this.bytes = metricRegistry.counter(name(Output.class, "<[" + name + "]>", "bytes"));
this.resends = metricRegistry.counter(name(Output.class, "<[" + name + "]>", "resends"));
this.connects = metricRegistry.counter(name(Output.class, "<[" + name + "]>", "connects"));
this.retriedConnects = metricRegistry.counter(name(Output.class, "<[" + name + "]>", "retriedConnects"));
this.sendLatency = metricRegistry.timer(name(Output.class, "<[" + name + "]>", "sendLatency"));
this.connectLatency = metricRegistry.timer(name(Output.class, "<[" + name + "]>", "connectLatency"));

connect();
}
Expand Down

0 comments on commit 30219f2

Please sign in to comment.