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 remote write flags into init method #103

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

saswatamcode
Copy link
Contributor

This commit separates the remote write flags into a separate init method similar to serve.
It keeps pprof flag separate as that is a feature to be deprecated.

Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

LGTM, just readability nits, thanks!

cmd/avalanche/avalanche.go Outdated Show resolved Hide resolved
metrics/write.go Outdated Show resolved Hide resolved
config.PprofURLs = *remotePprofURLs
}
// Collect Pprof during the write only if not collecting within a regular interval.
pprofURLs := []*url.URL{}
Copy link
Member

Choose a reason for hiding this comment

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

Happy to kill this feature, now or in later PRs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do it in separate PR!

Signed-off-by: Saswata Mukherjee <[email protected]>
Signed-off-by: Saswata Mukherjee <[email protected]>
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Thanks!

cmd/avalanche/avalanche.go Outdated Show resolved Hide resolved
cmd/avalanche/avalanche.go Outdated Show resolved Hide resolved
Signed-off-by: Saswata Mukherjee <[email protected]>
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Thanks!

@bwplotka bwplotka merged commit 84b8425 into prometheus-community:main Dec 16, 2024
6 checks passed
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