Back to the list of connectors[1]

Windows - Services (WMI)

Description

Gives OS specific service information and metrics

Target

Typical platform: Any platform with Windows

Operating system: Microsoft Windows

Prerequisites

Leverages: WMI

Technology and protocols: WMI/WinRM

Examples

CLI

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

metricshub.yaml

resourceGroups:
  <RESOURCE_GROUP>:
    resources:
      <HOSTNAME-ID>:
        attributes:
          host.name: <HOSTNAME> # Change with actual host name
          host.type: win
        selectConnectors: [ WindowsService ] # 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 - Services (WMI) connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:

  • The WMI query below to the managed host succeeds:
    • Namespace: root\CIMv2
    • WQL Query: SELECT * FROM Win32_OperatingSystem

Metrics

Type Collected Metrics Specific Attributes
service
  • system.service.status{state="Continue Pending|Pause Pending|Paused|Running|Start Pending|Stop Pending|Stopped|Unknown"}
  • id
  • system.service.command
  • system.service.name
  • system.service.start
  • system.service.username
No results.