Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listener metrics available? #183

Closed
MrStefanGit opened this issue Nov 22, 2022 · 3 comments
Closed

Listener metrics available? #183

MrStefanGit opened this issue Nov 22, 2022 · 3 comments

Comments

@MrStefanGit
Copy link

Hi, I have deployed this MQ monitor inside a Docker container, in order to collect the metrics of a remote Windows deployment of IBM MQ in Prometheus. The goal is to create a method of monitoring the MQ inside Grafana. The problem I have is the lack of information about the metrics exported by this monitor.

The metrics i want to visualize are (The first name is as shown in the admin interface and the second from the metrics in Prometheus):
- Overall channel status = ibmmq_channel_status_squash (OR) ibmmq_channel_status
- Listener status
- Queue Open input count = ibmmq_queue_input_handles
- Queue Open output count = ibmmq_queue_output_handles
- Current queue depth = ibmmq_queue_depth

I fount the corresponding metrics for Queue Open input count, Queue Open output count, Current queue depth by comparing the values in the admin interface with those in the metrics. I also found the channel status for every connection in the channel, but i can't find any metric for the listener status. Is it possible to view the listener status using this MQ monitor? Is there a documentation for all the metrics that this MQ monitor is capable of exporting?

@ibmmqmet
Copy link
Collaborator

There is no single list of all the metrics available here.

https://www.ibm.com/docs/en/ibm-mq/9.3?topic=trace-metrics-published-system-topics is the best list of the metrics that the qmgr can publish. This package does not subscribe to the STATAPP topics, but it can get the rest.

The metrics that are processed from various DISPLAY xxSTATUS queries can be seen in the source code in the mqmetric package for each object type.

There's nothing here for listeners as they don't really have any metrics associated with them. And only active listeners started through the qmgr have any status at all so you don't even get a response showing stopped listeners. Stopped listeners, or those running outside the qmgr control (eg explicitly started from the command line) have no status available.

I could imagine adding a qmgr-level metric that is a count of the number of active listeners started from the qmgr, but that's about all. I don't think I'd want to add a whole new object class for listeners and deal with those inactive definitions. It wouldn't be impossible, but it's probably more effort than the value.

ibmmqmet added a commit to ibm-messaging/mq-golang that referenced this issue Jan 10, 2023
- mqmetric - New metric qmgr_active_listeners (ibm-messaging/mq-metric-samples#183)
- mqmetric - Add qmgr description as tag (ibm-messaging/mq-metric-samples#184)
- mqmetric - Add metrics.txt
@ibmmqmet
Copy link
Collaborator

V5.3.3 includes the qmgr_active_listeners counter

@MrStefanGit
Copy link
Author

Thank you for your support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants