forked from ObolNetwork/charon-distributed-validator-node
-
Notifications
You must be signed in to change notification settings - Fork 27
Add ALERT_DISCORD_IDS label and env variable #218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OisinKyne
approved these changes
Dec 11, 2025
OisinKyne
approved these changes
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs .env.sample.network commented out sample env var
# 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`)
#DISCORD_IDS=""
OisinKyne
approved these changes
Jan 7, 2026
OisinKyne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small changes
Hope this isn't too forward. Keen to get everything to rc while i'm on a roll. Signed-off-by: Oisín Kyne <4981644+OisinKyne@users.noreply.github.com>
Signed-off-by: Oisín Kyne <4981644+OisinKyne@users.noreply.github.com>
This was referenced Jan 7, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to ObolNetwork#387
Warning
Breaking Change
This PR changes how metrics are sent to Obol. After this update, you will no longer have to keep stashing and unstashing changes on
prometheus/prometheus.ymlevery update. It will now be generated at runtime by./prometheus/run.sh, and the required variables will be injected into the file from your.env. The steps you need to take to handle this change are described below.If you currently have a locally modified
prometheus/prometheus.yml, make a backup copy of it outside of the repository before upgrading (just in case). Ensure you record the value ofPROM_REMOTE_WRITE_TOKENfrom theauthorization.credentialssection of that file.This token must now be provided via your
.envfile instead of being defined inprometheus.yml. The variablePROM_REMOTE_WRITE_TOKENis present (commented out) in all.env.sample.*files. To configure it, copy the variable to your own.env, uncomment it and set your token, for example:We are now adding a dedicated way to add discord IDs to your deployment, allowing you to be @'d directly by our Obol Agent if there is an issue with your node. Add (uncomment)
ALERT_DISCORD_IDS=in your.env, and specify one or more (with comma separation) IDs. To get the ID that corresponds to your discord account; 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. If you previously changed yourCHARON_NICKNAMEto your discord ID, you can set that back to a human friendly name for your node.If you have any other custom modifications to your original
prometheus.yml, compare it againstprometheus.yml.example, which is now used as the base template for generating the final configuration. Any additional fields or customizations should be added toprometheus.yml.example.With your environment variables set, and any other modifications ported to the
prometheus.yml.examplefile; rundocker compose up -das normal. Confirm that your metrics are being received on the Obol Grafana. Once you have verified that the new Prometheus setup is working as expected, you can safely delete your backup of the oldprometheus.yml.