fix variable for name of source container

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-05-10 16:39:32 +02:00
parent f27e381a6c
commit d4cecd8624
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
4 changed files with 17 additions and 3 deletions

View File

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

View File

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

View File

@ -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'

View File

@ -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'