MetricsHub
MetricsHub Community Connectors 1.0.22
-
Home
- Connector Developer Guide Sources 19
wmi (Source)
When To Use
Use wmi for Windows system/hardware/application monitoring via WMI classes.
This is one of the highest-usage source types in community connectors.
Syntax
sources:
logicalDisks:
type: wmi
namespace: root\CIMv2
query: SELECT DeviceID,FreeSpace,Size FROM Win32_LogicalDisk WHERE DriveType = 3
computes:
- type: duplicateColumn
column: 3
Properties
| Property | Required | Default | Description |
|---|---|---|---|
type |
Yes | None | wmi. |
query |
Yes | None | WMI query string. |
namespace |
No | Provider default | WMI namespace (root\CIMv2, root\Microsoft\Windows\Storage, …). |
executeForEachEntryOf |
No | None | Fan-out query execution context. |
computes |
No | [] |
Post-processing pipeline. |
forceSerialization |
No | false |
Serialize execution via a per-connector, per-host lock (see the Sources overview). Default false. |
Recommended Pattern
- Keep namespaces explicit for readability and compatibility.
- Select stable key columns (
__PATH, IDs) when later joins are required. - Filter and normalize early with computes before mapping.
- Use
tableJoinwithkeyType: Wbemwhen joining path-like keys.
Common Mistakes
- Overusing
SELECT *. - Joining on display names instead of technical identifiers.
- Dropping identity columns too early in the pipeline.
Community Examples
- Windows[1]
- WinStorageSpaces[2]
- LibreHardwareMonitor[3]
- WindowsProcess[4]
wmi source
windows management instrumentation
namespace
metricshub
community
connector
hardware
system
Links:
- [1] https://github.com/metricshub/community-connectors/blob/main/src/main/connector/system/Windows/Windows.yaml
- [2] https://github.com/metricshub/community-connectors/blob/main/src/main/connector/hardware/WinStorageSpaces/WinStorageSpaces.yaml
- [3] https://github.com/metricshub/community-connectors/blob/main/src/main/connector/hardware/LibreHardwareMonitor/LibreHardwareMonitor.yaml
- [4] https://github.com/metricshub/community-connectors/blob/main/src/main/connector/system/WindowsProcess/WindowsProcess.yaml
Search Results for {{siteSearch | truncate:'50'}}
{{resultArray.length}}
Searching...
No results.
