sepolia: add geth exporter

This commit is contained in:
Siddarth Kumar 2024-07-30 10:52:47 +05:30
parent 227587263c
commit 0c26a3a8f1
2 changed files with 23 additions and 4 deletions

View File

@ -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' }

View File

@ -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 }