-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: explain how to add metrics to grafana #11875
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! just left some comments
etc/README.md
Outdated
Thank you for providing that context. I understand now that this text is already part of a subsection. I'll revise it to | ||
fit better within that structure while still improving clarity and readability. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should remove this :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops 😗
etc/README.md
Outdated
9. Update dashboard file: | ||
- Replace the content of the corresponding file in the [dashboards folder](grafana/dashboards) with the exported | ||
JSON |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9. Update dashboard file: | |
- Replace the content of the corresponding file in the [dashboards folder](grafana/dashboards) with the exported | |
JSON | |
9. Update dashboard file: | |
- Replace the content of the corresponding file in the [dashboards folder](./grafana/dashboards) with the exported | |
JSON |
etc/README.md
Outdated
2. Build the Reth image: | ||
```bash | ||
docker build . -t reth:local | ||
``` | ||
Modify the [docker-compose](docker-compose.yml) file to use your locally built image for the Reth service. | ||
|
||
3. Run Docker Compose: | ||
```bash | ||
docker compose -f etc/docker-compose.yml -f etc/lighthouse.yml up -d | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should necessarily recommend using docker compose for this, let's just say that they should have a reth instance running, and a grafana instance running.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm these are docs written for a contributor no? personally found that docker was the easiest way for me to get everything up and running so that I could start adding a new panel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding these as steps make it seem a bit like it's required, but I guess it's worth making a note that we have the docker compose. I personally find it a bit hard to work with, and like to just run reth outside of docker normally
etc/README.md
Outdated
6. Configure your metric panel: | ||
- Set a panel title and description | ||
- Select metric(s) from the `Metrics browser` or use the `PromQL` terminal | ||
- Document your metric(s) by setting units, legends,... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Document your metric(s) by setting units, legends,... | |
- Document your metric(s) by setting units, legends, etc. |
etc/README.md
Outdated
#### Import Grafana dashboards | ||
|
||
Running Grafana in Docker makes it possible to import existing dashboards, refer | ||
to [docs on how to run only Grafana in Docker](/book/installation/docker.md#using-docker-compose#run-only-grafana-in-docker). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also possible without using docker, we should just add some notes on how to import the dashboard after it changes on main
etc/README.md
Outdated
|
||
#### Adding a new metric to Grafana | ||
|
||
To set up a new metric in the Reth Grafana dashboard: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To set up a new metric in the Reth Grafana dashboard: | |
To set up a new metric in Reth and its Grafana dashboard: |
8650897
to
46c975c
Compare
46c975c
to
8f67b3a
Compare
This PR adds documentation related to adding a new panel to Grafana and resolves #10794.