From 9b4ac955670eea4712408c2355a039a0a68840e3 Mon Sep 17 00:00:00 2001 From: Calle Pettersson Date: Sat, 3 Sep 2016 16:55:46 +0200 Subject: [PATCH] Updated Prometheus and WMI CounterTypes (markdown) --- Prometheus-and-WMI-CounterTypes.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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