Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
greged93 committed Oct 19, 2024
1 parent 2ad5c3d commit 8650897
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions etc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ up to date.

### Overview

- [**Prometheus**](./prometheus/prometheus.yml): An example Prometheus configuration.
- [**Grafana**](./grafana/): Example Grafana dashboards & data sources.
- [**Prometheus**](./prometheus/prometheus.yml): An example Prometheus configuration.
- [**Grafana**](./grafana/): Example Grafana dashboards & data sources.

### Docker Compose

Expand All @@ -25,36 +25,44 @@ To set up a new metric Reth and its Grafana dashboard:
documentation.

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.

```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
```

```bash
docker compose -f etc/docker-compose.yml -f etc/lighthouse.yml up -d
```

4. Access Grafana:

- Open `http://localhost:3000/` in a browser
- Log in with username and password `admin`
- Navigate to the `Dashboards` tab

5. Create or modify a dashboard:

- Select an existing dashboard or create a new one
- Click `Add` > `Visualization` to create a new panel

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, etc.
- When adding multiple metrics, use field overwrites if needed

7. Save and arrange:

- Click `Apply` to save the panel
- Drag the panel to desired position on the dashboard

8. Export the dashboard:

- Click `Share` > `Export`
- Toggle `Export for sharing externally`
- Click `Save to file`
Expand Down

0 comments on commit 8650897

Please sign in to comment.