From 0c26a3a8f1fc20ae25378fa4d2153e172173078b Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Tue, 30 Jul 2024 10:52:47 +0530 Subject: [PATCH] sepolia: add geth exporter --- ansible/group_vars/nimbus.sepolia.yml | 11 +++++++++++ ansible/sepolia.yml | 16 ++++++++++++---- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/ansible/group_vars/nimbus.sepolia.yml b/ansible/group_vars/nimbus.sepolia.yml index f4e3d5f..a0efe86 100644 --- a/ansible/group_vars/nimbus.sepolia.yml +++ b/ansible/group_vars/nimbus.sepolia.yml @@ -2,6 +2,9 @@ # Go-Ethereum geth_service_name: 'geth-sepolia-{{ node.branch }}' geth_network_name: 'sepolia' +geth_service_path: '/docker/{{ geth_service_name }}' +geth_cont_name: '{{ geth_service_name }}-node' +geth_cont_vol: '{{ geth_service_path }}/node' geth_sync_mode: 'full' geth_log_level_name: info # Geth auth & JWT token @@ -78,6 +81,13 @@ validator_client_build_frequency: 'daily' # Ports validator_client_metrics_port: '{{ 8108 + idx|int + 1 }}' validator_client_keymanager_port: '{{ 5052 + idx|int + 1 }}' + +# Geth metricsĀ¬ +geth_expo_service_name: '{{ geth_service_name }}' +geth_expo_source_cont_name: '{{ geth_cont_name }}' +geth_expo_source_data_path: '{{ geth_cont_vol }}/data' +geth_expo_cont_port: '{{ 9400 + (idx|int) + 1 }}' + # Suggests it to the Execution Layer client and the builder network. validator_client_suggested_fee_recipient: '{{lookup("bitwarden", "nimbus/wallet/testnets", field="address")}}' # MEV Payload Builder @@ -109,3 +119,4 @@ open_ports_list: - { port: '9557:9560', ipset: 'waku.test', comment: 'Websocket for Waku' } - { port: '8556:8559', ipset: 'waku.sandbox', comment: 'HTTP RCP for Waku' } - { port: '9557:9560', ipset: 'waku.sandbox', comment: 'Websocket for Waku' } + - { port: '9400:9404', ipset: 'metrics.hq', comment: 'Geth Exporter' } diff --git a/ansible/sepolia.yml b/ansible/sepolia.yml index 96d14ea..1a6114b 100644 --- a/ansible/sepolia.yml +++ b/ansible/sepolia.yml @@ -17,10 +17,10 @@ - nimbus-sepolia-linux roles: - { role: update-netplan, tags: [ update-netplan ], when: ansible_system == 'Linux' } - - { role: infra-role-open-ports, tags: [ open-ports ] } - - { role: infra-role-smart-metrics, tags: [ smart-metrics ] } - - { role: redirect-ports, tags: [ redirect-ports ] } - - { role: nimbus-era-files, tags: [ nimbus-era-files ] } + - { role: infra-role-open-ports, tags: [ open-ports ] } + - { role: infra-role-smart-metrics, tags: [ smart-metrics ] } + - { role: redirect-ports, tags: [ redirect-ports ] } + - { role: nimbus-era-files, tags: [ nimbus-era-files ] } tasks: - include_role: name: infra-role-geth @@ -52,3 +52,11 @@ loop_control: loop_var: node index_var: idx + + - include_role: + name: infra-role-geth-exporter + apply: + tags: always + tags: [ infra-role-geth-exporter ] + with_items: '{{ nodes_layout[hostname] }}' + loop_control: { loop_var: node, index_var: idx }