25 Feb 2022 03:17 AM - last edited on 17 May 2023 11:28 AM by Michal_Gebacki
25 Feb 2022 09:34 AM
Looking around a bit I'm not sure you can get that from a single WMI query. I think the closest you'll get is to query each queue manager and show it in a dashboard.
25 Feb 2022 11:02 AM
I don't think so as WMI schema doesn't seem to support anything that's would allow one to do so. Currently, I have to write a powershell script which schedule to run every minute which POST data into metric ingest api.
wmi:
- group: WMIClasses
featureSet: basic
interval: 1m
wmiNamespace: root\cimv2
query: Select * From Win32_PerfRawData_MSMQ_MSMQQueue
dimensions:
- key: aero.sita.ext.msmq.queue.name
value: column:Name
metrics:
- key: MessagesinQueue
value: column:MessagesinQueue
type: gauge