Skip to content

PMM-14618 Ability to disable collectors for RDS MySQL, PG technology.#5424

Open
JiriCtvrtka wants to merge 20 commits into
v3from
PMM-14618-rds-disable-collectors
Open

PMM-14618 Ability to disable collectors for RDS MySQL, PG technology.#5424
JiriCtvrtka wants to merge 20 commits into
v3from
PMM-14618-rds-disable-collectors

Conversation

@JiriCtvrtka
Copy link
Copy Markdown
Contributor

@JiriCtvrtka JiriCtvrtka commented May 27, 2026

@codecov
Copy link
Copy Markdown

codecov Bot commented May 27, 2026

Codecov Report

❌ Patch coverage is 60.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.18%. Comparing base (d2ea72b) to head (16a09a7).

Files with missing lines Patch % Lines
managed/services/management/rds.go 60.00% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #5424      +/-   ##
==========================================
- Coverage   43.21%   43.18%   -0.03%     
==========================================
  Files         413      413              
  Lines       42282    42288       +6     
==========================================
- Hits        18274    18264      -10     
- Misses      22139    22153      +14     
- Partials     1869     1871       +2     
Flag Coverage Δ
admin 34.94% <ø> (ø)
agent 49.04% <ø> (-0.12%) ⬇️
managed 42.33% <60.00%> (-0.01%) ⬇️
vmproxy 72.41% <ø> (ø)

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JiriCtvrtka
Copy link
Copy Markdown
Contributor Author

@copilot review

Copy link
Copy Markdown
Contributor

Copilot AI commented May 28, 2026

@copilot review

Reviewed the current PR diff and did not find any critical issues that require code changes.

@JiriCtvrtka JiriCtvrtka marked this pull request as ready for review May 28, 2026 09:31
@JiriCtvrtka JiriCtvrtka requested a review from a team as a code owner May 28, 2026 09:31
@JiriCtvrtka JiriCtvrtka requested review from 4nte, ademidoff and maxkondr and removed request for a team May 28, 2026 09:31
@JiriCtvrtka JiriCtvrtka changed the title PMM-14618 Ability to disable collectors for RDS MySQL technology. PMM-14618 Ability to disable collectors for RDS MySQL, PG technology. May 28, 2026
@ademidoff
Copy link
Copy Markdown
Member

Two comments:

  1. collector names are not validated (out of scope). This needs to be mentioned both in the code and in the docs
  2. If a caller sends postgresql_disable_collectors together with engine = MYSQL, the field is silently ignored (and vice versa).

@JiriCtvrtka Do you think it's acceptable or should we add minimal validation for this case?

Comment thread api/management/v1/rds.proto
@JiriCtvrtka
Copy link
Copy Markdown
Contributor Author

JiriCtvrtka commented May 28, 2026

Two comments:

  1. collector names are not validated (out of scope). This needs to be mentioned both in the code and in the docs
  2. If a caller sends postgresql_disable_collectors together with engine = MYSQL, the field is silently ignored (and vice versa).

@JiriCtvrtka Do you think it's acceptable or should we add minimal validation for this case?

@ademidoff

  1. It is not validated even on CLI. If we want to include it should be done for CLI and UI also together, so do we want to create ticket? Sure lets mention it in doc. I will add comment to code.

  2. Do you think it is problem? Since it has prefix for disable_collectors fields with technology? It is ignored which is same behaviour right now for example to wrong collector name, silently ignored.

@JiriCtvrtka JiriCtvrtka requested a review from ademidoff May 28, 2026 15:26
Comment thread api/management/v1/rds.proto
Comment thread api/management/v1/rds.proto
@JiriCtvrtka JiriCtvrtka requested a review from maxkondr June 1, 2026 11:40
@ademidoff
Copy link
Copy Markdown
Member

ademidoff commented Jun 1, 2026

Two comments:

  1. collector names are not validated (out of scope). This needs to be mentioned both in the code and in the docs
  2. If a caller sends postgresql_disable_collectors together with engine = MYSQL, the field is silently ignored (and vice versa).

@JiriCtvrtka Do you think it's acceptable or should we add minimal validation for this case?

@ademidoff

  1. It is not validated even on CLI. If we want to include it should be done for CLI and UI also together, so do we want to create ticket? Sure lets mention it in doc. I will add comment to code.
  2. Do you think it is problem? Since it has prefix for disable_collectors fields with technology? It is ignored which is same behaviour right now for example to wrong collector name, silently ignored.

Reasonable, but if we want to be friendly, a lightweight warning log or a validation error would surface user mistakes earlier. This PR affects the API which is used by many, so letting them know of an unintentional mistake could be worth it.

@JiriCtvrtka
Copy link
Copy Markdown
Contributor Author

Two comments:

  1. collector names are not validated (out of scope). This needs to be mentioned both in the code and in the docs
  2. If a caller sends postgresql_disable_collectors together with engine = MYSQL, the field is silently ignored (and vice versa).

@JiriCtvrtka Do you think it's acceptable or should we add minimal validation for this case?

@ademidoff

  1. It is not validated even on CLI. If we want to include it should be done for CLI and UI also together, so do we want to create ticket? Sure lets mention it in doc. I will add comment to code.
  2. Do you think it is problem? Since it has prefix for disable_collectors fields with technology? It is ignored which is same behaviour right now for example to wrong collector name, silently ignored.

Reasonable, but if we want to be friendly, a lightweight warning log or a validation error would surface user mistakes earlier. This PR affects the API which is used by many, so letting them know of an unintentional mistake could be worth it.

Warn messages added.

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.

6 participants