Skip to content

Commit 10c3c9a

Browse files
committed
add new env and label
1 parent 00bf008 commit 10c3c9a

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

.env.sample.holesky

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ MEV_RELAYS=https://0xab78bf8c781c58078c3beb5710c57940874dd96aef2835e7742c866b4c7
196196
# Prometheus service owner used to uniquely identify user from which metrics are pushed.
197197
#SERVICE_OWNER=charon_user
198198

199+
# Discord user IDs for alert notifications (comma-separated).
200+
#ALERT_DISCORD_IDS=
201+
199202
# Uncomment these if you have log exporting with Promtail
200203
# and want to disable log export on a particular container.
201204
#EL_NETHERMIND_PROMTAIL_MONITORED=false

.env.sample.hoodi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ MEV_RELAYS=https://0x98f0ef62f00780cf8eb06701a7d22725b9437d4768bb19b363e882ae871
196196
# Prometheus service owner used to uniquely identify user from which metrics are pushed.
197197
#SERVICE_OWNER=charon_user
198198

199+
# Discord user IDs for alert notifications (comma-separated).
200+
#ALERT_DISCORD_IDS=
201+
199202
# Uncomment these if you have log exporting with Promtail
200203
# and want to disable log export on a particular container.
201204
#EL_NETHERMIND_PROMTAIL_MONITORED=false

.env.sample.mainnet

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ MEV_RELAYS=https://0xa15b52576bcbf1072f4a011c0f99f9fb6c66f3e1ff321f11f461d15e31b
196196
# Prometheus service owner used to uniquely identify user from which metrics are pushed.
197197
#SERVICE_OWNER=charon_user
198198

199+
# Discord user IDs for alert notifications (comma-separated).
200+
#ALERT_DISCORD_IDS=
201+
199202
# Uncomment these if you have log exporting with Promtail
200203
# and want to disable log export on a particular container.
201204
#EL_NETHERMIND_PROMTAIL_MONITORED=false

prometheus/prometheus.yml.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ scrape_configs:
2323
- job_name: "charon"
2424
static_configs:
2525
- targets: ["charon:3620"]
26+
relabel_configs:
27+
- target_label: alert_discord_ids
28+
replacement: "$ALERT_DISCORD_IDS"
29+
2630
- job_name: "lodestar"
2731
static_configs:
2832
- targets: ["lodestar:5064"]

prometheus/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ fi
1414

1515
sed -e "s|\$PROM_REMOTE_WRITE_TOKEN|${PROM_REMOTE_WRITE_TOKEN}|g" \
1616
-e "s|\$SERVICE_OWNER|${SERVICE_OWNER}|g" \
17+
-e "s|\$ALERT_DISCORD_IDS|${ALERT_DISCORD_IDS}|g" \
1718
/etc/prometheus/prometheus.yml.example > /etc/prometheus/prometheus.yml
1819

1920
/bin/prometheus \

0 commit comments

Comments
 (0)