Skip to content

Commit

Permalink
feat: add rly alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Oct 13, 2024
1 parent a6e47d0 commit 59ea8c1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions templates/monitoring/prometheus/rules.d/rly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
groups:
- name: RlyAlerts
rules:
- alert: RlyWalletBalanceTooLow
expr: cosmos_relayer_wallet_balance < 5000000
labels:
severity: warning
annotations:
summary: "Rly wallet {{ $labels.address }}: balance is getting low"
description: "Rly wallet {{ $labels.address }} has less than 5,000,000 tokens: {{ $value | humanize }} {{ $labels.denom }}"

- alert: RlyIBCClientExpireSoon
expr: cosmos_relayer_client_expiration_seconds < 60 * 60 * 24 * 3
labels:
severity: critical
annotations:
summary: "Rly IBC client will expire soon"
description: "Rly IBC client {{ $labels.client_id }} on chain {{ $labels.chain }} (path {{ $labels.path_name }}) will expire in less than 3 days: {{ $value | humanizeDuration }}"

- alert: RlyNoNewBlocksFromChain
expr: rate(cosmos_relayer_chain_latest_height[5m]) == 0
for: 10m
labels:
severity: warning
annotations:
summary: "Rly has no new blocks on chain"
description: "Rly has no new blocks on chain {{ $labels.chain }}"

0 comments on commit 59ea8c1

Please # to comment.