Skip to content

Commit

Permalink
feat: add Hermes alerts for Prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Feb 3, 2024
1 parent d10fc7e commit 72fe01c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions templates/monitoring/prometheus/rules.d/hermes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
groups:
- name: HermesAlerts
rules:
- alert: HermesBroadcastErrors
expr: rate(broadcast_errors_total{error_code!~"22|32"}[5m]) > 0
labels:
severity: warning
annotations:
summary: "Hermes wallet {{ $labels.account }} has error {{ $labels.error_code }} : {{ $labels.error_description }}"
description: "Hermes wallet {{ $labels.account }} has error"

- 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 }}"
description: "Hermes has no new events on chain {{ $labels.chain }}"

- alert: HermesWalletBalanceTooLow
expr: wallet_balance < 1000000
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"

- 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"

0 comments on commit 72fe01c

Please sign in to comment.