etc/README.md
This directory contains miscellaneous files, such as example Grafana dashboards and Prometheus configuration.
The files in this directory may undergo a lot of changes while reth is unstable, so do not expect them to necessarily be up to date.
To run Reth, Grafana or Prometheus with Docker Compose, refer to the docker docs.
To set up a new metric in Reth and its Grafana dashboard (this assumes running Reth and Grafana instances):
Add the metric to the codebase following the metrics section documentation.
Access Grafana:
http://localhost:3000/ in a browseradminDashboards tabCreate or modify a dashboard:
Add > Visualization to create a new panelConfigure your metric panel:
Metrics browser or use the PromQL terminalSave and arrange:
Apply to save the panelExport the dashboard:
Share > ExportExport for sharing externallySave to fileUpdate dashboard file:
Your new metric is now integrated into the Reth Grafana dashboard.
If you are running Reth and Grafana outside of Docker, and wish to import new Grafana dashboards or update a dashboard:
Go to Home > Dashboards
Click New > Import
Drag the JSON dashboard file to import it
If updating an existing dashboard, you will need to change the name and UID of the imported dashboard in order to avoid conflict
Delete the old dashboard
If you are running Reth and Grafana using Docker, after having pulled the updated dashboards from main, restart the
Grafana service. This will update all dashboards.