consul: add version to service metadata
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
53de8de6ec
commit
a2f2b10baa
|
@ -12,6 +12,7 @@
|
|||
meta:
|
||||
node_addr: '{{ node_info.json.result.id }}'
|
||||
node_enode: '{{ node_info.json.result.enode }}'
|
||||
version: '{{ geth_cont_tag | regex_replace("^v", "") }}'
|
||||
checks:
|
||||
- id: '{{ geth_cont_name }}-status'
|
||||
type: tcp
|
||||
|
@ -25,6 +26,7 @@
|
|||
disabled: '{{ not geth_rpc_enabled }}'
|
||||
meta:
|
||||
url: 'http://{{ geth_consul_advertised_address }}:{{ geth_rpc_port }}'
|
||||
version: '{{ geth_cont_tag | regex_replace("^v", "") }}'
|
||||
checks:
|
||||
- id: '{{ geth_cont_name }}-rpc-status'
|
||||
type: 'script'
|
||||
|
@ -40,6 +42,7 @@
|
|||
disabled: '{{ not geth_authrpc_enabled }}'
|
||||
meta:
|
||||
url: 'http://{{ geth_consul_advertised_address }}:{{ geth_authrpc_port }}'
|
||||
version: '{{ geth_cont_tag | regex_replace("^v", "") }}'
|
||||
checks:
|
||||
- id: '{{ geth_cont_name }}-authrpc-status'
|
||||
type: 'tcp'
|
||||
|
@ -54,6 +57,7 @@
|
|||
disabled: '{{ not geth_websocket_enabled }}'
|
||||
meta:
|
||||
url: 'ws://{{ geth_consul_advertised_address }}:{{ geth_websocket_port }}'
|
||||
version: '{{ geth_cont_tag | regex_replace("^v", "") }}'
|
||||
checks:
|
||||
- id: '{{ geth_cont_name }}-ws-status'
|
||||
name: 'Geth WebSocket API'
|
||||
|
|
Loading…
Reference in New Issue