Skip to content

Change default Prometheus host to localhost#8298

Merged
jack-berg merged 3 commits intoopen-telemetry:mainfrom
utafrali:fix/issue-8297-change-default-prometheus-host-from-0-0-
Apr 16, 2026
Merged

Change default Prometheus host to localhost#8298
jack-berg merged 3 commits intoopen-telemetry:mainfrom
utafrali:fix/issue-8297-change-default-prometheus-host-from-0-0-

Conversation

@utafrali
Copy link
Copy Markdown
Contributor

Fixes #8297

Switched default Prometheus host from 0.0.0.0 to localhost for better security isolation. Updated the test assertion to check for localhost variants since the actual address can differ across environments.

@utafrali utafrali requested a review from a team as a code owner April 15, 2026 22:51
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.25%. Comparing base (ca41b47) to head (5479c22).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8298   +/-   ##
=========================================
  Coverage     90.25%   90.25%           
- Complexity     7683     7684    +1     
=========================================
  Files           850      850           
  Lines         23190    23195    +5     
  Branches       2353     2354    +1     
=========================================
+ Hits          20930    20935    +5     
  Misses         1533     1533           
  Partials        727      727           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@jack-berg jack-berg left a comment

Choose a reason for hiding this comment

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

Pushed 5479c22 to add a log to inform users not explicitly setting the host about the change in behavior. Logging at level info so its likely visible, but not needlessly alarming.

@utafrali
Copy link
Copy Markdown
Contributor Author

Looks good, thanks for adding the log.

@jack-berg jack-berg merged commit 741c8db into open-telemetry:main Apr 16, 2026
45 of 47 checks passed
@otelbot
Copy link
Copy Markdown
Contributor

otelbot bot commented Apr 16, 2026

Thank you for your contribution @utafrali! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey.

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.

Change default prometheus host from 0.0.0.0 to localhost

2 participants