fix variable for name of source container
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
f27e381a6c
commit
d4cecd8624
|
@ -6,7 +6,15 @@ The image used by default is [statusteam/geth_exporter:latest](https://hub.docke
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
|
|
||||||
|
The main thing to change is name of container to connect to and IPC path:
|
||||||
```yaml
|
```yaml
|
||||||
|
geth_source_cont_name:
|
||||||
|
```
|
||||||
|
|
||||||
|
The rest of the defaults should be fine, but if you want to change anything change those:
|
||||||
|
```yaml
|
||||||
|
geth_expo_cont_name: 'metrics-geth-01'
|
||||||
|
geth_expo_cont_port: 9300
|
||||||
```
|
```
|
||||||
|
|
||||||
# Known Issues
|
# Known Issues
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
---
|
---
|
||||||
|
# source container
|
||||||
|
geth_source_cont_name: ~
|
||||||
|
geth_source_cont_ipc_path: '/data/geth.ipc'
|
||||||
|
|
||||||
|
# metrics container settings
|
||||||
geth_expo_cont_image: statusteam/geth_exporter:latest
|
geth_expo_cont_image: statusteam/geth_exporter:latest
|
||||||
geth_expo_cont_name: geth-exporter
|
geth_expo_cont_name: geth-exporter
|
||||||
geth_expo_cont_addr: '0.0.0.0'
|
geth_expo_cont_addr: '0.0.0.0'
|
||||||
|
@ -13,6 +18,7 @@ geth_expo_consul_tags:
|
||||||
- metrics
|
- metrics
|
||||||
- geth
|
- geth
|
||||||
|
|
||||||
|
# generic container settings
|
||||||
cont_state: started
|
cont_state: started
|
||||||
cont_recreate: false
|
cont_recreate: false
|
||||||
cont_restart: false
|
cont_restart: false
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
address: '{{ geth_expo_consul_addr }}'
|
address: '{{ geth_expo_consul_addr }}'
|
||||||
tags: '{{ geth_expo_consul_tags }}'
|
tags: '{{ geth_expo_consul_tags }}'
|
||||||
meta:
|
meta:
|
||||||
container: '{{ geth_expo_cont_name }}'
|
container: '{{ geth_source_cont_name | mandatory }}'
|
||||||
checks:
|
checks:
|
||||||
- id: '{{ geth_expo_consul_name }}'-health
|
- id: '{{ geth_expo_consul_name }}'-health
|
||||||
name: 'geth-exporter healthcheck'
|
name: 'geth-exporter healthcheck'
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
recreate: '{{ cont_recreate }}'
|
recreate: '{{ cont_recreate }}'
|
||||||
restart: '{{ cont_restart }}'
|
restart: '{{ cont_restart }}'
|
||||||
entrypoint: geth_exporter
|
entrypoint: geth_exporter
|
||||||
volumes_from: '{{ cont_name }}'
|
volumes_from: '{{ geth_source_cont_name | mandatory }}'
|
||||||
command: |
|
command: |
|
||||||
-ipc /data/geth.ipc
|
-ipc {{ geth_source_cont_ipc_path }}
|
||||||
-port 9200
|
-port 9200
|
||||||
ports:
|
ports:
|
||||||
- '{{ geth_expo_cont_port }}:9200/tcp'
|
- '{{ geth_expo_cont_port }}:9200/tcp'
|
||||||
|
|
Loading…
Reference in New Issue