{"id":37096524,"url":"https://github.com/bbigras/wmi_exporter","last_synced_at":"2026-01-14T11:52:50.662Z","repository":{"id":57604178,"uuid":"143662182","full_name":"bbigras/wmi_exporter","owner":"bbigras","description":"Prometheus exporter for Windows machines using WMI","archived":false,"fork":true,"pushed_at":"2018-08-06T12:43:15.000Z","size":1648,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T03:39:50.935Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"prometheus-community/windows_exporter","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbigras.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-06T01:39:07.000Z","updated_at":"2021-03-12T09:34:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bbigras/wmi_exporter","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/bbigras/wmi_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbigras%2Fwmi_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbigras%2Fwmi_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbigras%2Fwmi_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbigras%2Fwmi_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbigras","download_url":"https://codeload.github.com/bbigras/wmi_exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbigras%2Fwmi_exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T11:52:50.178Z","updated_at":"2026-01-14T11:52:50.658Z","avatar_url":"https://github.com/bbigras.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WMI exporter\n\n[![Build status](https://ci.appveyor.com/api/projects/status/ljwan71as6pf2joe?svg=true)](https://ci.appveyor.com/project/martinlindhe/wmi-exporter)\n\nPrometheus exporter for Windows machines, using the WMI (Windows Management Instrumentation).\n\n\n## Collectors\n\nName     | Description | Enabled by default\n---------|-------------|--------------------\nad | [Win32_PerfRawData_DirectoryServices_DirectoryServices](https://msdn.microsoft.com/en-us/library/ms803980.aspx) Active Directory |\ncpu | [Win32_PerfRawData_PerfOS_Processor](https://msdn.microsoft.com/en-us/library/aa394317(v=vs.90).aspx) metrics (cpu usage) | \u0026#10003;\ncs | [Win32_ComputerSystem](https://msdn.microsoft.com/en-us/library/aa394102) metrics (system properties, num cpus/total memory) | \u0026#10003;\ndns | [Win32_PerfRawData_DNS_DNS](https://technet.microsoft.com/en-us/library/cc977686.aspx) metrics (DNS Server) |\nhyperv | Performance counters for Hyper-V hosts |\niis | [Win32_PerfRawData_W3SVC_WebService](https://msdn.microsoft.com/en-us/library/aa394345) IIS metrics |\nlogical_disk | [Win32_PerfRawData_PerfDisk_LogicalDisk](https://msdn.microsoft.com/en-us/windows/hardware/aa394307(v=vs.71)) metrics (disk I/O) | \u0026#10003;\nnet | [Win32_PerfRawData_Tcpip_NetworkInterface](https://technet.microsoft.com/en-us/security/aa394340(v=vs.80)) metrics (network interface I/O) | \u0026#10003;\nmsmq | [Win32_PerfRawData_MSMQ_MSMQQueue](http://wutils.com/wmi/root/cimv2/win32_perfrawdata_msmq_msmqqueue/) metrics (MSMQ/journal count) |\nmssql | various [SQL Server Performance Objects](https://docs.microsoft.com/en-us/sql/relational-databases/performance-monitor/use-sql-server-objects#SQLServerPOs) metrics  |\nos | [Win32_OperatingSystem](https://msdn.microsoft.com/en-us/library/aa394239) metrics (memory, processes, users) | \u0026#10003;\nprocess | [Win32_PerfRawData_PerfProc_Process](https://msdn.microsoft.com/en-us/library/aa394323(v=vs.85).aspx) metrics (per-process stats) |\nservice | [Win32_Service](https://msdn.microsoft.com/en-us/library/aa394418(v=vs.85).aspx) metrics (service states) | \u0026#10003;\nsystem | Win32_PerfRawData_PerfOS_System metrics (system calls) | \u0026#10003;\ntcp | [Win32_PerfRawData_Tcpip_TCPv4](https://msdn.microsoft.com/en-us/library/aa394341(v=vs.85).aspx) metrics (tcp connections) |\ntextfile | Read prometheus metrics from a text file | \u0026#10003;\nvmware | Performance counters installed by the Vmware Guest agent |\n\nThe HELP texts shows the WMI data source, please see MSDN documentation for details.\n\n## Installation\nThe latest release can be downloaded from the [releases page](https://github.com/martinlindhe/wmi_exporter/releases).\n\nEach release provides a .msi installer. The installer will setup the WMI Exporter as a Windows service, as well as create an exception in the Windows Firewall.\n\nIf the installer is run without any parameters, the exporter will run with default settings for enabled collectors, ports, etc. The following parameters are available:\n\nName | Description\n-----|------------\n`ENABLED_COLLECTORS` | As the `--collectors.enabled` flag, provide a comma-separated list of enabled collectors\n`LISTEN_ADDR` | The IP address to bind to. Defaults to 0.0.0.0\n`LISTEN_PORT` | The port to bind to. Defaults to 9182.\n`METRICS_PATH` | The path at which to serve metrics. Defaults to `/metrics`\n`TEXTFILE_DIR` | As the `--collector.textfile.directory` flag, provide a directory to read text files with metrics from\n\nParameters are sent to the installer via `msiexec`. Example invocation:\n\n```powershell\nmsiexec /i \u003cpath-to-msi-file\u003e ENABLED_COLLECTORS=os,iis LISTEN_PORT=5000\n```\n\n## Roadmap\n\nSee [open issues](https://github.com/martinlindhe/wmi_exporter/issues)\n\n\n## Usage\n\n    go get -u github.com/golang/dep\n    go get -u github.com/prometheus/promu\n    go get -u github.com/martinlindhe/wmi_exporter\n    cd $env:GOPATH/src/github.com/martinlindhe/wmi_exporter\n    promu build -v .\n    .\\wmi_exporter.exe\n\nThe prometheus metrics will be exposed on [localhost:9182](http://localhost:9182)\n\n## Examples\n\n### Enable only service collector and specify a custom query\n\n    .\\wmi_exporter.exe --collectors.enabled \"service\" --collector.service.services-where \"Name='wmi_exporter'\"\n\n### Enable only process collector and specify a custom query\n\n    .\\wmi_exporter.exe --collectors.enabled \"process\" --collector.process.processes-where \"Name LIKE 'firefox%'\"\n\nWhen there are multiple processes with the same name, WMI represents those after the first instance as `process-name#index`. So to get them all, rather than just the first one, the query needs to be a wildcard search.\n\n## License\n\nUnder [MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbigras%2Fwmi_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbigras%2Fwmi_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbigras%2Fwmi_exporter/lists"}