consul: add metrics service definition

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-03-08 11:08:16 +01:00
parent 28c2d448ef
commit 303505ad74
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 13 additions and 0 deletions

View File

@ -18,6 +18,19 @@
type: tcp
tcp: '127.0.0.1:{{ geth_port }}'
- id: '{{ geth_cont_name }}-metrics'
name: '{{ geth_consul_service_name }}-metrics'
tags: '{{ geth_consul_tags + ["metrics"] }}'
port: '{{ geth_metrics_port }}'
address: '{{ geth_consul_advertised_address }}'
disabled: '{{ not geth_metrics_enabled }}'
checks:
- id: '{{ geth_cont_name }}-metrics-status'
type: 'tpc'
tcp: 'localhost:{{ geth_metrics_port }}'
timeout: '5s'
failures_before_critical: 3
- id: '{{ geth_cont_name }}-rpc'
name: '{{ geth_consul_service_name }}-rpc'
tags: '{{ geth_consul_tags + ["rpc"] }}'