Skip to content

Commit

Permalink
feat: add graffiti (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa authored Dec 13, 2023
1 parent c658c7e commit 21eae3b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/cl/lighthouse/lighthouse_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ def launch(
v_max_cpu,
v_min_mem,
v_max_mem,
validator_node_service_name,
extra_validator_params,
extra_validator_labels,
)
Expand Down Expand Up @@ -391,6 +392,7 @@ def get_validator_config(
v_max_cpu,
v_min_mem,
v_max_mem,
validator_node_service_name,
extra_params,
extra_labels,
):
Expand Down Expand Up @@ -427,6 +429,7 @@ def get_validator_config(
"--metrics-allow-origin=*",
"--metrics-port={0}".format(VALIDATOR_METRICS_PORT_NUM),
# ^^^^^^^^^^^^^^^^^^^ PROMETHEUS CONFIG ^^^^^^^^^^^^^^^^^^^^^
"--graffiti=" + validator_node_service_name,
]

if len(extra_params):
Expand Down
3 changes: 3 additions & 0 deletions src/cl/lodestar/lodestar_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def launch(
v_max_cpu,
v_min_mem,
v_max_mem,
validator_node_service_name,
extra_validator_params,
extra_validator_labels,
)
Expand Down Expand Up @@ -339,6 +340,7 @@ def get_validator_config(
v_max_cpu,
v_min_mem,
v_max_mem,
validator_node_service_name,
extra_params,
extra_labels,
):
Expand Down Expand Up @@ -372,6 +374,7 @@ def get_validator_config(
"--metrics.address=0.0.0.0",
"--metrics.port={0}".format(METRICS_PORT_NUM),
# ^^^^^^^^^^^^^^^^^^^ PROMETHEUS CONFIG ^^^^^^^^^^^^^^^^^^^^^
"--graffiti=" + validator_node_service_name,
]

if len(extra_params) > 0:
Expand Down
3 changes: 2 additions & 1 deletion src/cl/prysm/prysm_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,9 @@ def get_validator_config(
# vvvvvvvvvvvvvvvvvvv METRICS CONFIG vvvvvvvvvvvvvvvvvvvvv
"--disable-monitoring=false",
"--monitoring-host=0.0.0.0",
"--monitoring-port={0}".format(VALIDATOR_MONITORING_PORT_NUM)
"--monitoring-port={0}".format(VALIDATOR_MONITORING_PORT_NUM),
# ^^^^^^^^^^^^^^^^^^^ METRICS CONFIG ^^^^^^^^^^^^^^^^^^^^^
"--graffiti=" + service_name,
]

if len(extra_params) > 0:
Expand Down
3 changes: 3 additions & 0 deletions src/cl/teku/teku_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def launch(
bn_max_mem,
snooper_enabled,
snooper_engine_context,
service_name,
extra_params,
extra_labels,
)
Expand Down Expand Up @@ -190,6 +191,7 @@ def get_config(
bn_max_mem,
snooper_enabled,
snooper_engine_context,
service_name,
extra_params,
extra_labels,
):
Expand Down Expand Up @@ -275,6 +277,7 @@ def get_config(
"--metrics-port={0}".format(METRICS_PORT_NUM),
# ^^^^^^^^^^^^^^^^^^^ METRICS CONFIG ^^^^^^^^^^^^^^^^^^^^^
"--Xtrusted-setup=" + constants.KZG_DATA_DIRPATH_ON_CLIENT_CONTAINER,
"--validators-graffiti=" + service_name,
]

# Depending on whether we're using a node keystore, we'll need to add the validator flags
Expand Down

0 comments on commit 21eae3b

Please sign in to comment.