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

Implement Applyconfig for Entrypoint #490

Merged
merged 4 commits into from
Mar 25, 2021

Conversation

rfratto
Copy link
Member

@rfratto rfratto commented Mar 25, 2021

PR Description

Implements ApplyConfig for entrypoint.

This required making a few changes to drastically simplify the implementation: all subsystems are now always enabled. This adds very little resource overhead, but makes the logs a little noisier. Prometheus will now only fail to validate if the WAL isn't configured when at least one instance, integration, or the scraping service is configured.

Which issue(s) this PR fixes

Related to #147.

Notes to the Reviewer

This doesn't change the logger to reflect a change in logging level. I'll follow up with a second PR for that.

PR Checklist

  • CHANGELOG updated
  • Documentation added
  • Tests updated

@rfratto rfratto requested a review from mattdurham March 25, 2021 17:04
Copy link
Collaborator

@mattdurham mattdurham left a comment

Choose a reason for hiding this comment

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

Minor comment but LGTM

scrapeIntegration = *common.ScrapeIntegration
}
if scrapeIntegration {
willCreateInstance = true
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you return early here instead of using the willCreateInstance?

Copy link
Member Author

Choose a reason for hiding this comment

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

ah, good point!

@rfratto rfratto merged commit 2099128 into grafana:main Mar 25, 2021
@rfratto rfratto deleted the applyconfig-entrypoint branch March 25, 2021 19:58
@mattdurham mattdurham mentioned this pull request Sep 7, 2021
3 tasks
mattdurham pushed a commit that referenced this pull request Nov 11, 2021
* implement applyconfig for entrypoint

* require WAL when scraping service is enabled

* s/NewEntryPoint/NewEntrypoint

* address review feedback
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Apr 15, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants