Skip to content

Commit e55be6d

Browse files
committed
feat: add wallet balance metrics and alerts; update price feed metrics
1 parent 342ddbf commit e55be6d

File tree

6 files changed

+550
-103
lines changed

6 files changed

+550
-103
lines changed

apps/price_pusher/alerts.yml

+18
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,21 @@ groups:
4545
annotations:
4646
summary: "High update duration"
4747
description: "Price updates are taking longer than 5 seconds on average"
48+
49+
- alert: WalletBalanceLow
50+
expr: pyth_wallet_balance < 0.1
51+
for: 5m
52+
labels:
53+
severity: warning
54+
annotations:
55+
summary: "Wallet balance is getting low"
56+
description: "Wallet {{ $labels.wallet_address }} on network {{ $labels.network }} has balance below 0.1 native tokens"
57+
58+
- alert: WalletBalanceCritical
59+
expr: pyth_wallet_balance < 0.01
60+
for: 2m
61+
labels:
62+
severity: critical
63+
annotations:
64+
summary: "Wallet balance critically low"
65+
description: "Wallet {{ $labels.wallet_address }} on network {{ $labels.network }} has balance below 0.01 native tokens. Transactions may fail soon!"

0 commit comments

Comments
 (0)