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
Copy file name to clipboardExpand all lines: apps/price_pusher/README.md
+7-41Lines changed: 7 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -268,12 +268,10 @@ The price_pusher now supports Prometheus metrics to monitor the health and perfo
268
268
269
269
The following metrics are available:
270
270
271
-
- **pyth_price_last_published_time** (Gauge): The last published time of a price feed in unix timestamp
272
-
- **pyth_price_updates_total** (Counter): Total number of price updates pushed to the chain
271
+
- **pyth_price_last_published_time** (Gauge): The last published time of a price feed in unix timestamp, labeled by price_id and alias
272
+
- **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
273
273
- **pyth_price_feeds_total** (Gauge): Total number of price feeds being monitored
274
-
- **pyth_price_update_errors_total** (Counter): Total number of errors encountered during price updates
275
-
- **pyth_update_conditions_total** (Counter): Count of update condition checks by status (YES/NO/EARLY)
276
-
- **pyth_wallet_balance** (Gauge): Current wallet balance of the price pusher in native token units
274
+
- **pyth_wallet_balance** (Gauge): Current wallet balance of the price pusher in native token units, labeled by wallet_address and network
277
275
278
276
### Configuration
279
277
@@ -304,37 +302,6 @@ This will start:
304
302
305
303
The docker-compose.metrics.sample.yaml file includes a pre-configured Grafana dashboard (see the [Dashboard](#dashboard) section below) that displays all the metrics mentioned above. This dashboard provides monitoring of your price pusher operations with panels for configured feeds, active feeds, wallet balance, update statistics, and error tracking. The dashboard is automatically provisioned when you start the stack with docker-compose.
306
304
307
-
Alternatively, if you prefer to set up the monitoring stack manually:
docker run -d --name grafana -p 3000:3000 grafana/grafana
334
-
```
335
-
336
-
4. Access Grafana at http://localhost:3000 (default credentials: admin/admin) and add Prometheus as a data source (URL: http://host.docker.internal:9090).
337
-
338
305
### Example Grafana Queries
339
306
340
307
Here are some example Grafana queries to monitor your price feeds:
@@ -398,10 +365,9 @@ This dashboard is automatically provisioned when you start the docker-compose st
398
365
The price pusher includes pre-configured Prometheus alerting rules in the `alerts.sample.yml` file. These rules monitor various aspects of the price pusher's operation, including:
399
366
400
367
- Price feeds not being updated for an extended period (>1 hour)
401
-
- High error rates in price updates
402
-
- No recent price updates across all feeds
403
-
- Service availability
404
-
- High update durations
368
+
- High error rates in price update attempts
369
+
- No successful price updates across all feeds in the last 30 minutes
0 commit comments