Back to the list of connectors[1]

Windows Storage Spaces (WMI)

Description

This connector enables the monitoring of physical disks through the Windows Storage Management's WMI provider. It supports all disk types, including disks on NVMe bus and NVDIMM. When available, temperature sensors are also discovered and monitored.

This connector supersedes:

Target

Typical platform: Any system

Operating system: Microsoft Windows

Prerequisites

Leverages: Windows Storage Spaces

Technology and protocols: WMI/WinRM

Examples

CLI

metricshub HOSTNAME -t win -c +WinStorageSpaces --wmi -u USER

metricshub.yaml

resourceGroups:
  <RESOURCE_GROUP>:
    resources:
      <HOSTNAME-ID>:
        attributes:
          host.name: <HOSTNAME> # Change with actual host name
          host.type: win
        selectConnectors: [ WinStorageSpaces ] # Optional, to load only this connector
        protocols:
          wmi:
            username: <USERNAME> # Change with actual credentials
            password: <PASSWORD> # Encrypted using metricshub-encrypt

Connector Activation Criteria

The Windows Storage Spaces (WMI) connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:

  • Operating System is Microsoft Windows
  • The WMI query below to the managed host succeeds:
    • Namespace: root\Microsoft\Windows\Storage
    • WQL Query: SELECT ObjectId FROM MSFT_Volume

Metrics

Type Collected Metrics Specific Attributes
disk_controller
  • hw.status{hw.type="disk_controller", state="present"}
  • hw.parent.type
  • id
  • model
  • name
logical_disk
  • hw.logical_disk.limit
  • hw.logical_disk.usage{state="free"}
  • hw.logical_disk.usage{state="used"}
  • hw.status{hw.type="logical_disk", state="degraded|failed|ok"}
  • hw.status{hw.type="logical_disk", state="present"}
  • hw.parent.type
  • id
  • info
  • name
  • type
physical_disk
  • hw.errors{hw.type="physical_disk"}
  • hw.physical_disk.endurance_utilization{state="remaining"}
  • hw.physical_disk.size
  • hw.status{hw.type="physical_disk", state="degraded|failed|ok"}
  • hw.status{hw.type="physical_disk", state="predicted_failure"}
  • hw.status{hw.type="physical_disk", state="present"}
  • firmware_version
  • hw.parent.id
  • hw.parent.type
  • id
  • name
  • serial_number
  • vendor
temperature
  • hw.status{hw.type="temperature", state="present"}
  • hw.temperature
  • hw.temperature.limit{limit_type="high.critical"}
  • hw.temperature.limit{limit_type="high.degraded"}
  • hw.parent.type
  • id
  • name
  • sensor_location
No results.