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

[Feature Request] Option to open up metrics ports on docker #67

Open
sam-semillia opened this issue Nov 30, 2021 · 1 comment
Open

[Feature Request] Option to open up metrics ports on docker #67

sam-semillia opened this issue Nov 30, 2021 · 1 comment

Comments

@sam-semillia
Copy link

sam-semillia commented Nov 30, 2021

Hi,

I am running Prometheus and Grafana on an external device. Therefore, after upgrading the smartnode stack I need to open the metrics ports each time by hand for

  • eth2
  • node
  • validator
  • watchtower

It would be great, if the installer does not only ask for the port of the respective metrics, but also if the respective metrics port should be exposed in docker, making it available in the network.

Thanks, BR

@benv666
Copy link

benv666 commented Apr 6, 2022

So I had the same situation, before v1.3.0 I manually tinkered with the docker-compose.yml to enable the metrics and map these ports. Today I switched to v1.3.0 and did the same thing using the new override mechanic.
What made me happy was disabling the metrics in the rocketpool service config Monitoring / Metrics part, so it doesn't start prometheus etc.
Then making override snippets in the override folder to allow my prometheus to reach them.
For example this is my override/validator.yml:

version: "3.7"
services:
  validator:
    x-rp-comment: Add your customizations below this line
    environment:
      ENABLE_METRICS: "true"
    ports:
      - "127.0.0.1:9101:9101"

or my override/node.yml:

version: "3.7"
services:
  node:
    x-rp-comment: Add your customizations below this line
    environment:
      - ENABLE_METRICS=true
    ports:
      - "127.0.0.1:9102:9102"

Hope this helps!

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

No branches or pull requests

2 participants