From da7ee8c266caa19612d62248c978e04e499c31c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 16 Aug 2022 16:18:14 +0200 Subject: [PATCH] consul: add scope:main to tags by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- defaults/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index b8245ea..dd3600c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -116,8 +116,10 @@ geth_public_addr: '{{ ansible_host }}' # Consul config geth_consul_enabled: true geth_consul_service_name: 'geth-{{ geth_network_name }}' +geth_consul_scope: 'main' geth_consul_default_tags: - - geth + - 'geth' + - 'scope:{{ geth_consul_scope }}' - '{{ env }}.{{ stage }}' - '{{ geth_network_name }}' geth_consul_extra_tags: []