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
You can run a local Prometheus instance to test the metrics:
294
+
You can run the monitoring stack (Prometheus and Grafana) using the provided docker-compose configuration:
295
+
296
+
1. Use the sample docker-compose file for metrics:
297
+
298
+
```bash
299
+
docker-compose -f docker-compose.metrics.sample.yaml up
300
+
```
301
+
302
+
This will start:
303
+
- Prometheus server on port 9090 with the alerts configured in alerts.yml
304
+
- Grafana server on port 3000 with default credentials (admin/admin)
305
+
306
+
The docker-compose.metrics.sample.yaml file also includes commented examples of price_pusher services for different blockchains that you can uncomment and customize for your specific needs.
307
+
308
+
Alternatively, if you prefer to set up the monitoring stack manually:
The price pusher includes pre-configured Prometheus alerting rules in the `alerts.yml` file. These rules monitor various aspects of the price pusher's operation, including:
382
+
383
+
- Price feeds not being updated for an extended period (>1 hour)
When using the docker-compose setup, these alerts are automatically loaded into Prometheus and can be viewed in the Alerting section of Grafana after setting up the Prometheus data source.
0 commit comments