Skip to content

Commit

Permalink
Add DWPD alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
technowhizz committed Oct 13, 2023
1 parent 95d88fb commit c474ca9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion etc/kayobe/kolla/config/prometheus/smart.rules
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,20 @@ groups:
summary: "SMART monitor reports bad disk on (instance {{ $labels.instance }})"
description: "{{ $labels.instance }} is reporting unhealthy for the disk at {{ $labels.disk }}. Disk serial number is: {{ $labels.serial_number }}"

{% endraw %}
- alert: DWPDTooHigh
expr: (delta(nvme_data_units_written_total[168h])*512000 / nvme_physical_size_bytes)/7 > 1
labels:
severity: alert
annotations:
summary: "High 7-Day Average DWPD for {{ $labels.instance }}
description: "The 7-Day average for Disk Writes Per Day for disk {{ $labels.device }} on {{ $labels.instance }} exceeds 1 DWPD"

- alert: DWPDTooHighWarning
expr: delta(nvme_data_units_written_total[24h])*512000 / nvme_physical_size_bytes > 1
labels:
severity: warning
annotations:
summary: "High DWPD for {{ $labels.instance }}
description: "The 24-Hour average for Disk Writes Per Day for disk {{ $labels.device }} on {{ $labels.instance }} exceeds 1 DWPD"

{% endraw %}

0 comments on commit c474ca9

Please sign in to comment.