Package org.eclipse.hono.adapter.mqtt
Class MicrometerBasedMqttAdapterMetrics
- java.lang.Object
-
- org.eclipse.hono.service.metric.MicrometerBasedMetrics
-
- org.eclipse.hono.adapter.mqtt.MicrometerBasedMqttAdapterMetrics
-
- All Implemented Interfaces:
MqttAdapterMetrics,org.eclipse.hono.client.SendMessageSampler.Factory,Metrics
public class MicrometerBasedMqttAdapterMetrics extends MicrometerBasedMetrics implements MqttAdapterMetrics
Metrics for the MQTT based adapters.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.hono.adapter.mqtt.MqttAdapterMetrics
MqttAdapterMetrics.Noop
-
-
Field Summary
-
Fields inherited from class org.eclipse.hono.service.metric.MicrometerBasedMetrics
log, METER_COMMANDS_PAYLOAD, METER_COMMANDS_RECEIVED, METER_CONNECTIONS_ATTEMPTS, METER_CONNECTIONS_AUTHENTICATED, METER_CONNECTIONS_AUTHENTICATED_DURATION, METER_CONNECTIONS_UNAUTHENTICATED, METER_DOWNSTREAM_FULL, METER_DOWNSTREAM_SENT, METER_DOWNSTREAM_TIMEOUT, METER_MESSAGES_PAYLOAD, METER_MESSAGES_RECEIVED, registry
-
Fields inherited from interface org.eclipse.hono.adapter.mqtt.MqttAdapterMetrics
NOOP
-
-
Constructor Summary
Constructors Constructor Description MicrometerBasedMqttAdapterMetrics(io.micrometer.core.instrument.MeterRegistry registry, io.vertx.core.Vertx vertx)Create a new metrics instance for MQTT adapters.
-
Method Summary
-
Methods inherited from class org.eclipse.hono.service.metric.MicrometerBasedMetrics
create, decrementConnections, decrementUnauthenticatedConnections, gaugeForKey, gaugeForTenant, getNumberOfConnections, incrementConnections, incrementUnauthenticatedConnections, reportCommand, reportConnectionAttempt, reportConnectionAttempt, reportTelemetry, reportTelemetry, setProtocolAdapterProperties, startTimer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.hono.service.metric.Metrics
decrementConnections, decrementUnauthenticatedConnections, getNumberOfConnections, incrementConnections, incrementUnauthenticatedConnections, reportCommand, reportConnectionAttempt, reportConnectionAttempt, reportTelemetry, reportTelemetry, startTimer
-
-
-
-
Constructor Detail
-
MicrometerBasedMqttAdapterMetrics
public MicrometerBasedMqttAdapterMetrics(io.micrometer.core.instrument.MeterRegistry registry, io.vertx.core.Vertx vertx)Create a new metrics instance for MQTT adapters.- Parameters:
registry- The meter registry to use.vertx- The Vert.x instance to use.- Throws:
NullPointerException- if either parameter isnull.
-
-