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

fix: bind prometheus exposer to 0.0.0.0 #525

Merged
merged 1 commit into from
Apr 27, 2020
Merged

Conversation

neverchanje
Copy link
Contributor

@neverchanje neverchanje commented Apr 27, 2020

What problem does this PR solve?

The prometheus exposer formerly bound to an external IP address, for example "10.231.52.xxx:9091", and served on the HTTP URL '10.231.52.xxx:9091/metrics'. But it's unable to serve on '0.0.0.0:9091' and '127.0.0.1:9091'. It is therefore inconvenient to set up an onebox environment with prometheus.

This limitation can be resolved by binding to '0.0.0.0:9091' so that '0.0.0.0:9091', '127.0.0.1:9091', '10.231.52.xxx:9091' are all accessible.

Check List

Tests

  • Manual test (add detailed scripts or steps below)

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation
  • Need to be included in the release note

@@ -106,6 +106,17 @@ copy_file `get_system_lib server aio` ${pack}/bin/`get_system_libname server aio
copy_file `get_system_lib server zstd` ${pack}/bin/`get_system_libname server zstd`
copy_file `get_system_lib server lz4` ${pack}/bin/`get_system_libname server lz4`

DISTRIB_ID=$(cat /etc/*-release | grep DISTRIB_ID | awk -F'=' '{print $2}')
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the meaning of these code?

Copy link
Contributor Author

@neverchanje neverchanje Apr 27, 2020

Choose a reason for hiding this comment

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

Because binary on linux distribution based on Debian Wheezy requires dependencies of icudata, icuuc, icui18n. If I build a binary on Ubuntu18.04, and want to distribute it to other platforms, like linux in docker, I need to include the libraries in my package.

See this: wkhtmltopdf/wkhtmltopdf#2242

@hycdong hycdong merged commit fad0c4f into apache:master Apr 27, 2020
@neverchanje neverchanje mentioned this pull request May 14, 2020
@neverchanje neverchanje mentioned this pull request Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants