25 Feb 2022
03:17 AM
- last edited on
17 May 2023
11:28 AM
by
Michal_Gebacki
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