Update readme on how to run only grafana in docker (#6522)

Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
This commit is contained in:
Emilia Hane
2024-02-15 14:33:56 +01:00
committed by GitHub
parent db158f29f4
commit 81eb3e1b21
2 changed files with 15 additions and 1 deletions

View File

@ -125,3 +125,13 @@ docker exec -it reth bash
**If Reth is running with Docker Compose, replace `reth` with `reth-reth-1` in the above command** **If Reth is running with Docker Compose, replace `reth` with `reth-reth-1` in the above command**
Refer to the [CLI docs](../cli/cli.md) to interact with Reth once inside the Reth container. Refer to the [CLI docs](../cli/cli.md) to interact with Reth once inside the Reth container.
## Run only Grafana in Docker
This allows importing existing Grafana dashboards, without running Reth in Docker.
```bash
docker compose -f etc/docker-compose.yml up -d --no-deps grafana
```
After login with `admin:admin` credentials, Prometheus should be listed under [`Grafana datasources`](http://localhost:3000/connections/datasources). Replace its `Prometheus server URL` so it points to locally running one. On Mac or Windows, use `http://host.docker.internal:9090`. On Linux, try `http://172.17.0.1:9090`.

View File

@ -11,4 +11,8 @@ The files in this directory may undergo a lot of changes while reth is unstable,
### Docker Compose ### Docker Compose
To run Reth, Grafana and Prometheus with Docker Compose, refer to the [docker docs](/book/installation/docker.md#using-docker-compose) To run Reth, Grafana or Prometheus with Docker Compose, refer to the [docker docs](/book/installation/docker.md#using-docker-compose).
### 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).