consul: add version to service metadata

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-09-12 15:57:21 +02:00
parent 53de8de6ec
commit a2f2b10baa
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 5 additions and 1 deletions

View File

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