Skip to content

Commit 24755cc

Browse files
docs(price_pusher): add documentation for new price value gauge metrics
Co-Authored-By: Ali <[email protected]>
1 parent 5c615c1 commit 24755cc

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

apps/price_pusher/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ The following metrics are available:
272272
- **pyth_price_last_published_time** (Gauge): The last published time of a price feed in unix timestamp, labeled by price_id and alias
273273
- **pyth_price_update_attempts_total** (Counter): Total number of price update attempts with their trigger condition and status, labeled by price_id, alias, trigger, and status
274274
- **pyth_price_feeds_total** (Gauge): Total number of price feeds being monitored
275+
- **pyth_source_price** (Gauge): Latest price value from Pyth source, labeled by price_id and alias
276+
- **pyth_target_price** (Gauge): Latest price value from target chain, labeled by price_id and alias
275277
- **pyth_wallet_balance** (Gauge): Current wallet balance of the price pusher in native token units, labeled by wallet_address and network
276278

277279
### Configuration
@@ -343,6 +345,30 @@ pyth_wallet_balance
343345
pyth_wallet_balance < 0.1
344346
```
345347

348+
7. Monitor current source price values:
349+
350+
```
351+
pyth_source_price
352+
```
353+
354+
8. Monitor current target price values:
355+
356+
```
357+
pyth_target_price
358+
```
359+
360+
9. Compare source vs target price differences:
361+
362+
```
363+
abs(pyth_source_price - pyth_target_price) / pyth_source_price * 100
364+
```
365+
366+
10. Detect significant price deviations (>1%):
367+
368+
```
369+
abs(pyth_source_price - pyth_target_price) / pyth_source_price * 100 > 1
370+
```
371+
346372
### Dashboard
347373

348374
The docker-compose setup includes a pre-configured Grafana dashboard (`grafana-dashboard.sample.json`) that provides monitoring of your price pusher operations. The dashboard includes the following panels:
@@ -353,6 +379,8 @@ The docker-compose setup includes a pre-configured Grafana dashboard (`grafana-d
353379
- **Price Feeds List**: A table listing all configured price feeds with their details.
354380
- **Successful Updates (Current Range)**: Graph showing the number of successful price updates over the current range with timeline.
355381
- **Update Conditions Distribution**: Pie chart showing the distribution of update conditions (YES/NO/EARLY) over the selected time range.
382+
- **Source vs Target Price Values**: Graphs showing current price values from both Pyth source and target chains for comparison.
383+
- **Price Deviation Monitoring**: Panels to track price differences between source and target chains.
356384
- **Wallet Balance**: Current balance of your wallet in native token units.
357385
- **Wallet Balance Over Time**: Graph tracking your wallet balance over time to monitor consumption.
358386
- **Failed Updates (Current Range)**: Graph showing the number of failed price updates over the current range with timeline.

0 commit comments

Comments
 (0)