Metrics and Monitoring
Setup the monitoring stack
These instructions provide a quick start guide to run the Prometheus, Grafana, and Prometheus Node exporter stack.
Metrics
To check if the metrics are being emitted, run the following command: Replace the PROMETHEUS_PORT
with the value of PROMETHEUS_PORT
from the data-validator/.env
You should see something like
Update Prometheus configuration
We use prometheus to scrape the metrics from the eoracle
data validator container.
Make sure to edit the prometheus.yml file, located at Eoracle-operator-setup/data-validator/monitoring
, replacing the placeholder 'PROMETHEUS_PORT' with the actual value specified in the data-validator .env file (PROMETHEUS_PORT
)
The relevant lines are:
Start the monitoring stack
You can start all the monitoring stack, Prometheus, Grafana, and Node exporter all at once or only specific component
Start the entire monitoring stack
Connect docker networks
Since the eoracle
data validator is running in a different docker network, we will need to have the Prometheus container in the same network of oracle-data-validator. To do that, run the following command
Grafana
We use Grafana to visualize the metrics from the eoracle
AVS.
You can use OSS Grafana for it or any other Dashboard provider.
You should be able to navigate to http://<ip>:3000
and log in with admin
/admin
. This container of Grafana has a Prometheus datasource setup using port 9090. If you change the Prometheus port, you need to add a new data source or update the existing data source. You can do this by navigating to http://<ip>:3000/datasources
Useful Dashboards
We also provide a set of useful Grafana dashboards which would be useful for monitoring the eoracle
data validator service. You can find them here. Once you have Grafana set up, feel free to import the dashboards.
Last updated