How to retrieve connection pool metrics from JmsPoolConnectionFactory?

Solution Verified - Updated -

Issue

  • How to retrieve connection pool metrics from JmsPoolConnectionFactory?
  • Tried to expose the runtime metrics from the connection pool as micrometer gauges, and consumed by Prometheus for operational purposes.The max. connections and the number of connections from the JmsPoolConnectionFactory object at runtime
  • maxConnections and 'NumConnections` properties in the factory objects not getting updated even when the JMS client is busy consuming/producing messages against the AMQ broker

Environment

  • Red Hat AMQ
    • 7.10.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content