Monitoring

The ability to monitor server applications is very important for operating these applications. HiveMQ is no exception, in fact HiveMQ was designed to enable different kinds of monitoring easily. When using HiveMQ in critical infrastructure, it is strongly recommended to enable monitoring and use a decent application for displaying the relevant information you need for your operations.

Gathering metrics is enabled by default. The HiveMQ metrics subsystem is designed to be very performant and no performance penalties are expected for monitoring relevant metrics, even in low-latency and high-throughput environments.

JMX

HiveMQ has extensive support for Java Management Extensions (JMX) to monitor internals of HiveMQ and the JVM. JMX is a proven industry standard for Java Monitoring and many external tools support JMX natively or via extensions.

Configuration

If your HiveMQ runs behind some kind of NAT you have to set some additional options:

JAVA_OPTS="$JAVA_OPTS -Djava.rmi.server.hostname=<PUBLIC_IP>"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.rmi.port=9010"

This allows you to connect via JConsole using PUBLIC_IP:9010.

MBeans

When JMX is activated, the following MBeans can be used for monitoring:

MBean Name Description

metrics

The HiveMQ metrics and statistics. A list of all available metrics is available here.

java.nio

Statistics and metrics about used native memory.

java.lang

All information about the Java Virtual Machine can be monitored here.

actions

Actions that can be started via JMX.

Maintenance

Maintenance actions are often resource intensive and should therefore not be started when HiveMQ instances have been added to the cluster or removed recently. Before starting a maintenance action, make sure that the actual cluster size is equal to the supposed cluster size.

Maintenance actions Description

subscription cleanup

Clean up outdated subscriptions that were added during network splits.

Available Metrics

Metric Types

There are five different types of Metrics available. The following table shows all available metric types:

Table 1. Metric Types
Metric Type Description

Gauge

A gauge returns a simple value at the point of time the metric was requested.

Counter

A counter is a simple incrementing and decrementing number.

Histogram

A histogram measures the distribution of values in a stream of data. They allow to measure min, mean, max, standard deviation of values and quantiles.

Meter

A meter measures the rate at which a set of events occur. Meters measure mean, 1-, 5-, and 15-minute moving averages of events.

Timer

A timer is basically a histogram of the duration of a type of event and a meter of the rate of its occurrence. It captures rate and duration information.

The following table lists metrics that are available for monitoring HiveMQ regardless if the HiveMQ server instance runs in single mode or as part of a cluster:

Table 2. Available standard metric details
Metric Type Description

com.hivemq.cache.payload-persistence.averageLoadPenalty

Gauge

Cache statistic capturing the average load penalty of the payload persistence cache

com.hivemq.cache.payload-persistence.evictionCount

Gauge

Cache statistic capturing the eviction count of the payload persistence cache

com.hivemq.cache.payload-persistence.hitCount

Gauge

Cache statistic capturing the hit count of the payload persistence cache

com.hivemq.cache.payload-persistence.hitRate

Gauge

Cache statistic capturing the hit rate of the payload persistence cache

com.hivemq.cache.payload-persistence.loadCount

Gauge

Cache statistic capturing the load count of the payload persistence cache

com.hivemq.cache.payload-persistence.loadExceptionCount

Gauge

Cache statistic capturing the load exception count of the payload persistence cache

com.hivemq.cache.payload-persistence.loadExceptionRate

Gauge

Cache statistic capturing the load exception rate of the payload persistence cache

com.hivemq.cache.payload-persistence.loadSuccessCount

Gauge

Cache statistic capturing the load success count of the payload persistence cache

com.hivemq.cache.payload-persistence.missCount

Gauge

Cache statistic capturing the miss count of the payload persistence cache

com.hivemq.cache.payload-persistence.missRate

Gauge

Cache statistic capturing the miss rate of the payload persistence cache

com.hivemq.cache.payload-persistence.requestCount

Gauge

Cache statistic capturing the request count of the payload persistence cache

com.hivemq.cache.payload-persistence.totalLoadTime

Gauge

Cache statistic capturing the total load time of the payload persistence cache

com.hivemq.cache.shared-subscription.averageLoadPenalty

Gauge

Cache statistic capturing the average load penalty of the shared subscription cache

com.hivemq.cache.shared-subscription.evictionCount

Gauge

Cache statistic capturing the eviction count of the shared subscription cache

com.hivemq.cache.shared-subscription.hitCount

Gauge

Cache statistic capturing the hit count of the shared subscription cache

com.hivemq.cache.shared-subscription.hitRate

Gauge

Cache statistic capturing the hit rate of the shared subscription cache

com.hivemq.cache.shared-subscription.loadCount

Gauge

Cache statistic capturing the load count of the shared subscription cache

com.hivemq.cache.shared-subscription.loadExceptionCount

Gauge

Cache statistic capturing the load exception count of the shared subscription cache

com.hivemq.cache.shared-subscription.loadExceptionRate

Gauge

Cache statistic capturing the load exception rate of the shared subscription cache

com.hivemq.cache.shared-subscription.loadSuccessCount

Gauge

Cache statistic capturing the load success count of the shared subscription cache

com.hivemq.cache.shared-subscription.missCount

Gauge

Cache statistic capturing the miss count of the shared subscription cache

com.hivemq.cache.shared-subscription.missRate

Gauge

Cache statistic capturing the miss rate of the shared subscription cache

com.hivemq.cache.shared-subscription.requestCount

Gauge

Cache statistic capturing the request count of the shared subscription cache

com.hivemq.cache.shared-subscription.totalLoadTime

Gauge

Cache statistic capturing the total load time of the shared subscription cache

com.hivemq.cluster.name-request.retry.count

Counter

Counts the amount of retry until a name for a node via it‘s address is resolved

com.hivemq.cluster.topology-change.time

Timer

Measures the time spent waiting for cluster topology changes

com.hivemq.exceptions.total

Meter

Measures the rate of inconsequential exceptions thrown during the socket life cycle

com.hivemq.keep-alive.disconnect.count

Counter

Counts every closed connection that was closed because the client missed sending PINGREQ message during the keep-alive interval

com.hivemq.logging.all

Meter

Measures the rate of logging statements of all levels

com.hivemq.logging.debug

Meter

Measures the rate of logging statements in DEBUG level

com.hivemq.logging.error

Meter

Measures the rate of logging statements in ERROR level

com.hivemq.logging.info

Meter

Measures the rate of logging statements in INFO level

com.hivemq.logging.trace

Meter

Measures the rate of logging statements in TRACE level

com.hivemq.logging.warn

Meter

Measures the rate of logging statements in WARN level

com.hivemq.messages.dropped.count

Counter

Counts every dropped message.

com.hivemq.messages.dropped.rate

Meter

Measures the current rate of dropped messages.

com.hivemq.messages.dropped.queue-full.count

Counter

Counts PUBLISH messages that have been dropped, because the message queue for a disconnected persistent session client was full.

com.hivemq.messages.dropped.publish-inbound-intercepted.count

Counter

Counts PUBLISH messages that have been dropped, because a Publish Inbound Interceptor prevented onward delivery.

com.hivemq.messages.dropped.mqtt-packet-too-large.count

Counter

Counts MQTT messages (except PUBLISH) that have been dropped, because the message size was too large for the client.

com.hivemq.messages.dropped.not-writable.count

Counter

Counts PUBLISH messages that have been dropped, because the socket for the client was not writable (only QoS 0).

com.hivemq.messages.dropped.qos-0-memory-exceeded.count

Counter

Counts PUBLISH messages that have been dropped, because the global memory limit for QoS 0 messages has been exceeded.

com.hivemq.messages.dropped.internal-error.count

Counter

Counts PUBLISH messages that have been dropped, because of an internal error.

com.hivemq.messages.dropped.count

Counter

Counts every dropped message

com.hivemq.messages.dropped.rate

Meter

Measures the current rate of dropped messages

com.hivemq.messages.dropped.queue-full.count

Counter

Counts PUBLISH messages that have been dropped, because the message queue for a disconnected persistent session client was full

com.hivemq.messages.dropped.message-too-large.count

Counter

Counts PUBLISH messages that have been dropped, because the message size was too large for the client

com.hivemq.messages.dropped.publish-inbound-intercepted.count

Counter

Counts PUBLISH messages that have been dropped, because a Publish Inbound Interceptor prevented onward delivery

com.hivemq.messages.dropped.mqtt-packet-too-large.count

Counter

Counts MQTT messages (except PUBLISH) that have been dropped, because the message size was too large for the client

com.hivemq.messages.dropped.not-writable.count

Counter

Counts PUBLISH messages that have been dropped, because the socket for the client was not writable (only QoS 0)

com.hivemq.messages.dropped.qos-0-memory-exceeded.count

Counter

Counts PUBLISH messages that have been dropped, because the global memory limit for QoS 0 messages has been exceeded

com.hivemq.messages.dropped.internal-error.count

Counter

Counts PUBLISH messages that have been dropped, because of an internal error

com.hivemq.messages.incoming.connect.count

Counter

Counts every incoming MQTT CONNECT message

com.hivemq.messages.incoming.connect.mqtt3.count

Counter

Counts every incoming MQTT 3 CONNECT message

com.hivemq.messages.incoming.connect.mqtt5.count

Counter

Counts every incoming MQTT 5 CONNECT message

com.hivemq.messages.incoming.connect.rate

Meter

Measures the current rate of incoming MQTT CONNECT messages

com.hivemq.messages.incoming.pingreq.count

Counter

Counts every incoming MQTT PINGREQ message

com.hivemq.messages.incoming.pingreq.rate

Meter

Measures the current rate of incoming MQTT PINGREQ messages

com.hivemq.messages.incoming.puback.count

Counter

Counts every incoming MQTT PUBACK message

com.hivemq.messages.incoming.puback.rate

Meter

Measures the current rate of incoming MQTT PUBACK messages

com.hivemq.messages.incoming.pubcomp.count

Counter

Counts every incoming MQTT PUBCOMP message

com.hivemq.messages.incoming.pubcomp.rate

Meter

Measures the current rate of incoming MQTT PUBCOMP messages

com.hivemq.messages.incoming.publish.bytes

Histogram

Measures the distribution of incoming MQTT message size (including MQTT packet headers)

com.hivemq.messages.incoming.publish.count

Counter

Counts every incoming MQTT PUBLISH message

com.hivemq.messages.incoming.publish.rate

Meter

Measures the current rate of incoming MQTT PUBLISH messages

com.hivemq.messages.incoming.pubrec.count

Counter

Counts every incoming MQTT PUBREC message

com.hivemq.messages.incoming.pubrec.rate

Meter

Measures the current rate of incoming MQTT PUBREC messages

com.hivemq.messages.incoming.pubrel.count

Counter

Counts every incoming MQTT PUBREL message

com.hivemq.messages.incoming.pubrel.rate

Meter

Measures the current rate of incoming MQTT PUBREL messages

com.hivemq.messages.incoming.subscribe.count

Counter

Counts every incoming MQTT SUBSCRIBE message

com.hivemq.messages.incoming.subscribe.rate

Meter

Measures the current rate of incoming MQTT SUBSCRIBE messages

com.hivemq.messages.incoming.total.bytes

Histogram

Measures the size distribution of incoming MQTT messages (including MQTT packet headers)

com.hivemq.messages.incoming.total.count

Counter

Counts every incoming MQTT message

com.hivemq.messages.incoming.total.rate

Meter

Measures the current rate of incoming MQTT messages

com.hivemq.messages.incoming.unsubscribe.count

Counter

Counts every incoming MQTT UNSUBSCRIBE message

com.hivemq.messages.incoming.unsubscribe.rate

Meter

Measures the current rate of incoming MQTT UNSUBSCRIBE messages

com.hivemq.messages.incoming.disconnect.count

Counter

Counts every incoming MQTT DISCONNECT message

com.hivemq.messages.incoming.disconnect.rate

Meter

Measures the current rate of incoming MQTT DISCONNECT messages

com.hivemq.messages.incoming.auth.count

Counter

Counts every incoming MQTT AUTH message

com.hivemq.messages.incoming.auth.rate

Meter

Measures the current rate of incoming MQTT AUTH messages

com.hivemq.messages.outgoing.connack.count

Counter

Counts every outgoing MQTT CONNACK message

com.hivemq.messages.outgoing.connack.rate

Meter

Measures the current rate of outgoing MQTT CONNACK messages

com.hivemq.messages.outgoing.pingresp.count

Counter

Counts every outgoing MQTT PINGRESP message

com.hivemq.messages.outgoing.pingresp.rate

Meter

Measures the current rate of outgoing MQTT PINGRESP messages

com.hivemq.messages.outgoing.puback.count

Counter

Counts every outgoing MQTT PUBACK message

com.hivemq.messages.outgoing.puback.rate

Meter

Measures the current rate of outgoing MQTT PUBACK messages

com.hivemq.messages.outgoing.pubcomp.count

Counter

Counts every outgoing MQTT PUBCOMP message

com.hivemq.messages.outgoing.pubcomp.rate

Meter

Measures the current rate of outgoing MQTT PUBCOMP messages

com.hivemq.messages.outgoing.publish.bytes

Histogram

Measures the size distribution of outgoing MQTT messages (including MQTT packet headers)

com.hivemq.messages.outgoing.publish.count

Counter

Counts every outgoing MQTT PUBLISH message

com.hivemq.messages.outgoing.publish.rate

Meter

Measures the current rate of outgoing MQTT PUBLISH messages

com.hivemq.messages.outgoing.pubrec.count

Counter

Counts every outgoing MQTT PUBREC message

com.hivemq.messages.outgoing.pubrec.rate

Meter

Measures the current rate of outgoing MQTT PUBREC messages

com.hivemq.messages.outgoing.pubrel.count

Counter

Counts every outgoing MQTT PUBREL message

com.hivemq.messages.outgoing.pubrel.rate

Meter

Measures the current rate of outgoing MQTT PUBREL messages

com.hivemq.messages.outgoing.suback.count

Counter

Counts every outgoing MQTT SUBACK message

com.hivemq.messages.outgoing.suback.rate

Meter

Measures the current rate of outgoing MQTT SUBACK messages

com.hivemq.messages.outgoing.total.bytes

Histogram

Measures the size distribution of outgoing MQTT messages (including MQTT packet headers)

com.hivemq.messages.outgoing.total.count

Counter

Counts every outgoing MQTT message

com.hivemq.messages.outgoing.total.rate

Meter

Measures the current rate of outgoing MQTT messages

com.hivemq.messages.outgoing.unsuback.count

Counter

Counts every outgoing MQTT UNSUBACK message

com.hivemq.messages.outgoing.unsuback.rate

Meter

Measures the current rate of outgoing MQTT UNSUBACK messages

com.hivemq.messages.outgoing.disconnect.count

Counter

Counts every outgoing MQTT DISCONNECT message

com.hivemq.messages.outgoing.disconnect.rate

Meter

Measures the current rate of outgoing MQTT DISCONNECT messages

com.hivemq.messages.outgoing.auth.count

Counter

Counts every outgoing MQTT AUTH message

com.hivemq.messages.outgoing.auth.rate

Meter

Measures the current rate of outgoing MQTT AUTH messages

com.hivemq.messages.queued.count

Gauge

The current number of queued messages

com.hivemq.messages.pending.qos-0.count

Gauge

The current number of pending qos 0 messages

com.hivemq.messages.pending.total.count

Gauge

The current number of pending messages total

com.hivemq.messages.publish-resent

Meter

Measures the current rate of resent PUBLISH messages (QoS > 0)

com.hivemq.messages.pubrel-resent

Meter

Measures the current rate of resent PUBREL messages (OoS = 2)

com.hivemq.messages.retained.current

Gauge

The current amount of retained messages

com.hivemq.messages.retained.mean

Histogram

Metrics about the mean payload-size of retained messages in bytes

com.hivemq.messages.retained.rate

Meter

The current rate of newly retained messages

com.hivemq.networking.bytes.read.current

Gauge

The current (last 5 seconds) amount of read bytes

com.hivemq.networking.bytes.read.total

Gauge

The total amount of read bytes

com.hivemq.networking.bytes.write.current

Gauge

The current (last 5 seconds) amount of written bytes

com.hivemq.networking.bytes.write.total

Gauge

Total amount of written bytes

com.hivemq.networking.connections.current

Gauge

The current total number of active MQTT connections

com.hivemq.networking.connections.mean

Histogram

The mean total number of active MQTT connections

com.hivemq.networking.connections-closed.graceful.count

Counter

Counts clients which disconnected after sending a DISCONNECT Message

com.hivemq.networking.connections-closed.ungraceful.count

Counter

Counts clients which disconnected without sending a DISCONNECT Message

com.hivemq.networking.connections-closed.total.count

Counter

Counts all clients which disconnected from HiveMQ (= graceful + ungraceful)

com.hivemq.payload-persistence.cleanup-executor.completed

Meter

Measure the rate of completed tasks submitted to the scheduler in charge of the cleanup of the persistence payload

com.hivemq.payload-persistence.cleanup-executor.duration

Timer

Captures metrics about the job durations for jobs submitted to the scheduler in charge of the cleanup of the persistence payload

com.hivemq.payload-persistence.cleanup-executor.running

Counter

Counts tasks that are currently running in the scheduler in charge of the cleanup of the persistence payload

com.hivemq.payload-persistence.cleanup-executor.scheduled.once

Meter

Measures about the tasks that have been scheduled to run only once in the scheduler in charge of the cleanup of the persistence payload

com.hivemq.payload-persistence.cleanup-executor.scheduled.overrun

Counter

Counts the periodic tasks which ran longer then their time frame allowed in the scheduler in charge of the cleanup of the persistence payload

com.hivemq.payload-persistence.cleanup-executor.scheduled.percent-of-period

Histogram

Metrics about how much percent of their allowed time frame periodic tasks used while running the cleanup of the persistence payload

com.hivemq.payload-persistence.cleanup-executor.scheduled.repetitively

Meter

Measures about the tasks that have been scheduled to run repetitively in the scheduler in charge of the cleanup of the persistence payload

com.hivemq.payload-persistence.cleanup-executor.submitted

Meter

Measures about the tasks that have been submitted to the scheduler in charge of the cleanup of the persistence payload

com.hivemq.persistence-executor.completed

Meter

Measure the rate of completed tasks submitted to the persistence executor

com.hivemq.persistence-executor.duration

Timer

Captures metrics about the job durations for jobs submitted to the persistence executor

com.hivemq.persistence-executor.running

Counter

Counts tasks that are currently running in the persistence executor

com.hivemq.persistence-executor.submitted

Meter

Measures about the tasks that have been submitted to the scheduler responsible for persistence

com.hivemq.persistence-scheduled-executor.completed

Meter

Measure the rate of completed tasks submitted to the scheduler responsible for persistence

com.hivemq.persistence-scheduled-executor.duration

Timer

Captures metrics about the job durations for jobs submitted to the scheduler responsible for persistence

com.hivemq.persistence-scheduled-executor.running

Counter

Counts tasks that are currently running in the scheduler responsible for persistence

com.hivemq.persistence-scheduled-executor.scheduled.once

Meter

Measures about the tasks that have been scheduled to run once in the scheduler responsible for persistence

com.hivemq.persistence-scheduled-executor.scheduled.overrun

Counter

Counts the periodic tasks which ran longer then their time frame allowed in the scheduler responsible for persistence

com.hivemq.persistence-scheduled-executor.scheduled.percent-of-period

Histogram

Metrics about how much percent of their allowed time frame periodic tasks used in the scheduler responsible for persistence

com.hivemq.persistence-scheduled-executor.scheduled.repetitively

Meter

Measures about the tasks that have been scheduled to run repetitively in the scheduler responsible for persistence

com.hivemq.persistence-scheduled-executor.submitted

Meter

Measures about the tasks that have been submitted to the scheduler responsible for persistence

com.hivemq.persistence.executor.client-session.tasks

Gauge

Current amount of disk I/O tasks that are enqueued by the client session persistence

com.hivemq.persistence.executor.client-session.time

Timer

Measures the mean execution time (in nanoseconds) of client session disk I/O tasks

com.hivemq.persistence.executor.noempty-queues

Gauge

Current amount of single writer task queues that are not empty

com.hivemq.persistence.executor.outgoing-message-flow.tasks

Gauge

Current amount of disk I/O tasks that are enqueued by the outgoing message flow persistence

com.hivemq.persistence.executor.outgoing-message-flow.time

Timer

Measures the mean execution time (in nanoseconds) of outgoing message flow disk I/O tasks

com.hivemq.persistence.executor.queue-misses

Counter

Current count of loops that all single writer threads have done without executing a task

com.hivemq.persistence.executor.queued-messages.tasks

Gauge

Current amount of disk I/O tasks that are enqueued by the queued messages persistence

com.hivemq.persistence.executor.queued-messages.time

Timer

Measures the mean execution time (in nanoseconds) of queued messages disk I/O tasks

com.hivemq.persistence.executor.request-event-bus.tasks

Gauge

Current amount of tasks that are enqueued by the request event bus

com.hivemq.persistence.executor.request-event-bus.time

Timer

Measures the mean execution time (in nanoseconds) of request event bus tasks

com.hivemq.persistence.executor.retained-messages.tasks

Gauge

Current amount of disk I/O tasks that are enqueued by the retained message persistence

com.hivemq.persistence.executor.retained-messages.time

Timer

Measures the mean execution time (in nanoseconds) of retained message disk I/O tasks

com.hivemq.persistence.executor.running.threads

Gauge

Current amount of threads that are executing disk I/O tasks

com.hivemq.persistence.executor.subscription.tasks

Gauge

Current amount of disk I/O tasks that are enqueued by the subscription persistence

com.hivemq.persistence.executor.subscription.time

Timer

Measures the mean execution time (in nanoseconds) of subscription disk I/O tasks

com.hivemq.persistence.executor.total.tasks

Gauge

Current amount of disk I/O tasks that are enqueued by all persistence executors

com.hivemq.persistence.payload-entries.count

Gauge

Holds the current amount of payloads stored in the payload persistence

com.hivemq.persistence.removable-entries.count

Gauge

Holds the current amount of payloads stored in the payload persistence, that can be removed by the cleanup

com.hivemq.sessions.overall.current

Gauge

Measures the current count of stored sessions. These sessions include all sessions, including online and offline clients

com.hivemq.sessions.persistent.active

Counter

Measures the current count of active persistent sessions (= Online MQTT clients which are connected with cleanSession=false).

com.hivemq.single-writer-executor.completed

Meter

Measure the rate of completed tasks submitted to the single-writer executor

com.hivemq.single-writer-executor.duration

Timer

Measure the rate of completed tasks submitted to the scheduler responsible for single-writer

com.hivemq.single-writer-executor.running

Counter

Counts tasks that are currently running in the scheduler responsible for single-writer

com.hivemq.single-writer-executor.submitted

Meter

Measures about the tasks that have been submitted to the scheduler responsible for single-writer

com.hivemq.subscriptions.overall.current

Counter

Measures the current count of subscriptions on the broker

com.hivemq.extension.managed-executor.submitted

Meter

Measures the current rate of submitted jobs to the ManagedExtensionExecutor

com.hivemq.extension.managed-executor.running

Counter

Measures the current count of running jobs in the ManagedExtensionExecutor

com.hivemq.extension.managed-executor.completed

Meter

Measures the current rate of completed jobs in the ManagedExtensionExecutor

com.hivemq.extension.managed-executor.duration

Timer

Measures the duration of time spent on submitted jobs to the ManagedExtensionExecutor

com.hivemq.extension.managed-executor.scheduled.once

Meter

Measures the current rate of scheduled jobs in the ManagedExtensionExecutor that run once

com.hivemq.extension.managed-executor.scheduled.repetitively

Meter

Measures the current rate of scheduled jobs in the ManagedExtensionExecutor that run repetitively

com.hivemq.extension.managed-executor.scheduled.overrun

Counter

Measures the current count of jobs in the ManagedExtensionExecutor that are overrun

com.hivemq.extension.managed-executor.scheduled.percent-of-period

Histogram

Measures how many percent of the scheduled period the ManagedExtensionExecutorService jobs lasted

com.hivemq.extension.services.rate-limit-exceeded.count

Counter

Counts the amount of times that the extension service rate limit was exceeded.

com.hivemq.extension.services.publish-service-publishes

Counter

Counts the amount of publish messages sent by the publish service.

com.hivemq.extension.services.publish-service-publishes-to-client

Counter

Counts the amount of publish messages sent by the publish service to a specific client.

com.hivemq.qos-0-memory.used

Gauge

Holds the current amount of bytes QoS 0 messages use in memory

com.hivemq.qos-0-memory.max

Gauge

Holds the maximum amount of bytes QoS 0 messages may use in memory

com.hivemq.cpu-cores.used

Gauge

Holds the current amount of cpu cores used

com.hivemq.cpu-cores.licensed

Gauge

Holds the maximum amount of cpu cores allowed by license

com.hivemq.publish.without-matching-subscribers

Counter

Counts the amount of publish messages received, without any matching subscribers

com.hivemq.topic-alias.memory.usage

Gauge

Holds the current amount of bytes topic aliases use in memory

com.hivemq.topic-alias.count.total

Gauge

Holds the current amount of topic aliases

com.hivemq.overload-protection.level

Gauge

Holds the current level of overload protection

com.hivemq.overload-protection.credits.per-tick

Gauge

Holds the current amount of credits a client receives per tick

com.hivemq.overload-protection.clients.average-credits

Gauge

Holds the average amount of available credits between all clients

com.hivemq.overload-protection.clients.using-credits

Gauge

Holds the current amount of clients having less than the full amount of credits

com.hivemq.overload-protection.clients.backpressure-active

Gauge

Holds the current amount of clients for which backpressure is applied by overload protection

Table 3. System and operating system metrics
Metric Type Description

com.hivemq.system.max-file-descriptor

Gauge

Maximum allowed amount of file descriptors as seen by the JVM

com.hivemq.system.open-file-descriptor

Gauge

Amount of open file descriptors as seen by the JVM

com.hivemq.system.physical-memory.free

Gauge

Current amount of free physical memory in bytes

com.hivemq.system.physical-memory.total

Gauge

Total amount of physical memory (bytes) available

com.hivemq.system.process-cpu.load

Gauge

Current CPU usage for the JVM process (0.0 idle – 1.0 full CPU usage)

com.hivemq.system.process-cpu.time

Gauge

Total amount of CPU time the JVM process has used to this point(in nanoseconds)

com.hivemq.system.swap-space.free

Gauge

Current amount of free swap space in bytes

com.hivemq.system.swap-space.total

Gauge

Total amount of swap space available in bytes

com.hivemq.system.system-cpu.load

Gauge

Current CPU usage for the whole system (0.0 idle – 1.0 full CPU usage)

com.hivemq.system.os.global.uptime

Gauge

OS Uptime in seconds

com.hivemq.system.os.global.memory.total

Gauge

The amount of actual physical memory, in bytes

com.hivemq.system.os.global.memory.available

Gauge

The amount of physical memory currently available, in bytes

com.hivemq.system.os.global.memory.swap.used

Gauge

The current memory committed to the paging/swap file(s), in bytes

com.hivemq.system.os.global.memory.swap.total

Gauge

The current size of the paging/swap file(s), in bytes

com.hivemq.system.os.file-descriptors.open

Gauge

Amount of currently open file descriptors

com.hivemq.system.os.file-descriptors.max

Gauge

Maximum allowed amount of file descriptors

com.hivemq.system.os.global.cpu.<cpu-name>.usage.idle

Gauge

Percentage of time that the CPU or CPUs were idle and the system did not have an outstanding disk I/O request

com.hivemq.system.os.global.cpu.<cpu-name>.usage.iowait

Gauge

Percentage of time that the CPU or CPUs were idle during which the system had an outstanding disk I/O request

com.hivemq.system.os.global.cpu.<cpu-name>.usage.irq

Gauge

Percentage of time that the CPU used to service hardware IRQs

com.hivemq.system.os.global.cpu.<cpu-name>.usage.nice

Gauge

Percentage of CPU utilization that occurred while executing at the user level with nice priority

com.hivemq.system.os.global.cpu.<cpu-name>.usage.softirq

Gauge

Percentage of time that the CPU used to service soft IRQs

com.hivemq.system.os.global.cpu.<cpu-name>.usage.steal

Gauge

Percentage of time which the hypervisor dedicated for other guests in the system.

com.hivemq.system.os.global.cpu.<cpu-name>.usage.sys

Gauge

Percentage of CPU utilization that occurred while executing at the system level (kernel)

com.hivemq.system.os.global.cpu.<cpu-name>.usage.user

Gauge

Percentage of CPU utilization that occurred while executing at the user level (application)

com.hivemq.system.os.global.cpu.<cpu-name>.total

Gauge

Percentage of total CPU utilization for convenience (not idle, calculated as sum of usage values)

com.hivemq.system.os.process.threads.count

Gauge

Number of threads of the HiveMQ process as seen by the OS

com.hivemq.system.os.process.time-spent.user

Gauge

Amount of milliseconds the the HiveMQ process has executed in user mode as seen by the OS

com.hivemq.system.os.process.time-spent.kernel

Gauge

Amount of milliseconds the HiveMQ process has executed in kernel/system mode as seen by the OS

com.hivemq.system.os.process.memory.virtual

Gauge

Virtual Memory Size (VSZ) in bytes. It includes all memory that the HiveMQ process can access, including memory that is swapped out and memory that is from shared libraries

com.hivemq.system.os.process.memory.resident-set-size

Gauge

Resident Set Size (RSS) in bytes. It is used to show how much memory is allocated to the HiveMQ process and is in RAM. It does not include memory that is swapped out. It does include memory from shared libraries as long as the pages from those libraries are actually in memory. It does include all stack and heap memory

com.hivemq.system.os.process.disk.bytes-written

Gauge

Number of bytes the HiveMQ process has written to disk

com.hivemq.system.os.process.disk.bytes-read

Gauge

Number of bytes the HiveMQ process has read from disk

com.hivemq.system.os.network-interface.<if-name>.bytes-received

Gauge

Bytes received by the network interface <if-name>

com.hivemq.system.os.network-interface.<if-name>.bytes-sent

Gauge

Bytes sent by the network interface <if-name>

com.hivemq.system.os.network-interface.<if-name>.packets-sent

Gauge

Packets sent by the network interface <if-name>

com.hivemq.system.os.network-interface.<if-name>.packets-received

Gauge

Packets received by the network interface <if-name>

com.hivemq.system.os.network-interface.<if-name>.in-errors

Gauge

Input errors for the network interface <if-name>

com.hivemq.system.os.network-interface.<if-name>.out-errors

Gauge

Output errors for the network interface <if-name>

com.hivemq.system.os.disks.<disk-name>.size

Gauge

Total size of disk with name <disk-name> in bytes

com.hivemq.system.os.disks.<disk-name>.read.count

Gauge

Amount of read operations for disk with name <disk-name>

com.hivemq.system.os.disks.<disk-name>.write.count

Gauge

Amount of read operations for disk with name <disk-name>

com.hivemq.system.os.disks.<disk-name>.read.bytes

Gauge

Amount of bytes read from disk with name <disk-name>

com.hivemq.system.os.disks.<disk-name>.write.bytes

Gauge

Amount of bytes written from disk with name <disk-name>

The following table (Table 4) lists metrics that are only available for monitoring if the HiveMQ server instance is part of a cluster.

Table 4. Additional metric in cluster environment
Metric Type Description

com.hivemq.cluster.sent.*

Meter

Provides measures for every class that made once a SEND request (every class get its own metric)