Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions .env.sample.holesky
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ MEV_RELAYS=https://0xab78bf8c781c58078c3beb5710c57940874dd96aef2835e7742c866b4c7
# Prometheus service owner used to uniquely identify user from which metrics are pushed.
#SERVICE_OWNER=charon_user

# To get Alerted with Obol Agent monitoring on Discord, specify your Discord ID(s) below.
# Enable developer mode on discord with User Settings > Advanced.
# Then right click on a user's profile picture or name and select Copy ID to get a unique 18-digit number that represents their account.
# Specify multiple discord IDs using comma separation. (e.g. `DISCORD_IDS=123456789098765432,098765432123456789`)
#ALERT_DISCORD_IDS=""

# Uncomment these if you have log exporting with Promtail
# and want to disable log export on a particular container.
#EL_NETHERMIND_PROMTAIL_MONITORED=false
Expand Down
6 changes: 6 additions & 0 deletions .env.sample.hoodi
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ MEV_RELAYS=https://0x98f0ef62f00780cf8eb06701a7d22725b9437d4768bb19b363e882ae871
# Prometheus service owner used to uniquely identify user from which metrics are pushed.
#SERVICE_OWNER=charon_user

# To get Alerted with Obol Agent monitoring on Discord, specify your Discord ID(s) below.
# Enable developer mode on discord with User Settings > Advanced.
# Then right click on a user's profile picture or name and select Copy ID to get a unique 18-digit number that represents their account.
# Specify multiple discord IDs using comma separation. (e.g. `DISCORD_IDS=123456789098765432,098765432123456789`)
#ALERT_DISCORD_IDS=""

# Uncomment these if you have log exporting with Promtail
# and want to disable log export on a particular container.
#EL_NETHERMIND_PROMTAIL_MONITORED=false
Expand Down
6 changes: 6 additions & 0 deletions .env.sample.mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ MEV_RELAYS=https://0xa15b52576bcbf1072f4a011c0f99f9fb6c66f3e1ff321f11f461d15e31b
# Prometheus service owner used to uniquely identify user from which metrics are pushed.
#SERVICE_OWNER=charon_user

# To get Alerted with Obol Agent monitoring on Discord, specify your Discord ID(s) below.
# Enable developer mode on discord with User Settings > Advanced.
# Then right click on a user's profile picture or name and select Copy ID to get a unique 18-digit number that represents their account.
# Specify multiple discord IDs using comma separation. (e.g. `DISCORD_IDS=123456789098765432,098765432123456789`)
#ALERT_DISCORD_IDS=""

# Uncomment these if you have log exporting with Promtail
# and want to disable log export on a particular container.
#EL_NETHERMIND_PROMTAIL_MONITORED=false
Expand Down
4 changes: 4 additions & 0 deletions prometheus/prometheus.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ scrape_configs:
- job_name: "charon"
static_configs:
- targets: ["charon:3620"]
relabel_configs:
- target_label: alert_discord_ids
replacement: "$ALERT_DISCORD_IDS"

- job_name: "lodestar"
static_configs:
- targets: ["lodestar:5064"]
Expand Down
1 change: 1 addition & 0 deletions prometheus/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ fi

sed -e "s|\$PROM_REMOTE_WRITE_TOKEN|${PROM_REMOTE_WRITE_TOKEN}|g" \
-e "s|\$SERVICE_OWNER|${SERVICE_OWNER}|g" \
-e "s|\$ALERT_DISCORD_IDS|${ALERT_DISCORD_IDS}|g" \
/etc/prometheus/prometheus.yml.example > /etc/prometheus/prometheus.yml

/bin/prometheus \
Expand Down