As per documentation, the metric "Status:Connection Count" shows the current number of connections to the Queue Manager.
https://docops.ca.com/ca-apm/10-5/en/implementing-agents/ibm-websphere-mq/metrics-reference/
Connection Count (not available on z/OS) | Mapped Value | M | Current number of connections to the Queue Manager. |
However, it is not clear what type of connections are considered (client connections, binding connections, both)
Release : Any
Component : APM Agents
The metric "Status:Connection Count" considers the total number of active connections of all the applications connected to the corresponding queue manager.
Internally, the MQMonitor uses the MQSC command DISPLAY CONN to retrieve the connection information and count the number of entries in the returning set, i.e. the number of connections.
For example, for an application with a process id of 1234 running against the queue manager named QM1, the command executed internally would be:
'dis conn(*) PID ' | runmqsc QM1| grep 1234| wc -l