feat: Database_observability.mysql: support excluding schemas in all collectors#5350
Merged
cristiangreco merged 1 commit intomainfrom Jan 27, 2026
Merged
Conversation
6018db1 to
198112f
Compare
cristiangreco
commented
Jan 26, 2026
Comment on lines
-1908
to
-1912
| "some_schema", | ||
| "some_digest1", | ||
| "select * from some_table where id = 1", | ||
| lastSeen, | ||
| ).AddRow( |
Contributor
Author
There was a problem hiding this comment.
Removed because now with exclude_schemas we don't expect to fetch queries that belong to some_schema.
…collectors Propagate `exclude_schemas` configuration to all MySQL collectors and append the user-defined schemas to the default excluded schemas. Additionally, change the behaviour of explain_plans collector to skip queries from excluded schemas instead of processing them.
198112f to
69df4a0
Compare
Draft
cristiangreco
added a commit
that referenced
this pull request
Jan 27, 2026
…ll collectors Propagate `exclude_databases` configuration to all PostgreSQL collectors and append the user-defined databases to the default excluded databases. Additionally, change the behaviour of `explain_plans` collector to skip queries from excluded databases instead of processing them. Followup of #5350
3 tasks
cristiangreco
added a commit
that referenced
this pull request
Jan 27, 2026
…ll collectors Propagate `exclude_databases` configuration to all PostgreSQL collectors and append the user-defined databases to the default excluded databases. Additionally, change the behaviour of `explain_plans` collector to skip queries from excluded databases instead of processing them. Followup of #5350
cristiangreco
added a commit
that referenced
this pull request
Jan 27, 2026
…ll collectors Propagate `exclude_databases` configuration to all PostgreSQL collectors and append the user-defined databases to the default excluded databases. Additionally, change the behaviour of `explain_plans` collector to skip queries from excluded databases instead of processing them. Followup of #5350
cristiangreco
added a commit
that referenced
this pull request
Jan 27, 2026
…ll collectors Propagate `exclude_databases` configuration to all PostgreSQL collectors and append the user-defined databases to the default excluded databases. Additionally, change the behaviour of `explain_plans` collector to skip queries from excluded databases instead of processing them. Followup of #5350
cristiangreco
added a commit
that referenced
this pull request
Jan 28, 2026
…ollectors Propagate `exclude_databases` configuration to all PostgreSQL collectors and append the user-defined databases to the default excluded databases. Additionally, change the behaviour of `explain_plans` collector to skip queries from excluded databases instead of processing them. Followup of #5350
cristiangreco
added a commit
that referenced
this pull request
Jan 28, 2026
…ollectors Propagate `exclude_databases` configuration to all PostgreSQL collectors and append the user-defined databases to the default excluded databases. Additionally, change the behaviour of `explain_plans` collector to skip queries from excluded databases instead of processing them. Followup of #5350
cristiangreco
added a commit
that referenced
this pull request
Jan 28, 2026
…ollectors Propagate `exclude_databases` configuration to all PostgreSQL collectors and append the user-defined databases to the default excluded databases. Additionally, change the behaviour of `explain_plans` collector to skip queries from excluded databases instead of processing them. Followup of #5350
cristiangreco
added a commit
that referenced
this pull request
Jan 28, 2026
…ollectors Propagate `exclude_databases` configuration to all PostgreSQL collectors and append the user-defined databases to the default excluded databases. Additionally, change the behaviour of `explain_plans` collector to skip queries from excluded databases instead of processing them. Followup of #5350
cristiangreco
added a commit
that referenced
this pull request
Jan 28, 2026
…ollectors (#5366) ### Brief description of Pull Request Propagate `exclude_databases` configuration to all PostgreSQL collectors and append the user-defined databases to the default excluded databases. Additionally, change the behaviour of `explain_plans` collector to skip queries from excluded databases instead of processing them. Followup of #5350 ### Pull Request Details <!-- Add a more detailed descripion of the Pull Request here, if needed. --> ### Issue(s) fixed by this Pull Request <!-- Uncomment the following line and fill in an issue number if you want a GitHub issue to be closed automatically when this PR gets merged. --> <!-- Fixes #issue_id --> ### Notes to the Reviewer <!-- Add any relevant notes for the reviewers and testers of this PR. --> ### PR Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] Documentation added - [x] Tests updated - [ ] Config converters updated
grafana-alloybot bot
pushed a commit
that referenced
this pull request
Jan 28, 2026
…collectors (#5350) ### Brief description of Pull Request Propagate `exclude_schemas` configuration to all MySQL collectors and append the user-defined schemas to the default excluded schemas. Additionally, change the behaviour of explain_plans collector to skip queries from excluded schemas instead of processing them. ### Pull Request Details <!-- Add a more detailed descripion of the Pull Request here, if needed. --> ### Issue(s) fixed by this Pull Request <!-- Uncomment the following line and fill in an issue number if you want a GitHub issue to be closed automatically when this PR gets merged. --> <!-- Fixes #issue_id --> ### Notes to the Reviewer <!-- Add any relevant notes for the reviewers and testers of this PR. --> ### PR Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] Documentation added - [x] Tests updated - [ ] Config converters updated (cherry picked from commit d3542bc)
Merged
3 tasks
ptodev
pushed a commit
that referenced
this pull request
Jan 28, 2026
…collectors [backport] (#5380) ## Backport of #5350 This PR backports #5350 to release/v1.13. ### Original PR Author @cristiangreco ### Description ### Brief description of Pull Request Propagate `exclude_schemas` configuration to all MySQL collectors and append the user-defined schemas to the default excluded schemas. Additionally, change the behaviour of explain_plans collector to skip queries from excluded schemas instead of processing them. ### Pull Request Details <!-- Add a more detailed descripion of the Pull Request here, if needed. --> ### Issue(s) fixed by this Pull Request <!-- Uncomment the following line and fill in an issue number if you want a GitHub issue to be closed automatically when this PR gets merged. --> <!-- Fixes #issue_id --> ### Notes to the Reviewer <!-- Add any relevant notes for the reviewers and testers of this PR. --> ### PR Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] Documentation added - [x] Tests updated - [ ] Config converters updated --- *This backport was created automatically.* Co-authored-by: Cristian Greco <cristian@regolo.cc>
grafana-alloybot bot
pushed a commit
that referenced
this pull request
Jan 28, 2026
…ollectors (#5366) ### Brief description of Pull Request Propagate `exclude_databases` configuration to all PostgreSQL collectors and append the user-defined databases to the default excluded databases. Additionally, change the behaviour of `explain_plans` collector to skip queries from excluded databases instead of processing them. Followup of #5350 ### Pull Request Details <!-- Add a more detailed descripion of the Pull Request here, if needed. --> ### Issue(s) fixed by this Pull Request <!-- Uncomment the following line and fill in an issue number if you want a GitHub issue to be closed automatically when this PR gets merged. --> <!-- Fixes #issue_id --> ### Notes to the Reviewer <!-- Add any relevant notes for the reviewers and testers of this PR. --> ### PR Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] Documentation added - [x] Tests updated - [ ] Config converters updated (cherry picked from commit 1fe42db)
Merged
3 tasks
ptodev
pushed a commit
that referenced
this pull request
Jan 28, 2026
…ollectors [backport] (#5383) ## Backport of #5366 This PR backports #5366 to release/v1.13. ### Original PR Author @cristiangreco ### Description ### Brief description of Pull Request Propagate `exclude_databases` configuration to all PostgreSQL collectors and append the user-defined databases to the default excluded databases. Additionally, change the behaviour of `explain_plans` collector to skip queries from excluded databases instead of processing them. Followup of #5350 ### Pull Request Details <!-- Add a more detailed descripion of the Pull Request here, if needed. --> ### Issue(s) fixed by this Pull Request <!-- Uncomment the following line and fill in an issue number if you want a GitHub issue to be closed automatically when this PR gets merged. --> <!-- Fixes #issue_id --> ### Notes to the Reviewer <!-- Add any relevant notes for the reviewers and testers of this PR. --> ### PR Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] Documentation added - [x] Tests updated - [ ] Config converters updated --- *This backport was created automatically.* Co-authored-by: Cristian Greco <cristian@regolo.cc>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brief description of Pull Request
Propagate
exclude_schemasconfiguration to all MySQL collectors and append the user-defined schemas to the default excluded schemas.Additionally, change the behaviour of explain_plans collector to skip queries from excluded schemas instead of processing them.
Pull Request Details
Issue(s) fixed by this Pull Request
Notes to the Reviewer
PR Checklist