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 info about running Prometheus on a separate host. #291

Merged
merged 32 commits into from
Jun 1, 2021
Merged

Add info about running Prometheus on a separate host. #291

merged 32 commits into from
Jun 1, 2021

Conversation

bgravenorst
Copy link
Contributor

Describe the change

Add info about running Prometheus on a separate host.

Issue fixed

Fixes #290

Signed-off-by: Byron Gravenorst <[email protected]>
!!! important

If running Prometheus on a different host to your Teku node (any host other than `localhost`),
ensure you add the Prometheus host to [`--metrics-host-allowlist`](../../Reference/CLI/CLI-Syntax.md#metrics-host-allowlist)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not the prometheus host that needs to be added, but the hostname that prometheus uses to connect to Teku.

So if prometheus is configured to get metrics from http://teku.local:8008/metrics then teku.local has to be in the metrics host allow list. It doesn't matter what the hostname of the prometheus box is.

Signed-off-by: bgravenorst <[email protected]>
Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@bgravenorst bgravenorst merged commit 236c8ad into Consensys:master Jun 1, 2021
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.

Document using --metrics-host-allowlist
2 participants