Skip to content

Commit

Permalink
feat: include lun offline ems alert (#2252)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrinds authored Aug 3, 2023
1 parent 7c33cd7 commit a8edbc2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions container/prometheus/ems_alert_rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,28 @@ groups:
annotations:
summary: "LUN {{ $labels.lun_path }}, vol {{ $labels.volume_name }} (DSID {{ $labels.volume_dsid }}) destroyed (UUID: {{ $labels.object_uuid }})."

- alert: LUN Offline
expr: last_over_time(ems_events{message="LUN.offline"}[5m]) == 1
labels:
severity: >
{{- if $labels.severity -}}
{{- if eq $labels.severity "alert" -}}
critical
{{- else if eq $labels.severity "error" -}}
warning
{{- else if eq $labels.severity "emergency" -}}
critical
{{- else if eq $labels.severity "notice" -}}
info
{{- else if eq $labels.severity "informational" -}}
info
{{- else -}}
{{ $labels.severity }}
{{- end -}}
{{- end -}}
annotations:
summary: "LUN {{ $labels.lun_path }}, vol {{ $labels.volume_name }} (DSID {{ $labels.volume_dsid }}) was brought offline (UUID: {{ $labels.object_uuid }})."

- alert: NVMe Namespace Destroyed
expr: last_over_time(ems_events{message="NVMeNS.destroy"}[5m]) == 1
labels:
Expand Down

0 comments on commit a8edbc2

Please sign in to comment.