Skip to content

Commit ea4a64c

Browse files
control plane > add comment for using Gauge instead of counter
1 parent 06ea513 commit ea4a64c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hivemq-edge/src/main/java/com/hivemq/protocols/ProtocolAdapterMetrics.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
public class ProtocolAdapterMetrics {
1515

1616
private final @NotNull MetricRegistry metricRegistry;
17+
// we use this AtomicInteger in order to have a gauge for the current amount of adapters to
18+
// be consistent with the other metrics
1719
private final AtomicInteger currentAdapters = new AtomicInteger();
1820

1921
@Inject

0 commit comments

Comments
 (0)