Skip to main content
Version: Next

Push Metrics to Obol Monitoring

info

This is optional and does not confer any special privileges within the Obol Network.

You may have been provided with Monitoring Credentials used to push distributed validator metrics to Obol's central Prometheus cluster to monitor, analyze, and improve your Distributed Validator Cluster's performance.

The provided credentials needs to be added in prometheus/prometheus.yml replacing $PROM_REMOTE_WRITE_TOKEN and will look like:

obol20tnt8UC...

The updated prometheus/prometheus.yml file should look like:

global:
scrape_interval: 30s # Set the scrape interval to every 30 seconds.
evaluation_interval: 30s # Evaluate rules every 30 seconds.

remote_write:
- url: https://vm.monitoring.gcp.obol.tech/write
authorization:
credentials: obol20tnt8UC-your-credential-here...
write_relabel_configs:
- source_labels: [job]
regex: "charon"
action: keep # Keeps charon metrics and drop metrics from other containers.

scrape_configs:
- job_name: "nethermind"
static_configs:
- targets: ["nethermind:8008"]
- job_name: "lighthouse"
static_configs:
- targets: ["lighthouse:5054"]
- job_name: "charon"
static_configs:
- targets: ["charon:3620"]
- job_name: "lodestar"
static_configs:
- targets: [ "lodestar:5064" ]

After updating and saving the prometheus/prometheus.yml, you must restart the prometheus container for the monitoring credentials to take effect:

docker compose restart prometheus