Updated Prometheus and WMI CounterTypes (markdown)

Calle Pettersson
2016-09-03 16:55:46 +02:00
parent acbf73e72e
commit 9b4ac95567

@@ -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
```