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-13111 disable new postgresql collectors. #3111

Merged
merged 12 commits into from
Aug 26, 2024

Conversation

BupycHuk
Copy link
Member

PMM-13111

Link to the Feature Build: SUBMODULES-3677

If this PR adds or removes or alters one or more API endpoints, please review and add or update the relevant API documents as well:

  • API Docs updated

If this PR is related to some other PRs in this or other repositories, please provide links to those PRs:

  • Links to related pull requests (optional).

@BupycHuk BupycHuk marked this pull request as ready for review July 31, 2024 13:42
@BupycHuk BupycHuk requested a review from a team as a code owner July 31, 2024 13:42
@BupycHuk BupycHuk requested review from idoqo and JiriCtvrtka and removed request for a team July 31, 2024 13:42
Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.36%. Comparing base (def848f) to head (780f664).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3111      +/-   ##
==========================================
+ Coverage   43.34%   43.36%   +0.01%     
==========================================
  Files         399      399              
  Lines       41654    41657       +3     
==========================================
+ Hits        18056    18063       +7     
+ Misses      21582    21580       -2     
+ Partials     2016     2014       -2     
Flag Coverage Δ
managed 44.41% <100.00%> (+0.01%) ⬆️

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.

@BupycHuk
Copy link
Member Author

BupycHuk commented Aug 5, 2024

@idoqo PTAL ^

// DisableDefaultEnabledCollectors returns CLI arguments to disable default enabled collectors based on input.
// DefaultCollectors and disabledCollectors should be collector names without prefix.
// Result will be returned with prefix.
func DisableDefaultEnabledCollectors(prefix string, defaultCollectors []string, disabledCollectors []string) []string {
Copy link
Contributor

Choose a reason for hiding this comment

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

Considering we always use --no-collector as prefix for disabling collectors, should we just make it a constant and drop the prefix parameter?

Suggested change
func DisableDefaultEnabledCollectors(prefix string, defaultCollectors []string, disabledCollectors []string) []string {
func DisableDefaultEnabledCollectors(defaultCollectors []string, disabledCollectors []string) []string {

@BupycHuk BupycHuk requested a review from a team as a code owner August 21, 2024 09:42
@ademidoff ademidoff enabled auto-merge (squash) August 26, 2024 17:09
@ademidoff ademidoff merged commit 3d20f7d into main Aug 26, 2024
7 checks passed
@ademidoff ademidoff deleted the PMM-13111-ability-to-disable-postgres-collectors branch August 26, 2024 17:16
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.

5 participants