mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 05:56:37 +00:00
cpu_info: Extend processor information (#1597)
This commit is contained in:
@@ -15,13 +15,39 @@ None
|
||||
|
||||
## Metrics
|
||||
|
||||
Name | Description | Type | Labels
|
||||
-----|-------------|------|-------
|
||||
`windows_cpu_info` | Labelled CPU information | gauge | `architecture`, `device_id`, `description`, `family`, `l2_cache_size` `l3_cache_size`, `name`
|
||||
| Name | Description | Type | Labels |
|
||||
|--------------------------------------------|--------------------------------------|-------|--------------------------------------------------------------|
|
||||
| `windows_cpu_info` | Labelled CPU information | gauge | `architecture`, `description`, `device_id`, `family`, `name` |
|
||||
| `windows_cpu_info_core` | Number of cores per CPU | gauge | `device_id` |
|
||||
| `windows_cpu_info_enabled_core` | Number of enabled cores per CPU | gauge | `device_id` |
|
||||
| `windows_cpu_info_l2_cache_size` | Size of L2 cache per CPU | gauge | `device_id` |
|
||||
| `windows_cpu_info_l3_cache_size` | Size of L3 cache per CPU | gauge | `device_id` |
|
||||
| `windows_cpu_info_logical_processor` | Number of logical processors per CPU | gauge | `device_id` |
|
||||
| `windows_cpu_info_thread` | Number of threads per CPU | gauge | `device_id` |
|
||||
|
||||
### Example metric
|
||||
```
|
||||
windows_cpu_info{architecture="9",description="AMD64 Family 23 Model 49 Stepping 0",device_id="CPU0",family="107",l2_cache_size="32768",l3_cache_size="262144",name="AMD EPYC 7702P 64-Core Processor"} 1
|
||||
# HELP windows_cpu_info Labelled CPU information as provided by Win32_Processor
|
||||
# TYPE windows_cpu_info gauge
|
||||
windows_cpu_info{architecture="9",description="AMD64 Family 25 Model 33 Stepping 2",device_id="CPU0",family="107",name="AMD Ryzen 9 5900X 12-Core Processor"} 1
|
||||
# HELP windows_cpu_info_core Number of cores per CPU
|
||||
# TYPE windows_cpu_info_core gauge
|
||||
windows_cpu_info_core{device_id="CPU0"} 12
|
||||
# HELP windows_cpu_info_enabled_core Number of enabled cores per CPU
|
||||
# TYPE windows_cpu_info_enabled_core gauge
|
||||
windows_cpu_info_enabled_core{device_id="CPU0"} 12
|
||||
# HELP windows_cpu_info_l2_cache_size Size of L2 cache per CPU
|
||||
# TYPE windows_cpu_info_l2_cache_size gauge
|
||||
windows_cpu_info_l2_cache_size{device_id="CPU0"} 6144
|
||||
# HELP windows_cpu_info_l3_cache_size Size of L3 cache per CPU
|
||||
# TYPE windows_cpu_info_l3_cache_size gauge
|
||||
windows_cpu_info_l3_cache_size{device_id="CPU0"} 65536
|
||||
# HELP windows_cpu_info_logical_processor Number of logical processors per CPU
|
||||
# TYPE windows_cpu_info_logical_processor gauge
|
||||
windows_cpu_info_logical_processor{device_id="CPU0"} 24
|
||||
# HELP windows_cpu_info_thread Number of threads per CPU
|
||||
# TYPE windows_cpu_info_thread gauge
|
||||
windows_cpu_info_thread{device_id="CPU0"} 24
|
||||
```
|
||||
The value of the metric is irrelevant, but the labels expose some useful information on the CPU installed in each socket.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user