mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-17 10:09:05 +02:00
logical_disk: remove the *_latency_seconds_total counters (#2763)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -39,9 +39,6 @@ Comma-separated list of collectors to use. Available collectors: metrics, bitloc
|
||||
| `windows_logical_disk_size_bytes` | Total size of the disk in bytes | gauge | `volume` |
|
||||
| `windows_logical_disk_idle_seconds_total` | Seconds the disk was idle (not servicing read/write requests) | counter | `volume` |
|
||||
| `windows_logical_disk_split_ios_total` | Number of I/Os to the disk split into multiple I/Os | counter | `volume` |
|
||||
| `windows_logical_disk_read_latency_seconds_total` | Shows the average time, in seconds, of a read operation from the disk | counter | `volume` |
|
||||
| `windows_logical_disk_write_latency_seconds_total` | Shows the average time, in seconds, of a write operation to the disk | counter | `volume` |
|
||||
| `windows_logical_disk_read_write_latency_seconds_total` | Shows the time, in seconds, of the average disk transfer | counter | `volume` |
|
||||
| `windows_logical_disk_readonly` | Whether the logical disk is read-only | gauge | `volume` |
|
||||
| `windows_logical_disk_bitlocker_status` | BitLocker status for the logical disk | gauge | `volume`,`status` |
|
||||
|
||||
@@ -59,6 +56,18 @@ rate(windows_logical_disk_read_seconds_total[5m])
|
||||
rate(windows_logical_disk_write_seconds_total[5m])
|
||||
```
|
||||
|
||||
### Average latency
|
||||
`Avg. Disk sec/Read`, `Avg. Disk sec/Write` and `Avg. Disk sec/Transfer` divide the busy time by the number of operations.
|
||||
Their raw time values are the same as the ones of `% Disk Read Time` and `% Disk Write Time`, so the exporter only exposes
|
||||
`windows_logical_disk_read_seconds_total` and `windows_logical_disk_write_seconds_total`.
|
||||
The former `windows_logical_disk_read_latency_seconds_total`, `windows_logical_disk_write_latency_seconds_total` and
|
||||
`windows_logical_disk_read_write_latency_seconds_total` counters held the same busy time, not a latency, and were removed in 0.32.
|
||||
Divide the busy time by the number of operations for the average latency:
|
||||
```
|
||||
rate(windows_logical_disk_read_seconds_total[5m]) / rate(windows_logical_disk_reads_total[5m])
|
||||
rate(windows_logical_disk_write_seconds_total[5m]) / rate(windows_logical_disk_writes_total[5m])
|
||||
```
|
||||
|
||||
### Size metrics
|
||||
The `free_bytes` and `size_bytes` metrics are read from the volume on every scrape. Both are the free and total bytes
|
||||
of the whole volume, regardless of NTFS disk quotas of the account running windows_exporter.
|
||||
|
||||
@@ -530,7 +530,7 @@ Multiply the new ratios by 100 to get the old values; alert on `windows_dfsr_vol
|
||||
These metrics keep their values. The name changed to add the unit, to describe the value or, for counters, to put the unit before the `_total` suffix. If Prometheus scrapes with OpenMetrics, the stored names of these counters change as well.
|
||||
|
||||
<details>
|
||||
<summary>Show the table (95 metrics)</summary>
|
||||
<summary>Show the table (97 metrics)</summary>
|
||||
|
||||
| 0.31 | 0.32 | Note |
|
||||
|-------------------------------------------------------------------------|---------------------------------------------------------------------------------|------|
|
||||
@@ -601,6 +601,8 @@ These metrics keep their values. The name changed to add the unit, to describe t
|
||||
| `windows_iis_total_worker_process_shutdown_failures` | `windows_iis_worker_process_shutdown_failures_total` | Same value |
|
||||
| `windows_iis_total_worker_process_startup_failures` | `windows_iis_worker_process_startup_failures_total` | Same value |
|
||||
| `windows_iis_total_worker_processes_created` | `windows_iis_worker_processes_created_total` | Same value |
|
||||
| `windows_logical_disk_read_latency_seconds_total` | `windows_logical_disk_read_seconds_total` | Same value |
|
||||
| `windows_logical_disk_write_latency_seconds_total` | `windows_logical_disk_write_seconds_total` | Same value |
|
||||
| `windows_mscluster_cluster_add_evict_delay` | `windows_mscluster_cluster_add_evict_delay_seconds` | Same value |
|
||||
| `windows_mscluster_cluster_clus_svc_hang_timeout` | `windows_mscluster_cluster_clus_svc_hang_timeout_seconds` | Same value |
|
||||
| `windows_mscluster_cluster_clus_svc_regroup_opening_timeout` | `windows_mscluster_cluster_clus_svc_regroup_opening_timeout_seconds` | Same value |
|
||||
@@ -813,6 +815,7 @@ If Prometheus scrapes with OpenMetrics, it already stored exactly these names, b
|
||||
| `windows_memory_free_system_page_table_entries` | Saturates near 2^32 on 64-bit Windows, where system PTEs are not a scarce resource |
|
||||
| `windows_logical_disk_avg_read_requests_queued` | Running sum that only grew, never an average queue length. Use `rate(windows_logical_disk_read_seconds_total[5m])` |
|
||||
| `windows_logical_disk_avg_write_requests_queued` | Running sum that only grew, never an average queue length. Use `rate(windows_logical_disk_write_seconds_total[5m])` |
|
||||
| `windows_logical_disk_read_write_latency_seconds_total` | Sum of the read and write busy time, never a latency. Use `rate(windows_logical_disk_read_seconds_total[5m]) + rate(windows_logical_disk_write_seconds_total[5m])` |
|
||||
| `windows_cache_data_map_hits_percent` | Deprecated in earlier 0.32 builds. It was the raw hit count, not a percentage. Use `rate(windows_cache_data_map_hits_total[5m]) / rate(windows_cache_data_maps_total[5m])` |
|
||||
| `windows_mscluster_cluster_quorum_log_file_size`, `windows_mscluster_cluster_resource_dll_deadlock_period` | Obsolete cluster properties without a meaning on supported Windows versions |
|
||||
| `windows_hyperv_hypervisor_virtual_processor_time_total` | Duplicate. Use `windows_hyperv_hypervisor_virtual_processor_mode_time_seconds_total` |
|
||||
|
||||
@@ -386,6 +386,12 @@ groups:
|
||||
expr: windows_iis_server_file_cache_max_memory_bytes
|
||||
- record: windows_iis_worker_file_cache_max_memory_bytes_total
|
||||
expr: windows_iis_worker_file_cache_max_memory_bytes
|
||||
- name: windows_exporter-0.32-logical_disk
|
||||
rules:
|
||||
- record: windows_logical_disk_read_latency_seconds_total
|
||||
expr: windows_logical_disk_read_seconds_total
|
||||
- record: windows_logical_disk_write_latency_seconds_total
|
||||
expr: windows_logical_disk_write_seconds_total
|
||||
- name: windows_exporter-0.32-memory
|
||||
rules:
|
||||
- record: windows_memory_commit_limit
|
||||
|
||||
Reference in New Issue
Block a user