expose geth metrics port at 6060

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-03-25 10:00:34 +01:00
parent 0eed3daea9
commit b49b5dde83
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,7 @@ geth_bootnodes: []
# Enable metrics
geth_metrics_enabled: true
geth_metrics_port: 6060
# Mining settings
geth_miner_enabled: false

View File

@ -15,6 +15,7 @@
ports:
- '{{ geth_port }}:{{ geth_port }}/tcp'
- '{{ geth_port }}:{{ geth_port }}/udp'
- '{{ geth_metrics_port }}:{{ geth_metrics_port }}/tcp'
- '{{ geth_websocket_port }}:{{ geth_websocket_port }}/tcp'
- '{{ geth_rpc_addr }}:{{ geth_rpc_port }}:{{ geth_rpc_port }}'
labels:
@ -45,6 +46,8 @@
{% endif %}
{% if geth_metrics_enabled %}
--metrics
--metrics.addr=0.0.0.0
--metrics.port={{ geth_metrics_port }}
{% endif %}
{% if geth_cache_size %}
--cache={{ geth_cache_size }}