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

Refactor startup order to not grab ports when checkConfig is true #357

Merged
merged 1 commit into from
Jan 22, 2021

Conversation

alexanderritola
Copy link
Contributor

This moves the logic pertaining to setting up listeners after the exporter is created and the checkConfig (#263) early exit is evaluated.

In a CI setting, where the goal is to validate the config, setting up listeners seems unnecessary and presents opportunities for unrelated build failures.

I tested a number of startup configurations and I don't believe this breaks anything.

@matthiasr

Signed-off-by: alexanderritola <alexanderritola@users.noreply.github.com>
Copy link
Contributor

@matthiasr matthiasr left a comment

Choose a reason for hiding this comment

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

Good call, thank you very much!

@matthiasr matthiasr merged commit eef7922 into prometheus:master Jan 22, 2021
matthiasr added a commit that referenced this pull request Jan 22, 2021
bring entries into the correct order and prepare to release today

Signed-off-by: Matthias Rampke <matthias@prometheus.io>
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