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: prometheus reporter to accept host option #1221

Merged
merged 5 commits into from
Aug 3, 2023

Conversation

MichaelErmer
Copy link
Contributor

@MichaelErmer MichaelErmer commented Jun 16, 2023

📝 Description

add host option, because listen with only port will lead to node only listening on ipv6 address if ipv4 and ipv6 are enabled.

https://stackoverflow.com/questions/47797322/node-js-server-only-listening-on-ipv6

🎯 Relevant issues

💎 Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

add host option, because listen with only port will lead to node only listening on ipv6 address if ipv4 and ipv6 are enabled.

https://stackoverflow.com/questions/47797322/node-js-server-only-listening-on-ipv6
Copy link
Member

@icebob icebob left a comment

Choose a reason for hiding this comment

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

Please fix the CI.

@MichaelErmer
Copy link
Contributor Author

Please fix the CI.

How? it seems to be some infrastructure problem:

  ● Test suite failed to run

    getaddrinfo EAI_AGAIN test-host

@icebob
Copy link
Member

icebob commented Aug 2, 2023

I don't think so, because the master branch passed and if I fetch this PR, the error appears on my local dev as well.

@MichaelErmer
Copy link
Contributor Author

MichaelErmer commented Aug 2, 2023

I don't think so, because the master branch passed and if I fetch this PR, the error appears on my local dev as well.

Yep, funny issue with node not accepting a host when using the port: 0 feature, fixed!

Just noticed: host: was even used in some tests, but never minded by the reporter 🙂

@MichaelErmer MichaelErmer changed the title Update prometheus.js Update prometheus reporter to accept host option Aug 2, 2023
@MichaelErmer MichaelErmer changed the title Update prometheus reporter to accept host option Fix: prometheus reporter to accept host option Aug 2, 2023
@icebob
Copy link
Member

icebob commented Aug 3, 2023

Nice catch, thanks!

@icebob icebob merged commit 58f51a3 into moleculerjs:master Aug 3, 2023
176 checks passed
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.

2 participants