Skip to content

Commit a9a9ffb

Browse files
committed
Make slashes alert trigger on increases (not just the first time)
1 parent be6a76c commit a9a9ffb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

composer/provisioning/prometheus/namada-alerts.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ groups:
103103
104104
- alert: HighSlashingRate
105105
expr: |
106-
slashes{chain_id="$$CHAIN_ID$$"} > 0
106+
rate(namada_slashes{chain_id="$$CHAIN_ID$$"}[1m]) > 0
107107
labels:
108108
severity: critical
109109
annotations:
110110
summary: "Unusual number of validator slashes - $$CHAIN_ID$$"
111111
description: |
112112
Slashing detected.
113-
Block height: {{ with query "namada_block_height{chain_id=\"$$CHAIN_ID$$\"}" }}{{ printf "%.0f" (. | first | value) }}{{ end }}
113+
Block height when the alert was processed: {{ with query "namada_block_height{chain_id=\"$$CHAIN_ID$$\"}" }}{{ printf "%.0f" (. | first | value) }}{{ end }}
114114
115115
- alert: AbnormalConsensusValidatorChange
116116
expr: |
@@ -184,7 +184,7 @@ groups:
184184
Block height: {{ with query "namada_block_height{chain_id=\"$$CHAIN_ID$$\"}" }}{{ printf "%.0f" (. | first | value) }}{{ end }}
185185
186186
- alert: LowLevelAlert
187-
expr: (namada_fee_alert{chain_id="$$CHAIN_ID$$"} > 0 unless namada_fee_alert{chain_id="$$CHAIN_ID$$"} offset 7s)
187+
expr: (namada_fee_alert{chain_id="$$CHAIN_ID$$"} > 0 unless namada_fee_alert{chain_id="$$CHAIN_ID$$"} offset 5m)
188188
labels:
189189
severity: critical
190190
annotations:

0 commit comments

Comments
 (0)