Task · MQ-1

Add a QDEPTHHI exporter variant and safe multi-instance updater

Description

The distribution currently builds IBM’s pinned mq_prometheus unchanged (v6.0.0, commit 7bce9b8ef9ef513ff77688f022929843d5ba7eaf). It does not expose the local-queue QDEPTHHI attribute needed for queue-specific monitoring. Produce two clearly identified Prometheus exporter binaries from the same pinned upstream revision: the unchanged upstream-native build and an explicitly patched build that exports QDEPTHHI per local queue. Preserve the existing OTel distribution path.

The Linux installer currently installs one mq_prometheus per instance, normally under /opt/mq-exporter/; one host may run several queue managers on distinct ports and may have instances under an alternate –root. Extend packaging/installation so the intended variant is explicit, then provide a safe update command for all managed instances on a host. Do not include customer names, hosts, queue-policy mappings or credentials in this public repository.

Recreate the disposable AWS IBM MQ lab for end-to-end validation. Compare MQSC DISPLAY QLOCAL(*) QDEPTHHI with each patched exporter’s raw /metrics response and verify the metric survives installation and an upgrade of multiple simultaneous instances. A successful build or /metrics HTTP 200 alone is insufficient. Record the lab setup, tested MQ and OS versions, commands, results and teardown. If prior lab infrastructure is unavailable, reconstruct it and document the reproducible procedure before claiming live validation.

Acceptance Criteria

References

View the source file on GitHub