Skip to content

fix: Database_observability: reuse cloud provider regexes#5262

Merged
cristiangreco merged 1 commit intomainfrom
cristian/dbo11y-fix-csp-regex
Jan 14, 2026
Merged

fix: Database_observability: reuse cloud provider regexes#5262
cristiangreco merged 1 commit intomainfrom
cristian/dbo11y-fix-csp-regex

Conversation

@cristiangreco
Copy link
Contributor

@cristiangreco cristiangreco commented Jan 14, 2026

Brief description of Pull Request

Consolidate the regexes in a common package and make sure to support Azure privatelink parsing.

Pull Request Details

This is a followup of #5260

Issue(s) fixed by this Pull Request

Notes to the Reviewer

PR Checklist

  • Documentation added
  • Tests updated
  • Config converters updated

Consolidate the regexes in a common package and make sure to support
Azure privatelink parsing.
@cristiangreco cristiangreco marked this pull request as ready for review January 14, 2026 15:23
@cristiangreco cristiangreco requested a review from a team as a code owner January 14, 2026 15:23
@cristiangreco cristiangreco enabled auto-merge (squash) January 14, 2026 15:28
)

var (
RdsRegex = regexp.MustCompile(`(?P<identifier>[^\.]+)\.([^\.]+)\.(?P<region>[^\.]+)\.rds\.amazonaws\.com`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
RdsRegex = regexp.MustCompile(`(?P<identifier>[^\.]+)\.([^\.]+)\.(?P<region>[^\.]+)\.rds\.amazonaws\.com`)
RDSRegex = regexp.MustCompile(`(?P<identifier>[^\.]+)\.([^\.]+)\.(?P<region>[^\.]+)\.rds\.amazonaws\.com`)

@cristiangreco cristiangreco merged commit 6009c54 into main Jan 14, 2026
46 of 47 checks passed
@cristiangreco cristiangreco deleted the cristian/dbo11y-fix-csp-regex branch January 14, 2026 15:45
@grafana-alloybot grafana-alloybot bot mentioned this pull request Jan 14, 2026
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants