MCPcopy
hub / github.com/prometheus-community/windows_exporter

github.com/prometheus-community/windows_exporter @v0.31.7 sqlite

repository ↗ · DeepWiki ↗ · release v0.31.7 ↗
1,306 symbols 3,696 edges 279 files 277 documented · 21%
README

windows_exporter

CI Linting GitHub license Current Release GitHub Repo stars GitHub all releases Go Report Card

A Prometheus exporter for Windows machines.

Collectors

Name Description Enabled by default
ad Active Directory Domain Services
adcs Active Directory Certificate Services
adfs Active Directory Federation Services
cache Cache metrics
cpu CPU usage
cpu_info CPU Information
container Container metrics
diskdrive Diskdrive metrics
dfsr DFSR metrics
dhcp DHCP Server
dns DNS Server
exchange Exchange metrics
filetime FileTime metrics
fsrmquota Microsoft File Server Resource Manager (FSRM) Quotas collector
gpu GPU metrics
hyperv Hyper-V hosts
iis IIS sites and applications
license Windows license status
logical_disk Logical disks, disk I/O
memory Memory usage metrics
mscluster MSCluster metrics
msmq MSMQ queues
mssql SQL Server Performance Objects metrics
netframework .NET Framework metrics
net Network interface I/O
os OS metrics (memory, processes, users)
pagefile pagefile metrics
performancecounter Custom performance counter metrics
physical_disk physical disk metrics
printer Printer metrics
process Per-process metrics
remote_fx RemoteFX protocol (RDP) metrics
scheduled_task Scheduled Tasks metrics
service Service state metrics
smb SMB Server
smbclient SMB Client
smtp IIS SMTP Server
system System calls
tcp TCP connections
terminal_services Terminal services (RDS)
textfile Read prometheus metrics from a text file
thermalzone Thermal information
time Windows Time Service
udp UDP connections
update Windows Update Service
vmware Performance counters installed by the Vmware Guest agent

See the linked documentation on each collector for more information on reported metrics, configuration settings and usage examples.

Filtering enabled collectors

The windows_exporter will expose all metrics from enabled collectors by default. This is the recommended way to collect metrics to avoid errors when comparing metrics of different families.

For advanced use the windows_exporter can be passed an optional list of collectors to filter metrics. The collect[] parameter may be used multiple times. In Prometheus configuration you can use this syntax under the scrape config.

  params:
    collect[]:
      - foo
      - bar

This can be useful for having different Prometheus servers collect specific metrics from nodes.

Flags

windows_exporter accepts flags to configure certain behaviours. The ones configuring the global behaviour of the exporter are listed below, while collector-specific ones are documen

Extension points exported contracts — how you extend this code

Collector (Interface)
Collector interface that a collector has to implement. [47 implementers]
pkg/collector/types.go
Collector (Interface)
(no doc) [47 implementers]
internal/pdh/types/types.go
BuilderWithFlags (FuncType)
(no doc)
pkg/collector/types.go

Core symbols most depended-on inside this repo

Pointer
called by 198
internal/headers/win32/types.go
Is
called by 115
internal/pdh/error.go
Collect
called by 91
internal/pdh/types/types.go
Close
called by 86
internal/pdh/types/types.go
String
called by 61
internal/collector/mssql/types.go
NewBuilderWithFlags
called by 47
pkg/collector/map.go
FuncBenchmarkCollector
called by 46
internal/utils/testutils/testutils.go
Query
called by 32
internal/mi/session.go

Shape

Method 510
Struct 383
Function 377
TypeAlias 31
Interface 4
FuncType 1

Languages

Go100%

Modules by API surface

internal/pdh/pdh.go18 symbols
internal/collector/scheduled_task/scheduled_task.go18 symbols
internal/collector/container/container.go18 symbols
internal/collector/textfile/textfile.go16 symbols
internal/collector/gpu/gpu.go15 symbols
internal/mi/types.go14 symbols
internal/collector/printer/printer.go14 symbols
internal/headers/dhcpsapi/types.go13 symbols
internal/collector/update/update.go13 symbols
internal/collector/terminal_services/terminal_services.go13 symbols
internal/collector/service/service.go13 symbols
internal/collector/logical_disk/logical_disk.go13 symbols

Dependencies from manifests, versioned

github.com/alecthomas/unitsv0.0.0-2024092700094 · 1×
github.com/beorn7/perksv1.0.1 · 1×
github.com/bmatcuk/doublestar/v4v4.10.0 · 1×
github.com/cespare/xxhash/v2v2.3.0 · 1×
github.com/dimchansky/utfbomv1.1.1 · 1×
github.com/go-ole/go-olev1.3.0 · 1×
github.com/jpillora/backoffv1.0.0 · 1×

For agents

$ claude mcp add windows_exporter \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact