fix metrics guide (#2234)

This commit is contained in:
Sacha Saint-Leger 2021-01-13 14:21:00 +01:00 committed by GitHub
parent 37c3c3877c
commit 67cce36f06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -16,8 +16,14 @@ make NIMFLAGS="-d:insecure" nimbus_beacon_node
> **Note:** Metrics are not included in the binary by default. The `NIMFLAGS="-d:insecure"` is needed because we consider the HTTP server that needs to start to serve the metrics to be insecure (without this flag it won't launch properly). As such, we recommend you make sure port 8008 is protected.
Run the beacon node with the `--metrics` flag:
Now visit [http://127.0.0.1:8008/metrics](http://127.0.0.1:8008/metrics) to see the raw metrics. You should see a plaintext page that looks something like this:
```
./run-pyrmont-beacon-node.sh --metrics
```
And visit [http://127.0.0.1:8008/metrics](http://127.0.0.1:8008/metrics) to see the raw metrics. You should see a plaintext page that looks something like this:
```
# HELP nim_runtime_info Nim runtime info