mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-20 19:49:03 +02:00
collector: name instance labels after the entity they identify (#2744)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -16,11 +16,11 @@ None
|
||||
|
||||
| Name | Description | Type | Labels |
|
||||
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | ------ |
|
||||
| `windows_diskdrive_info` | General identifiable information about the disk drive | gauge | device_id,model,caption,name |
|
||||
| `windows_diskdrive_availability` | The disk drive's current availability | gauge | name,availability |
|
||||
| `windows_diskdrive_partitions` | Number of partitions on the drive | gauge | name |
|
||||
| `windows_diskdrive_size_bytes` | Size of the disk drive. It is calculated by multiplying the total number of cylinders, tracks in each cylinder, sectors in each track, and bytes in each sector. | gauge | name |
|
||||
| `windows_diskdrive_status` | Operational status of the drive | gauge | name,status |
|
||||
| `windows_diskdrive_info` | General identifiable information about the disk drive | gauge | device_id,model,caption |
|
||||
| `windows_diskdrive_availability` | The disk drive's current availability | gauge | device_id,availability |
|
||||
| `windows_diskdrive_partitions` | Number of partitions on the drive | gauge | device_id |
|
||||
| `windows_diskdrive_size_bytes` | Size of the disk drive. It is calculated by multiplying the total number of cylinders, tracks in each cylinder, sectors in each track, and bytes in each sector. | gauge | device_id |
|
||||
| `windows_diskdrive_status` | Operational status of the drive | gauge | device_id,status |
|
||||
|
||||
## Alerting examples
|
||||
**prometheus.rules**
|
||||
@@ -35,6 +35,6 @@ groups:
|
||||
labels:
|
||||
severity: high
|
||||
annotations:
|
||||
summary: "Instance: {{ $labels.instance }} has drive status: {{ $labels.status }} on disk {{ $labels.name }}"
|
||||
summary: "Instance: {{ $labels.instance }} has drive status: {{ $labels.status }} on disk {{ $labels.device_id }}"
|
||||
description: "Drive Status Unhealthy"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user