Skip to content

Commit 33f11ea

Browse files
committed
Add info about prometheus metrics
1 parent a3bb023 commit 33f11ea

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,16 @@ indexer specifically targets the [`Deposit` contract][deposit-contract].
2727
DB_URL=postgresql://postgres:postgres@localhost:5432/zilliqa
2828
```
2929
30-
2. **Run the Docker container**:
30+
1. **Expose Prometheus Metrics (Optional)**: To enable Prometheus metrics, set
31+
the `PROMETHEUS_PORT` environment variable in the `.env` file. Metrics will
32+
be accessible at `http://localhost:<PROMETHEUS_PORT>/metrics` within the
33+
container.
34+
35+
```env
36+
PROMETHEUS_PORT=3000
37+
```
38+
39+
1. **Run the Docker container**:
3140
3241
```bash
3342
docker run --env-file .env ghcr.io/blockscout/zilliqa-stakers-squid:0.1.0

0 commit comments

Comments
 (0)