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

PMM-12422 use public IP for exporters in pull mode #2642

Merged
merged 6 commits into from
Nov 27, 2023

Conversation

idoqo
Copy link
Contributor

@idoqo idoqo commented Nov 24, 2023

PMM-12422

Due to issues with getting metrics when using the node IP, this exposes exporters running in pull mode on the public IP address.

Link to the Feature Build: SUBMODULES-0

Copy link

codecov bot commented Nov 24, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (66f6ecb) 42.61% compared to head (2e6a6da) 42.61%.

Files Patch % Lines
managed/services/agents/state.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2642   +/-   ##
=======================================
  Coverage   42.61%   42.61%           
=======================================
  Files         396      396           
  Lines       49939    49939           
=======================================
  Hits        21283    21283           
  Misses      26665    26665           
  Partials     1991     1991           
Flag Coverage Δ
managed 43.25% <75.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@idoqo idoqo marked this pull request as ready for review November 25, 2023 07:19
@idoqo idoqo requested a review from a team as a code owner November 25, 2023 07:19
@idoqo idoqo requested review from BupycHuk and JiriCtvrtka and removed request for a team November 25, 2023 07:19
@idoqo idoqo changed the title PMM-12422 use PMM agent for node lookup PMM-12422 use public IP for exporters in pull mode Nov 26, 2023
return "127.0.0.1"
default:
Copy link
Member

Choose a reason for hiding this comment

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

It seems like this makes the first case redundant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah true - I wanted to keep the case where exposeExporter is enabled at the top so it overrides anything else.

@idoqo idoqo merged commit 01d08b4 into main Nov 27, 2023
14 checks passed
@idoqo idoqo deleted the PMM-12422-lookup-node-ip branch November 27, 2023 14:20
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.

4 participants