mirror of
https://github.com/status-im/infra-role-geth-exporter.git
synced 2025-02-23 16:08:42 +00:00
Without scope we can't select which metrics we want to collect. This is especially important for `eth2.prod` which has it's own Prometheus instance and its metrics should not go to our main cluster. Signed-off-by: Jakub Sokołowski <jakub@status.im>
20 lines
762 B
YAML
20 lines
762 B
YAML
---
|
|
- name: Create Consul service definition
|
|
include_role: name=consul-service
|
|
vars:
|
|
consul_config_name: '{{ geth_expo_cont_name }}'
|
|
consul_services:
|
|
# Prometheus config expects this service name
|
|
- id: '{{ geth_expo_cont_name }}'
|
|
name: '{{ geth_expo_consul_service_name }}'
|
|
tags: '{{ geth_expo_consul_tags }}'
|
|
port: '{{ geth_expo_cont_port }}'
|
|
address: '{{ ansible_local.wireguard.vpn_ip }}'
|
|
meta:
|
|
container: '{{ geth_expo_source_cont_name | mandatory }}'
|
|
checks:
|
|
- id: '{{ geth_expo_cont_name }}-health'
|
|
name: '{{ geth_expo_consul_service_name }} healthcheck'
|
|
type: 'http'
|
|
http: 'http://localhost:{{ geth_expo_cont_port }}/health'
|