mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-19 03:06:37 +00:00
Updated Prometheus and WMI CounterTypes (markdown)
@@ -47,4 +47,11 @@ This applies to WMI classes inheriting `Win32_PerfRawData`.
|
||||
| `PERF_COUNTER_MULTI_BASE` | `counter` | Seems to be a time denominator. Drop. |
|
||||
| `PERF_COUNTER_HISTOGRAM_TYPE` | ?? | No docs. |
|
||||
|
||||
To convert "PerfTime" units to seconds, divide by the result of `QueryPerformanceFrequency()`.
|
||||
To convert "PerfTime" units to seconds, divide by the result of `QueryPerformanceFrequency()`.
|
||||
|
||||
## Finding available counters
|
||||
This Powershell line will output available WMI classes that are of type `Win32_PerfRawData`:
|
||||
```powershell
|
||||
Get-WmiObject -query "SELECT * FROM meta_class WHERE __this ISA 'Win32_PerfRawData'" |
|
||||
Select-Object -ExpandProperty Name
|
||||
```
|
||||
Reference in New Issue
Block a user