Skip to content

Commit

Permalink
fix(prometheus): change copy on alerts for PR
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Slaton <tyslaton@redhat.com>
  • Loading branch information
Tyler Slaton committed Sep 17, 2021
1 parent 9317022 commit c9ec25b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deploy/chart/templates/0000_90_olm_01-prometheus-rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
namespace: "{{ "{{ $labels.namespace }}" }}"
annotations:
summary: CSV failed for over 2 minutes
description: Fires whenever a CSV has been in a state other than succeeded for more than 2 minutes
description: Fires whenever a CSV has been in the failed phase for more than 2 minutes.
message: Failed to install Operator {{ printf "{{ $labels.name }}" }} version {{ printf "{{ $labels.version }}" }}. Reason-{{ printf "{{ $labels.reason }}" }}
- alert: CsvAbnormalOver30Min
expr: csv_abnormal{phase=~"(^Replacing$|^Pending$|^Deleting$|^Unknown$)"}
Expand All @@ -29,7 +29,7 @@ spec:
namespace: "{{ "{{ $labels.namespace }}" }}"
annotations:
summary: CSV abnormal for over 30 minutes
description: Fires whenever a CSV is abnormal for more than 30 minutes
description: Fires whenever a CSV is in the Replacing, Pending, Deleting, or Unkown phase for more than 30 minutes.
message: Failed to install Operator {{ printf "{{ $labels.name }}" }} version {{ printf "{{ $labels.version }}" }}. Phase-{{ printf "{{ $labels.phase }}" }} Reason-{{ printf "{{ $labels.reason }}" }}
- name: olm.installplan.rules
rules:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- alert: SeriousAlert
annotations:
summary: Serious Alert!
description: This is a very serious alert!
description: This is a test alert, it is not real.
message: A serious alert!
expr: alert_status{prioirity="Serious"}
labels:
Expand Down

0 comments on commit c9ec25b

Please sign in to comment.