Skip to content

ADD: L2 Optimism #2170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 189 commits into from
Apr 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
189 commits
Select commit Hold shift + click to select a range
4e4fd54
ADD: geth virtual hostname "*" wildcard
gbayasgalan Jan 21, 2025
cd9b2d2
ADD: init one click install and grafana dashboard
gbayasgalan Jan 22, 2025
518646d
ADD: op icons
MaxTheGeeek Jan 22, 2025
b6889a7
FIX: excluded some EL for optimism
gbayasgalan Jan 22, 2025
85985ad
ADD: include support for optimism in node management
MaxTheGeeek Jan 22, 2025
c7d0d48
ADD: optimism jwt
gbayasgalan Jan 22, 2025
2822a95
TEMPORARY: for testing ansible, changing repo
gbayasgalan Jan 22, 2025
9a451d3
FIX: format
gbayasgalan Jan 22, 2025
4bd3b69
ADD: create jwt for op-geth
gbayasgalan Jan 22, 2025
c0e464e
FIX: op network
gbayasgalan Jan 22, 2025
e2dde51
ADD: add prometheus & grafana config
gbayasgalan Jan 23, 2025
2b4b41b
FIX: grafana dashboard modification
gbayasgalan Jan 23, 2025
55b9a48
FIX: op-node metrics path
gbayasgalan Jan 23, 2025
66e6f83
FIX: op-node dependencies
gbayasgalan Jan 23, 2025
5f7f168
ADD: op-geth command flag for op-mainnet
gbayasgalan Jan 23, 2025
db1cc8d
FIX: setup creation for op
gbayasgalan Jan 23, 2025
83317e4
FIX: one click installation for op preset
gbayasgalan Jan 23, 2025
1eac4d9
FIX: op-node prometheus config
gbayasgalan Jan 23, 2025
afff44e
ADD: init L2geth
gbayasgalan Jan 24, 2025
3f7a92f
ADD: include L2GethService in optimism preset in oneclick
MaxTheGeeek Jan 24, 2025
7996fea
ADD: l2geth icon and plugin rows
MaxTheGeeek Jan 24, 2025
2c70962
Merge branch 'stereum-dev:main' into opt
gbayasgalan Jan 27, 2025
177be46
ADJUST: multiconfig file creation
gbayasgalan Jan 28, 2025
a1cd912
ADJUST: oneclick install for l2-geth
gbayasgalan Jan 28, 2025
773690c
ADD: L2-geth service
gbayasgalan Jan 28, 2025
daa99bd
ADJUST: op-geth & op-node network and combination with l2-geth
gbayasgalan Jan 28, 2025
6c46e7c
Merge branch 'stereum-dev:main' into opt
gbayasgalan Jan 31, 2025
565dcd4
Merge branch 'stereum-dev:main' into opt
gbayasgalan Feb 4, 2025
3433342
Merge branch 'stereum-dev:main' into opt
gbayasgalan Feb 5, 2025
2f71631
MODIFY: clients for op presets
gbayasgalan Feb 6, 2025
e43449d
MODIFY: VC for optimism presets
gbayasgalan Feb 6, 2025
2d3081b
FIX: op-network
gbayasgalan Feb 6, 2025
9da44a8
Merge branch 'stereum-dev:main' into opt
gbayasgalan Feb 6, 2025
eef09aa
ADD: op temp icons and op to the oneclick header
MaxTheGeeek Feb 7, 2025
47f42f6
FIX: format
MaxTheGeeek Feb 7, 2025
60e1309
ADD: op networks
MaxTheGeeek Feb 7, 2025
372e547
ADD: op presets
MaxTheGeeek Feb 7, 2025
731779f
IMPROVE: preset body more space for op presets
MaxTheGeeek Feb 7, 2025
4acd66c
ADD: new icons and optional legacy
MaxTheGeeek Feb 7, 2025
2e7d8d3
Merge branch 'stereum-dev:main' into opt
gbayasgalan Feb 7, 2025
741b46e
Merge branch 'stereum-dev:main' into opt
gbayasgalan Feb 10, 2025
52c8c25
ADD: hide not supported presets
MaxTheGeeek Feb 11, 2025
2f4bbdb
IMPROVE: one click routing
MaxTheGeeek Feb 11, 2025
c0283d2
IMPROVE: server details copy icon
MaxTheGeeek Feb 12, 2025
fc9f83d
FIX: OP setup network
gbayasgalan Feb 13, 2025
2666b62
ADD: op network icons
MaxTheGeeek Feb 13, 2025
f82c254
format
gbayasgalan Feb 13, 2025
cacf7e6
FIX: network for ELs, CLs & VCs
gbayasgalan Feb 13, 2025
e66a053
ADD: setup connectng flags
MaxTheGeeek Feb 13, 2025
861104f
ADD: selecting flag in setup object
MaxTheGeeek Feb 13, 2025
fc8b303
FIX: node type
MaxTheGeeek Feb 13, 2025
e1baf7a
CHANGE: activated connecting btn
MaxTheGeeek Feb 13, 2025
4d55b69
ADD: connecting trigger in editScreen
MaxTheGeeek Feb 13, 2025
b57f86e
ADD: op connecting modal
MaxTheGeeek Feb 13, 2025
6be4890
Merge branch 'opt' of https://github.com/gbayasgalan/ethereum-node in…
MaxTheGeeek Feb 13, 2025
2223f86
FIX: eth setup network
gbayasgalan Feb 13, 2025
58fbfad
FIX: formatting
gbayasgalan Feb 13, 2025
1db78ab
ADD: setup and services selection
MaxTheGeeek Feb 14, 2025
eaa2df8
Merge branch 'opt' of https://github.com/gbayasgalan/ethereum-node in…
MaxTheGeeek Feb 14, 2025
d5e47a8
FIX: hydration and volume warning
MaxTheGeeek Feb 17, 2025
f33cabf
FIX: send client object to backend
MaxTheGeeek Feb 17, 2025
0577344
ADD: clear changes array by canceling process
MaxTheGeeek Feb 17, 2025
cf4468a
FIX: op connection requirements
MaxTheGeeek Feb 18, 2025
1c9250c
ADD: connection op-node to op-el
gbayasgalan Feb 18, 2025
93721fd
FIX: format
gbayasgalan Feb 18, 2025
ef8a7b1
Merge branch 'stereum-dev:main' into opt
gbayasgalan Feb 19, 2025
3fd515b
ADD: setup type on fetching the setups
MaxTheGeeek Feb 19, 2025
f531cad
ADD: services filtering for op on drawer
MaxTheGeeek Feb 19, 2025
19a9007
Merge branch 'opt' of https://github.com/gbayasgalan/ethereum-node in…
MaxTheGeeek Feb 19, 2025
fedb776
FIX: dependecies
MaxTheGeeek Feb 20, 2025
079b225
FIX: dependencies
MaxTheGeeek Feb 20, 2025
7b17630
FIX: dependensies typo
MaxTheGeeek Feb 20, 2025
ebbcb97
Merge branch 'main' into opt
gbayasgalan Feb 20, 2025
5c072cd
FIX: format
gbayasgalan Feb 20, 2025
1b4bac6
FIX: remove console logs
gbayasgalan Feb 20, 2025
9eed7d5
FIX: existing clients connection
MaxTheGeeek Feb 20, 2025
8ffcf3c
Merge branch 'opt' of https://github.com/gbayasgalan/ethereum-node in…
MaxTheGeeek Feb 20, 2025
805b404
ADD: op edit connection
gbayasgalan Feb 21, 2025
2e64b7d
FIX: command flag handling
gbayasgalan Feb 21, 2025
9ff0b87
Merge branch 'stereum-dev:main' into opt
gbayasgalan Feb 24, 2025
1bd2198
Merge branch 'main' into opt
gbayasgalan Feb 25, 2025
3e5dfb0
FIX: network & l2geth handling
gbayasgalan Feb 25, 2025
c065066
FIX: remove excluding opnode auto start
gbayasgalan Feb 25, 2025
280ef31
FIX: op-node version
gbayasgalan Feb 27, 2025
90da344
ADD: init other op-ELs
gbayasgalan Feb 27, 2025
ebbd9cc
Merge branch 'stereum-dev:main' into opt
gbayasgalan Feb 27, 2025
2791ccc
Merge branch 'main' into opt
gbayasgalan Feb 27, 2025
0d5bcbc
ADD: add l2geth into op-archive-presets
gbayasgalan Feb 27, 2025
b958cf7
REFACTOR: adapting modifying function with op clients
MaxTheGeeek Feb 28, 2025
eee22d6
Merge branch 'opt' of https://github.com/gbayasgalan/ethereum-node in…
MaxTheGeeek Feb 28, 2025
c7c9047
Merge branch 'stereum-dev:main' into opt
gbayasgalan Feb 28, 2025
6b34731
Merge branch 'stereum-dev:main' into opt
gbayasgalan Mar 3, 2025
2cfaece
UPDATE: improve setup connection
MaxTheGeeek Mar 3, 2025
acc2694
ADD: group by on one click plugins
MaxTheGeeek Mar 4, 2025
1795757
REMOVE: genesis sync for exec clients
MaxTheGeeek Mar 4, 2025
099a65d
ADD: opErigon and opReth in plugin change
MaxTheGeeek Mar 4, 2025
68f7f64
Merge branch 'stereum-dev:main' into opt
gbayasgalan Mar 4, 2025
248484d
ADD: init op-reth & erigon
gbayasgalan Mar 4, 2025
6fbbb04
FIX: format
gbayasgalan Mar 4, 2025
fa9919b
Modify: op-reth in op-preset for test
gbayasgalan Mar 4, 2025
b6f5b37
FIX: plugin rows
MaxTheGeeek Mar 4, 2025
121a7c6
Merge branch 'opt' of https://github.com/gbayasgalan/ethereum-node in…
MaxTheGeeek Mar 4, 2025
a209c1f
FIX: small fix for presets
gbayasgalan Mar 5, 2025
460cee0
REFACTOR: plugin ex change
MaxTheGeeek Mar 5, 2025
bfd3d5a
FIX: none op replacing plugins
MaxTheGeeek Mar 5, 2025
c5e266d
ADD: fix plugins replacing and carousel network
MaxTheGeeek Mar 5, 2025
7b1bad8
FIX: op node handling l1 el link
gbayasgalan Mar 5, 2025
3bd7295
FXL op-node enginekind
gbayasgalan Mar 6, 2025
9ba2377
REMOVE: archive from sepolia
MaxTheGeeek Mar 7, 2025
c9f0729
FIX: packages
MaxTheGeeek Mar 7, 2025
e757f9f
ADD: resolve unique ports for oneclick
gbayasgalan Mar 7, 2025
dd11cc8
FIX: op-reth's op network
gbayasgalan Mar 7, 2025
a9f4229
FIX: setup network for optimism setups
MaxTheGeeek Mar 7, 2025
76930a0
FIX: syncing links for the op networks
MaxTheGeeek Mar 7, 2025
3ad81b7
FIX: warnings on custom modal
MaxTheGeeek Mar 7, 2025
b3eeb6a
Merge branch 'opt' of https://github.com/gbayasgalan/ethereum-node in…
MaxTheGeeek Mar 7, 2025
9859ff2
ADD: use default ports
gbayasgalan Mar 7, 2025
295a858
REMOVE: logs
MaxTheGeeek Mar 7, 2025
382313a
Merge branch 'opt' of https://github.com/gbayasgalan/ethereum-node in…
MaxTheGeeek Mar 7, 2025
dc9e459
Merge branch 'stereum-dev:main' into opt
gbayasgalan Mar 9, 2025
4f1c0d6
FIX: L2 geth p2p port
gbayasgalan Mar 9, 2025
29ca4a7
FIX: op-servies's expert mode
gbayasgalan Mar 9, 2025
cb568a1
ADD: op-geth int test
gbayasgalan Mar 11, 2025
c3c0d27
ADD: op-reth & erigon int test
gbayasgalan Mar 11, 2025
50532d6
ADD: l2geth int test
gbayasgalan Mar 11, 2025
23ec413
FIX: l2geth image
gbayasgalan Mar 11, 2025
3a83e58
Merge branch 'stereum-dev:main' into opt
gbayasgalan Mar 12, 2025
7ea20a0
ADD: unit test for op-ELs
gbayasgalan Mar 13, 2025
bab2a55
FIX: clean comments
gbayasgalan Mar 13, 2025
3219647
ADD: op node unit test
gbayasgalan Mar 13, 2025
210013f
FIX: replace opNode plugin
MaxTheGeeek Mar 13, 2025
2d018c5
ADD: setup connection modal flow and composable functions
MaxTheGeeek Mar 13, 2025
6226807
FIX: removing comments
gbayasgalan Mar 13, 2025
b005b7a
ADD: import state snapshot for op-reth
gbayasgalan Mar 19, 2025
e4ec9ab
FIX: import state snapshot op-reth
gbayasgalan Mar 19, 2025
9d7aca0
FIX: conflict
gbayasgalan Mar 23, 2025
e690040
FIX: conflict with grandine
gbayasgalan Mar 23, 2025
fe7bb1e
FIX: conflict Grandine beacon in oneclick
gbayasgalan Mar 23, 2025
2592738
Merge branch 'main' into opt
gbayasgalan Mar 23, 2025
25828c0
fix: format
gbayasgalan Mar 23, 2025
3811cff
Fix: format check
gbayasgalan Mar 23, 2025
0b9f70e
FIX: grandine oneclick
gbayasgalan Mar 23, 2025
adce042
FIX: one click install
MaxTheGeeek Mar 25, 2025
b91d64c
REFACTOR: drawer services for op
MaxTheGeeek Mar 25, 2025
9415a47
ADD: disabled switch network for all op networks
MaxTheGeeek Mar 25, 2025
8a0a11d
REMOVE: logs
MaxTheGeeek Mar 25, 2025
3545fd7
FIX: replace gradine by changing the validator
MaxTheGeeek Mar 26, 2025
5531f7a
FIX: replace validator plugin for selected grandine
MaxTheGeeek Mar 26, 2025
62bcab8
FIX: font size by name length
MaxTheGeeek Mar 26, 2025
d87b39e
REFACTOR: font size by word length
MaxTheGeeek Mar 26, 2025
308f7b2
RERACTOR: possible clients for op setups
MaxTheGeeek Mar 27, 2025
fb9b599
ADD: op icons
MaxTheGeeek Mar 27, 2025
b37b774
REFACTOR: enhance switch client logic for op
MaxTheGeeek Mar 27, 2025
14c730d
REFACTOR: improve switch network logic for op
MaxTheGeeek Mar 27, 2025
1d3a0c7
REFACTOR: improve network modal styles
MaxTheGeeek Mar 27, 2025
92df9dd
REFACTOR: improve styles
MaxTheGeeek Mar 27, 2025
e47b4a7
Merge branch 'main' into opt
gbayasgalan Mar 27, 2025
febf847
FIX: format
gbayasgalan Mar 27, 2025
806b053
ADD: connect op geth and op erigon to l2
MaxTheGeeek Mar 27, 2025
e33fbab
Merge branch 'opt' of https://github.com/gbayasgalan/ethereum-node in…
MaxTheGeeek Mar 27, 2025
9e77aca
FIX: format
MaxTheGeeek Mar 27, 2025
15a69b1
REFACTOR: modal animation
MaxTheGeeek Mar 27, 2025
4a7d99e
FIX: grandine network for op
gbayasgalan Mar 28, 2025
b204c8e
ADD: connect clients emit in config body
MaxTheGeeek Mar 28, 2025
8f12d94
ADD: op icons
MaxTheGeeek Mar 28, 2025
3fd0652
FIX: remove opReth from op+eth full
MaxTheGeeek Mar 28, 2025
b3ba50d
FIX: format
MaxTheGeeek Mar 28, 2025
a82637c
FIX: auto detect setup type on creating setup
MaxTheGeeek Mar 28, 2025
6ad496a
FIX: format
MaxTheGeeek Mar 28, 2025
e0eff5b
ADD: op executions connect btn to l2
MaxTheGeeek Mar 28, 2025
e15d579
REMOVE: logs
MaxTheGeeek Mar 28, 2025
6b002a2
FIX: op execution switch client
gbayasgalan Mar 28, 2025
a32a007
ADD: op-execution dependencies
gbayasgalan Mar 28, 2025
3a7a7b6
FIX: control page sync missing icons
MaxTheGeeek Mar 31, 2025
6eedd95
FIX: activate connect btn on sepolia setup
MaxTheGeeek Mar 31, 2025
7f23536
Merge branch 'opt' of https://github.com/gbayasgalan/ethereum-node in…
MaxTheGeeek Mar 31, 2025
b8ddc00
FIX: op presets
gbayasgalan Mar 31, 2025
3bbf8b8
FIX: conflict prometheus config
gbayasgalan Mar 31, 2025
81fc935
FIX: conflict ssvNOMService
gbayasgalan Mar 31, 2025
e920312
Merge branch 'main' into opt
gbayasgalan Mar 31, 2025
8c6d1af
FIX: array syntax
gbayasgalan Mar 31, 2025
b1d7e6a
FIX: change back to main branch
gbayasgalan Mar 31, 2025
6b2fa28
FIX: lint
MaxTheGeeek Mar 31, 2025
b799069
Merge branch 'opt' of https://github.com/gbayasgalan/ethereum-node in…
MaxTheGeeek Mar 31, 2025
7b04546
FIX: remove logs
gbayasgalan Mar 31, 2025
3f13afc
Merge branch 'opt' of https://github.com/gbayasgalan/ethereum-node in…
gbayasgalan Mar 31, 2025
2236330
Merge branch 'stereum-dev:main' into opt
gbayasgalan Apr 2, 2025
b083c64
Merge branch 'main' into opt
MaxTheGeeek Apr 2, 2025
8df7d78
FIX: format
gbayasgalan Apr 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17,912 changes: 17,912 additions & 0 deletions controls/roles/manage-service/files/grafana/OpGethService/dashboards/op_geth.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
- name: Check if op-reth db exists
ansible.builtin.stat:
path: "{{ stereum_service_configuration.volumes | select('search', ':/op-reth') | first | split(':') | first }}/db"
register: op_reth_db

- name: Initialize Optimism Reth database
block:
- name: Gather installed package facts
ansible.builtin.package_facts:
manager: auto

- name: Install MegaTools and zstd (Debian)
ansible.builtin.apt:
name:
- megatools
- zstd
state: present
when: ansible_os_family == "Debian" and ('megatools' not in ansible_facts.packages or 'zstd' not in ansible_facts.packages)

- name: Install MegaTools and zstd (CentOS)
ansible.builtin.yum:
name:
- megatools
- zstd
state: present
when: ansible_os_family == "RedHat" and ('megatools' not in ansible_facts.packages or 'zstd' not in ansible_facts.packages)

- name: Set data directory variable
ansible.builtin.set_fact:
op_reth_datadir: "{{ stereum_service_configuration.volumes | select('search', ':/op-reth') | first | split(':') | first }}"

- name: Download state snapshot at Bedrock
ansible.builtin.command:
cmd: megadl "https://mega.nz/file/GdZ1xbAT#a9cBv3AqzsTGXYgX7nZc_3fl--tcBmOAIwIA5ND6kwc"
args:
chdir: "{{ op_reth_datadir }}"

- name: Extract state file
ansible.builtin.shell:
cmd: "zstd -d -o {{ op_reth_datadir }}/world_trie_state.jsonl {{ op_reth_datadir }}/*.jsonl.zst"

- name: Import state snapshot at Bedrock
community.docker.docker_container:
name: "op-reth-init"
image: "{{ stereum_service_configuration.image }}"
hostname: "op-reth-init"
user: "{{ stereum_service_configuration.user }}"
env: "{}"
command:
- "init-state"
- "--without-ovm"
- "--chain"
- "optimism"
- "--datadir"
- "/op-reth"
- "/op-reth/world_trie_state.jsonl"
entrypoint: "{{ stereum_service_configuration.entrypoint }}"
restart_policy: "no"
state: started
volumes:
- "{{ stereum_service_configuration.volumes | select('search', ':/op-reth') | first }}"
log_driver: "json-file"
log_options:
max-file: "10"
max-size: "100m"
auto_remove: true
failed_when: false
become: true

- name: Wait till op-reth-init container stopped (max 30 min)
command: "docker ps"
register: stereum_docker_ps
until:
- stereum_docker_ps.stdout.find("op-reth-init") == -1
retries: 180
delay: 10
changed_when: false

- name: Remove temporary files
ansible.builtin.file:
path: "{{ item }}"
state: absent
with_fileglob:
- "{{ op_reth_datadir }}/*.jsonl"
- "{{ op_reth_datadir }}/*.jsonl.zst"
become: true
when: not op_reth_db.stat.exists
#EOF
19 changes: 13 additions & 6 deletions controls/roles/manage-service/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,19 @@
recurse: yes
changed_when: false
become: yes

when:
- (stereum.manage_service.state == "started" or stereum.manage_service.state == "restarted")
- item.split(':') | first != '/'
- item.split(':') | first != '/sys'
- item.split(':') | first != '/proc'
- not (stereum_service_configuration.service == "NimbusValidatorService" and item.split(':') | last == '/opt/app/secrets') # ignoring this bc nimbus validator sets this directory to 0600
with_items: "{{ stereum_service_configuration.volumes | reject('search', ':/engine.jwt|:/execution/engine.jwt') }}"
with_items: "{{ stereum_service_configuration.volumes | reject('search', ':/engine.jwt|:/execution/engine.jwt|:/op-engine.jwt') }}"


- name: Set directory permissions for engine.jwt
file:
path: "{{ item.split(':') | first | replace('/engine.jwt', '') | replace('/execution/engine.jwt', '') }}"
path: "{{ item.split(':') | first | replace('/engine.jwt', '') | replace('/execution/engine.jwt', '') | replace('/op-engine.jwt', '') }}"
state: directory
owner: "{{ stereum_service_configuration.user }}"
group: "{{ stereum_service_configuration.user }}"
Expand All @@ -66,7 +68,7 @@
changed_when: false
become: yes
when: stereum.manage_service.state == "started" or stereum.manage_service.state == "restarted"
with_items: "{{ stereum_service_configuration.volumes | select('search', ':/engine.jwt|:/execution/engine.jwt') }}"
with_items: "{{ stereum_service_configuration.volumes | select('search', ':/engine.jwt|:/execution/engine.jwt|:/op-engine.jwt') }}"

- name: Stereum's docker network
docker_network:
Expand Down Expand Up @@ -103,15 +105,15 @@
copy:
# besu prevents the use of tokens starting with '0x', so we start always with 'ff'
content: "ff{{ query('community.general.random_string', override_all=hex_chars, length=62) | first }}"
dest: "{{ stereum_service_configuration.volumes | select('search', ':/engine.jwt|/execution/engine.jwt') | first | split(':') | first }}"
dest: "{{ stereum_service_configuration.volumes | select('search', ':/engine.jwt|/execution/engine.jwt|:/op-engine.jwt') | first | split(':') | first }}"
force: no
mode: 0444
vars:
hex_chars: "0123456789abcdef"
become: yes
when:
- stereum_service_configuration.service in ['BesuService', 'GethService', 'RethService', 'NethermindService', 'ErigonService', 'LighthouseBeaconService', 'NimbusBeaconService', 'PrysmBeaconService', 'TekuBeaconService', 'LodestarBeaconService']
- stereum_service_configuration.volumes | select('search', ':/engine.jwt|/execution/engine.jwt') | length > 0
- stereum_service_configuration.service in ['BesuService', 'GethService', 'RethService', 'NethermindService', 'ErigonService', 'LighthouseBeaconService', 'NimbusBeaconService', 'PrysmBeaconService', 'TekuBeaconService', 'LodestarBeaconService', 'OpGethService', 'OpErigonService', 'OpRethService']
- stereum_service_configuration.volumes | select('search', ':/engine.jwt|/execution/engine.jwt|:/op-engine.jwt') | length > 0

- include_tasks: write-graffiti-files.yml
when: >
Expand All @@ -137,6 +139,11 @@
stereum_service_configuration.service is match("NimbusBeaconService") and
(stereum.manage_service.state == "started" or stereum.manage_service.state == "restarted")

- include_tasks: import-state-snapshot-opreth.yml
when: >
(stereum_service_configuration.service is match("OpRethService") and stereum_service_configuration.network is match("op-mainnet")) and
(stereum.manage_service.state == "started" or stereum.manage_service.state == "restarted")

- name: Start service
community.docker.docker_container:
command_handling: correct
Expand Down
31 changes: 31 additions & 0 deletions controls/roles/manage-service/templates/prometheus.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,37 @@ scrape_configs:
{% endif %}
]

# op-geth
- job_name: op-geth
metrics_path: /debug/metrics/prometheus
static_configs:
- targets: [
{% set targets = [] %}
{%- for service_config in service_configs.results %}
{%- if (service_config.content | b64decode | from_yaml).service == "OpGethService" %}
{%- set _ = targets.append("stereum-" ~ (service_config.content | b64decode | from_yaml).id ~ ":6060") %}
{%- endif %}
{% endfor %}
{% if targets %}
"{{ targets | join('",\n "') }}"
{% endif %}
]

# op-node beacon
- job_name: op_node_beacon
static_configs:
- targets: [
{% set targets = [] %}
{%- for service_config in service_configs.results %}
{%- if (service_config.content | b64decode | from_yaml).service == "OpNodeBeaconService" %}
{%- set _ = targets.append("stereum-" ~ (service_config.content | b64decode | from_yaml).id ~ ":7300") %}
{%- endif %}
{% endfor %}
{% if targets %}
"{{ targets | join('",\n "') }}"
{% endif %}
]

# SSVNOMService
- job_name: ssvnoms_fast_metrics
scrape_interval: 60s
Expand Down
1 change: 1 addition & 0 deletions launcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/typography": "^0.5.16",
"@vue/cli-service": "^5.0.8",
"@vue/compiler-sfc": "^3.5.13",
"@vue/test-utils": "^2.4.6",
"@vue/vue3-jest": "^29.2.6",
"@vueuse/core": "^12.7.0",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading