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

pkg/prom: implement ApplyConfig #435

Closed
wants to merge 3 commits into from

Conversation

rfratto
Copy link
Member

@rfratto rfratto commented Feb 26, 2021

PR Description

This PR implements ApplyConfig for the Prometheus instance manager.

Which issue(s) this PR fixes

Partial implementation of #147.
Similar PRs: #416, #424, #427.

Notes to the Reviewer

The behavior here is easily the most drastic: changing the scraping service config can only be handled by leaving the cluster, changing the config, and rejoining.

PR Checklist

  • CHANGELOG updated (internal change, not needed)
  • Documentation added (internal change, not needed)
  • Tests updated

pkg/prom/agent.go Outdated Show resolved Hide resolved
Allows for deferring and changing implementation of a Server
Comment on lines +24 to +30
// API can wire HTTP and gRPC routes.
type API struct {
mut sync.Mutex
server *Server
logger log.Logger
scrapingApi *deferredScrapingServiceServer
}
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not really happy with the need to do this. I need to think about updating config within a Server instead.

@rfratto
Copy link
Member Author

rfratto commented Feb 26, 2021

Moving to draft until I'm happier with the state of this.

@rfratto rfratto marked this pull request as draft February 26, 2021 19:46
@rfratto
Copy link
Member Author

rfratto commented Mar 3, 2021

I'm going to close this. This will be superseded by a new PR that accounts for all the other pkg/prom refactoring work that's been going on.

@rfratto rfratto closed this Mar 3, 2021
@rfratto rfratto mentioned this pull request Mar 17, 2021
3 tasks
@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 17, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 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.

1 participant