-
Notifications
You must be signed in to change notification settings - Fork 442
database_observability: update docs to reflect latest changes in README #4672
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
base: main
Are you sure you want to change the base?
Conversation
|
💻 Deploy preview available (database_observability: update docs to reflect latest changes in README): |
a77729b to
5e8eaf7
Compare
91edbec to
900cf03
Compare
- update docs with fully working example config - make `targets` mandatory
900cf03 to
3223443
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the database observability components to make the targets parameter mandatory and updates all documentation and tests to reflect this change.
Key Changes
- Made
targetsattribute mandatory by removingoptionaltag from component definitions - Added
targets = []to all test configurations to comply with the new requirement - Updated documentation with complete, working example configurations
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
internal/component/database_observability/postgres/component.go |
Removed optional tag from Targets field to make it mandatory |
internal/component/database_observability/postgres/component_test.go |
Added targets = [] to all test configuration strings and removed t.Parallel() calls from two tests |
internal/component/database_observability/mysql/component.go |
Removed optional tag from Targets field to make it mandatory |
internal/component/database_observability/mysql/component_test.go |
Added targets = [] to all test configuration strings, renamed test function, and removed t.Parallel() calls from three tests |
internal/component/database_observability/README.md |
Updated example configuration to remove unnecessary collector and fix targets reference |
docs/sources/reference/components/database_observability/database_observability.postgres.md |
Expanded example with complete working configuration including all required components |
docs/sources/reference/components/database_observability/database_observability.mysql.md |
Expanded example with complete working configuration including all required components |
| } | ||
| discovery.relabel "orders_db" { | ||
| targets = database_observability.mysql.orders_db.targets |
Copilot
AI
Oct 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect component reference: should be database_observability.postgres.orders_db.targets instead of database_observability.mysql.orders_db.targets since this is in the postgres documentation.
| targets = database_observability.mysql.orders_db.targets | |
| targets = database_observability.postgres.orders_db.targets |
PR Description
targetsmandatoryWhich issue(s) this PR fixes
n.a.
Notes to the Reviewer
PR Checklist