ibm-messaging / mq-golang

Calling IBM MQ from Go applications
Apache License 2.0
168 stars 60 forks source link

Channel counts #129

Closed salapat11 closed 2 years ago

salapat11 commented 5 years ago

Mark,

Will it be possible to add a metric for channel count for each channel (that counts the channels that are running)? Currently we measure the count using the count query after the samples are collected. But it would be more useful if we can have a metric for that.

Also, a metric for max channel count on a queue manager.

ibmmqmet commented 5 years ago

Prometheus is the best way to count metrics. It can do various groupings automatically. For example,

count by (channel,qmgr) (ibmmq_channel_status)

gives a graph of the number of active channels of each name for each qmgr. So you can see how many SYSTEM.DEF.SVRCONN instances are going.

I could consider adding MaxChannels for z/OS as it is available via MQINQ. But not for Distributed platforms as the corresponding controls are in the qm.ini file, not readily accessible in a program.

salapat11 commented 5 years ago

Mark, thanks for the response. Yes. I am using the same metric but given the number of samples for some queue managers, it is taking a long time to return the query.