Skip to content

Conversation

@cristiangreco
Copy link
Contributor

PR Description

  • update docs with fully working example config
  • make targets mandatory

Which issue(s) this PR fixes

n.a.

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@github-actions
Copy link
Contributor

github-actions bot commented Oct 24, 2025

💻 Deploy preview available (database_observability: update docs to reflect latest changes in README):

@cristiangreco cristiangreco force-pushed the cristian/dbo11y-update-docs-from-readme branch from a77729b to 5e8eaf7 Compare October 24, 2025 14:17
@cristiangreco cristiangreco marked this pull request as ready for review October 24, 2025 14:33
@cristiangreco cristiangreco requested review from a team and clayton-cornell as code owners October 24, 2025 14:33
@cristiangreco cristiangreco force-pushed the cristian/dbo11y-update-docs-from-readme branch 2 times, most recently from 91edbec to 900cf03 Compare October 24, 2025 15:24
- update docs with fully working example config
- make `targets` mandatory
@cristiangreco cristiangreco force-pushed the cristian/dbo11y-update-docs-from-readme branch from 900cf03 to 3223443 Compare October 24, 2025 15:25
Copy link
Contributor

Copilot AI left a 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 targets attribute mandatory by removing optional tag 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
Copy link

Copilot AI Oct 24, 2025

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.

Suggested change
targets = database_observability.mysql.orders_db.targets
targets = database_observability.postgres.orders_db.targets

Copilot uses AI. Check for mistakes.
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.

1 participant