From 81eb3e1b2159ead6b046a6f2fed0358a8a715509 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Thu, 15 Feb 2024 14:33:56 +0100 Subject: [PATCH] Update readme on how to run only grafana in docker (#6522) Co-authored-by: Alexey Shekhirin --- book/installation/docker.md | 10 ++++++++++ etc/README.md | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/book/installation/docker.md b/book/installation/docker.md index ebec5fc9e..e9411f816 100644 --- a/book/installation/docker.md +++ b/book/installation/docker.md @@ -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** 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`. \ No newline at end of file diff --git a/etc/README.md b/etc/README.md index 13315fbe1..f80b5b774 100644 --- a/etc/README.md +++ b/etc/README.md @@ -11,4 +11,8 @@ The files in this directory may undergo a lot of changes while reth is unstable, ### Docker Compose -To run Reth, Grafana and Prometheus with Docker Compose, refer to the [docker docs](/book/installation/docker.md#using-docker-compose) \ No newline at end of file +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). \ No newline at end of file