Skip to content

feat: add cluster_name and cluster_peer labels to Prometheus metrics#277

Merged
apham0001 merged 1 commit into
mainfrom
chore/prometheus-cluster-labels
Mar 6, 2026
Merged

feat: add cluster_name and cluster_peer labels to Prometheus metrics#277
apham0001 merged 1 commit into
mainfrom
chore/prometheus-cluster-labels

Conversation

@apham0001
Copy link
Copy Markdown

Summary

  • Move cluster_name and cluster_peer from mev-boost relabel_configs to global external_labels
  • This ensures all remote-written metrics (charon + mev-boost) include these identity labels, not just mev-boost
  • Add missing sed substitutions in run.sh — the variables were referenced in the config but never rendered

Changes

  • prometheus/prometheus.yml.example — add cluster_name and cluster_peer as external labels, remove redundant mev-boost relabel_configs
  • prometheus/run.sh — add sed for $CLUSTER_NAME and $CLUSTER_PEER

Note

The docker-compose.yml already passes CLUSTER_NAME and CLUSTER_PEER to the prometheus container — no change needed there.

Move cluster_name and cluster_peer from mev-boost relabel_configs to
global external_labels so all metrics (charon, mev-boost) include
these identity labels. Also add the missing sed substitutions in
run.sh that were preventing the variables from being rendered.
@apham0001 apham0001 merged commit e374216 into main Mar 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants