diff --git a/Prometheus-and-WMI-CounterTypes.md b/Prometheus-and-WMI-CounterTypes.md index 868f5e6..c0fcee3 100644 --- a/Prometheus-and-WMI-CounterTypes.md +++ b/Prometheus-and-WMI-CounterTypes.md @@ -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()`. \ No newline at end of file +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 +``` \ No newline at end of file