ibm-messaging / mq-metric-samples

IBM® MQ metric gathering client samples
Apache License 2.0
58 stars 70 forks source link

[Question] Permissions needed and behaviour of exporter #271

Open paologallinaharbur opened 11 months ago

paologallinaharbur commented 11 months ago

Hello, first of all, thanks for building and maintaining this exporter! I have some questions regarding the Prometheus exporter permissions and, in general, how this component works.

Thanks again for the help 😄

ibmmqmet commented 11 months ago

There's no specific document.

145 has detailed information from a z/OS perspective; on a different platform the settings are controlled differently. And the command queue has a different name. Mostly it's going to just require "DISPLAY" authority for the various object types. See https://www.ibm.com/docs/en/ibm-mq/9.3?topic=windows-authorizations-pcf-commands for more about authorisations.

Dynamic queues have no direct relationship to non-durable publications.

If you are not authorised to do something, then the queue manager will generate appropriate reports (error logs/events) so you can fix up the permissions.

paologallinaharbur commented 11 months ago

https://github.com/ibm-messaging/mq-metric-samples/pull/145 has detailed information from a z/OS perspective; on a different platform the settings are controlled differently. And the command queue has a different name. [...]

Have you linked the right issue? I only see a dependabot PR listing unrelated changes, unless I am missing something

Ok, to wrap up the answer is that it depends, but:

Screenshot 2023-12-11 at 13 16 31

Thanks again for your time and help!