Skip to content
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

Add node 'ENABLE_METRICS=true' environment override #210

Merged
merged 3 commits into from
Aug 9, 2022

Conversation

benv666
Copy link
Contributor

@benv666 benv666 commented Jun 1, 2022

In the #support channel on discord we had a discussion on enabling metrics for a standalone prometheus setup.
See rocket-pool/smartnode-install#67 for how this used to work.

However, it seems that this method broke on the node part, since that no longer starts the metrics server when it's disabled in the configuration file. This patch adds an override check to see if the ENABLE_METRICS is set to true, and if so starts it anyway.

Alternatively this might be patched in through a separate configuration option, but I'll leave that to Joe :)

@jshufro
Copy link
Contributor

jshufro commented Jun 1, 2022

hmm shouldn't the environment variables be opaquely referenced in the config abstraction layer?

@jclapis
Copy link
Member

jclapis commented Aug 9, 2022

hmm shouldn't the environment variables be opaquely referenced in the config abstraction layer?

Yes, they should, but I have to think harder about how to do that in a way that gives people fine-grained control over the metrics. I'll merge this for now so Ben can at least make it work properly, and robustify the metrics config in a later release.

@jclapis jclapis merged commit 3803c55 into rocket-pool:master Aug 9, 2022
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.

3 participants