RabbitMQPoolEx.Telemetry.Metrics.PoolSize (RabbitMQ Pool Ex v1.2.0)

View Source

Telemetry metrics for monitoring the pool size of RabbitMQ connections.

This module defines telemetry metrics related to the size of the connection pool in RabbitMQPoolEx. It provides a metric for tracking the last known pool size and emits telemetry events when the pool size changes.

Summary

Functions

Returns a list of telemetry metrics for monitoring the RabbitMQ connection pool size.

Functions

metrics()

@spec metrics() :: [Telemetry.Metrics.t()]

Returns a list of telemetry metrics for monitoring the RabbitMQ connection pool size.

This function defines the following metric:

  • rabbitmq_pool_ex.metrics.pool_size.count: Tracks the latest pool size value.

Metadata

The event includes the following metadata as tags:

  • :pool_id - The identifier of the connection pool.
  • :channels_count - The number of active channels in the connection.
  • :reuse_channels - Whether channels are being reused.