Skip to content

Commit

Permalink
chore: refactor Hermes alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Feb 16, 2024
1 parent a09a1da commit 40c190d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions templates/monitoring/prometheus/rules.d/hermes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,31 @@ groups:
labels:
severity: warning
annotations:
summary: "Hermes wallet {{ $labels.account }} has error {{ $labels.error_code }} : {{ $labels.error_description }}"
description: "Hermes wallet {{ $labels.account }} has error"
summary: "Hermes wallet has error"
description: "Hermes wallet {{ $labels.account }} has error {{ $labels.error_code }}: {{ $labels.error_description }}"

- alert: HermesNoNewEventsFromChain
expr: rate(ws_events_total[1m]) == 0
for: 10m
labels:
severity: warning
annotations:
summary: "Hermes has no new events on chain {{ $labels.chain }}"
summary: "Hermes has no new events on chain"
description: "Hermes has no new events on chain {{ $labels.chain }}"

- alert: HermesWalletBalanceTooLow
expr: wallet_balance < 1000000
expr: wallet_balance < 5000000
labels:
severity: warning
annotations:
summary: "Hermes wallet {{ $labels.account }} has less than 1,000,000 tokens : {{ $value }}"
description: "Hermes wallet {{ $labels.account }}: balance is getting low"
summary: "Hermes wallet {{ $labels.account }}: balance is getting low"
description: "Hermes wallet {{ $labels.account }} has less than 5,000,000 tokens: {{ $value | humanize }} {{ $labels.denom }}"

- alert: HermesNoRPCQueriesOnChain
expr: sum(rate(queries_total[1m])) by(chain) == 0
for: 20m
labels:
severity: warning
annotations:
summary: "Hermes chain { $labels.chain }} has no RPC queries"
description: "Hermes chain { $labels.chain }} has no RPC queries"
summary: "Hermes chain has no RPC queries"
description: "Hermes chain {{ $labels.chain }} has no RPC queries"

0 comments on commit 40c190d

Please sign in to comment.