From 6e5dd9157fe95abaa3b43614fab427481c1b8699 Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Mon, 29 Aug 2016 18:52:12 +0100 Subject: [PATCH] Add some type information --- Prometheus-and-WMI-CounterTypes.md | 40 +++++++++++++++--------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Prometheus-and-WMI-CounterTypes.md b/Prometheus-and-WMI-CounterTypes.md index 277db7f..3331984 100644 --- a/Prometheus-and-WMI-CounterTypes.md +++ b/Prometheus-and-WMI-CounterTypes.md @@ -3,31 +3,31 @@ WMI performance counters hava many types, and those need to be mapped to Prometh This applies to WMI classes inheriting `Win32_PerfRawData`. -| WMI type | Prometheus type | Processing | +| WMI type | Prometheus type | Notes | |---------------------------------------|-----------------|--------------------------------------| -| `PERF_COUNTER_RAWCOUNT_HEX` | | | -| `PERF_COUNTER_LARGE_RAWCOUNT_HEX` | | | -| `PERF_COUNTER_TEXT` | | | +| `PERF_COUNTER_RAWCOUNT_HEX` | `gauge` | | +| `PERF_COUNTER_LARGE_RAWCOUNT_HEX` | `gauge` | | +| `PERF_COUNTER_TEXT` | ?? | A string | | `PERF_COUNTER_RAWCOUNT` | `gauge` | | -| `PERF_COUNTER_LARGE_RAWCOUNT` | | | -| `PERF_DOUBLE_RAW` | | | -| `PERF_COUNTER_DELTA` | | | -| `PERF_COUNTER_LARGE_DELTA` | | | -| `PERF_SAMPLE_COUNTER` | | | -| `PERF_COUNTER_QUEUELEN_TYPE` | | | -| `PERF_COUNTER_LARGE_QUEUELEN_TYPE` | | | -| `PERF_COUNTER_100NS_QUEUELEN_TYPE` | | | -| `PERF_COUNTER_OBJ_TIME_QUEUELEN_TYPE` | | | +| `PERF_COUNTER_LARGE_RAWCOUNT` | `gauge` | | +| `PERF_DOUBLE_RAW` | ?? | No docs | +| `PERF_COUNTER_DELTA` | `gauge` | | +| `PERF_COUNTER_LARGE_DELTA` | `gauge` | | +| `PERF_SAMPLE_COUNTER` | `counter` | | +| `PERF_COUNTER_QUEUELEN_TYPE` | `gauge` | | +| `PERF_COUNTER_LARGE_QUEUELEN_TYPE` | `gauge` | | +| `PERF_COUNTER_100NS_QUEUELEN_TYPE` | `gauge` | | +| `PERF_COUNTER_OBJ_TIME_QUEUELEN_TYPE` | `gauge` | | | `PERF_COUNTER_COUNTER` | `counter` | | | `PERF_COUNTER_BULK_COUNT` | `counter` | | -| `PERF_RAW_FRACTION` | | | -| `PERF_COUNTER_TIMER` | | | -| `PERF_PRECISION_SYSTEM_TIMER` | | | -| `PERF_100NSEC_TIMER` | | | +| `PERF_RAW_FRACTION` | `gauge` | | +| `PERF_COUNTER_TIMER` | `counter` | Units are "high-resolution performance counter" | +| `PERF_PRECISION_SYSTEM_TIMER` | `counter` | Units are "system performance timer" | +| `PERF_100NSEC_TIMER` | `counter` | Normalize to seconds (`value / 1e7`) | | `PERF_PRECISION_100NS_TIMER` | `counter` | Normalize to seconds (`value / 1e7`) | -| `PERF_OBJ_TIME_TIMER` | | | -| `PERF_PRECISION_OBJECT_TIMER` | | | -| `PERF_SAMPLE_FRACTION` | | | +| `PERF_OBJ_TIME_TIMER` | `counter` | Object-specific units | +| `PERF_PRECISION_OBJECT_TIMER` | `counter` | Object-specific units | +| `PERF_SAMPLE_FRACTION` | 2x`gauge` | Verify units | | `PERF_COUNTER_TIMER_INV` | | | | `PERF_100NSEC_TIMER_INV` | | | | `PERF_COUNTER_MULTI_TIMER` | | |