Skip to content
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

S3 exporter: endpoint documentation / bucket #32774

Closed
dmitryax opened this issue Apr 30, 2024 Discussed in #32766 · 4 comments
Closed

S3 exporter: endpoint documentation / bucket #32774

dmitryax opened this issue Apr 30, 2024 Discussed in #32766 · 4 comments
Labels
exporter/awss3 help wanted Extra attention is needed Stale

Comments

@dmitryax
Copy link
Member

Discussed in #32766

Originally posted by dabcoder April 30, 2024
The S3 exporter documentation states that the endpoint parameter overrides the endpoint used by the exporter instead of constructing it from region and s3_bucket .

Yet in the code there is:

if c.S3Uploader.S3Bucket == "" {
  errs = multierr.Append(errs, errors.New("bucket is required"))
}

However, when the endpoint is provided, it should also contain the S3 bucket, thus I would not expect the s3_bucket to have to be provided and this error to be returned. Am I misunderstanding the config setup here?

@dmitryax dmitryax added exporter/awss3 help wanted Extra attention is needed labels Apr 30, 2024
Copy link
Contributor

Pinging code owners for exporter/awss3: @atoulme @pdelewski. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@atoulme
Copy link
Contributor

atoulme commented May 3, 2024

This is because in some cases (minIO, storJ) I believe the endpoint can be completely different from what s3 expects, and the bucket is dropped.

Yes, we can make bucket required only if endpoint is not set.

dmitryax pushed a commit that referenced this issue Jun 11, 2024
… S3 bucket (#32815)

**Description:**

Discussion:
#32766.

Configuration logic:

- An endpoint is provided, and Region still needs to be provided (as per
the AWS SDK Go config, even though the region can be included in the
endpoint itself). The S3 bucket name is optional.
- An endpoint is not provided, thus region **and** S3 bucket name should
be provided (return an error for each if one of those 2 isn't)

**Link to tracking Issue:** #32774
Copy link
Contributor

github-actions bot commented Jul 3, 2024

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label Jul 3, 2024
@atoulme
Copy link
Contributor

atoulme commented Jul 3, 2024

I think this was addressed by #32815. Closing.

@atoulme atoulme closed this as completed Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter/awss3 help wanted Extra attention is needed Stale
Projects
None yet
Development

No branches or pull requests

2 participants