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:
Jan-Otto Kröpke
2026-10-16 11:07:04 +02:00
committed by GitHub
parent 3fb18521f6
commit 667200f757
67 changed files with 1960 additions and 751 deletions
+6 -6
View File
@@ -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"
```