You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(price_pusher): add gauge metrics for source and target price values (#3008)
* feat(price_pusher): add gauge metrics for source and target price values
- Add pyth_source_price and pyth_target_price gauge metrics to track latest price values
- Update controller to set price value metrics alongside existing timestamp metrics
- Use consistent labeling with price_id and alias for metric identification
- Convert string prices to numbers for Prometheus gauge compatibility
Co-Authored-By: Ali <[email protected]>
* chore(price_pusher): bump version to 10.1.0 for new gauge metrics feature
Co-Authored-By: Ali <[email protected]>
* chore: update readme example command
* docs(price_pusher): add documentation for new price value gauge metrics
Co-Authored-By: Ali <[email protected]>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Ali <[email protected]>
Co-authored-by: Ali Behjati <[email protected]>
@@ -272,6 +272,8 @@ The following metrics are available:
272
272
- **pyth_price_last_published_time** (Gauge): The last published time of a price feed in unix timestamp, labeled by price_id and alias
273
273
- **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
274
274
- **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
275
277
- **pyth_wallet_balance** (Gauge): Current wallet balance of the price pusher in native token units, labeled by wallet_address and network
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
353
379
- **Price Feeds List**: A table listing all configured price feeds with their details.
354
380
- **Successful Updates (Current Range)**: Graph showing the number of successful price updates over the current range with timeline.
355
381
- **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.
356
384
- **Wallet Balance**: Current balance of your wallet in native token units.
357
385
- **Wallet Balance Over Time**: Graph tracking your wallet balance over time to monitor consumption.
358
386
- **Failed Updates (Current Range)**: Graph showing the number of failed price updates over the current range with timeline.
0 commit comments