cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 7

IBM MQ (message queuing) Monitoring

Greetings,

I've been asked to see if there is a way to collect metrics from IBM MQ. I haven't been able to find any out of the box, or community generated templates, so I'm seeking some input. I found other posts discussing this topic, but wasn't able to apply their suggestions. I'm also trying to avoid having to purchase any other applications (i.e. Queuemetrix) if possible.

The specific data that I've been requested to collect is:

  • Queue depths
  • Active Channel connections count
  • Un-commited messages

If anyone has any suggestions to get me started I would greatly appreciate it!

Thank you in advance,

Ryan

Labels (1)
Tags (1)
0 Kudos
2 Replies
Product Manager
Product Manager

angrymelon  wrote:

Greetings,

I've been asked to see if there is a way to collect metrics from IBM MQ. I haven't been able to find any out of the box, or community generated templates, so I'm seeking some input. I found other posts discussing this topic, but wasn't able to apply their suggestions. I'm also trying to avoid having to purchase any other applications (i.e. Queuemetrix) if possible.

The specific data that I've been requested to collect is:

  • Queue depths
  • Active Channel connections count
  • Un-commited messages

If anyone has any suggestions to get me started I would greatly appreciate it!

Thank you in advance,

Ryan

Ryan, taking a look at QueueMetrix - it looks like they're utilizing a set of data including JMX MBeans, Http REST and Log files. Using component monitors such as our JMX Component monitor -> JMX monitor  You quite possibly can customize your application template to do this without incurring an additional monitoring cost. I'd recommend perhaps taking a look at how we've set up the Websphere template as a starter IBM WebSphere (JMX)

I'd also recommend that you open a feature request for me here Server & Application Monitor Feature Requests  with more details on what all you'd like to see, what versions you'd like us to support etc, and any details on how you'd like the data to be surfaced. Internal tracking ticket for my notes: SAM-10675

Level 8

I'm also trying to monitor and alert on queue depth levels.  We recently upgraded IBM MQ's to v 9.1.4.0, and they support Rest API calls.

I was able to setup https monitors to alert on Channel Status and QueueManager Status:

 

channel status

https://xxxxx:xxxxx@domain:9443/ibmmq/rest/v1/admin/qmgr/QM1/channel/channelname?status=currentStatu...

Alert if search string = stopped

 

Queue manager status

https://xxxxx:xxxxx@domain:9443/ibmmq/rest/v1/admin/qmgr/queuemanagername

Alert if search string doesn’t = running

 

I found the following API call that displays current queue depth:

https://xxxxx:xxxxx@domain:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue/queuename?status*

I just can't figure out the alert logic within the https monitor to alert if queue depth is > 5.  Does anyone have any solution for this?

I can just set alert if search string doesn't = "currentDepth": 0 (meaning alert if queue is above 0).  However that could generate some noise as some queues take time to process.

 

0 Kudos