From a83e372da793ef380188015f2fa6b5724909036a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 14 May 2019 19:28:57 +0200 Subject: [PATCH] add flat for enabling metrics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- defaults/main.yml | 3 +++ tasks/container.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 5a18fa9..11d2089 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -46,6 +46,9 @@ geth_v5disc_enabled: true geth_trusted_peers: [] geth_trusted_peers_file: '{{ geth_data_path }}/trusted-nodes.json' +# Enable metrics +geth_metrics_enabled: true + # Mining settings geth_miner_enabled: false geth_miner_threads: '{{ ansible_processor_vcpus }}' diff --git a/tasks/container.yml b/tasks/container.yml index 6a1de72..22d5367 100644 --- a/tasks/container.yml +++ b/tasks/container.yml @@ -40,6 +40,9 @@ --shh --shh.pow={{ geth_whisper_pow }} {% endif %} + {% if geth_metrics_enabled %} + --metrics + {% endif %} --verbosity={{ geth_log_level_id }} --cache={{ geth_cache }} --maxpeers={{ geth_max_peers }}