Skip to content

Support custom endpoint for S3 Chunk Store  #699

Closed
@mizeng

Description

@mizeng

Is your feature request related to a problem? Please describe.
I use Ceph Object Store which has S3 compatible API. However it uses Path style S3 URL like (http://s3endpoint/BUCKET), and it can not support by current Loki.

Loki put the bucket prefixed to the endpoint (Virtual-hosted Style)as the final endpoint (http://BUCKET.s3endpoint), which can not be used here. And I always get error like below:

RequestError: send request failed\ncaused by: Put http://lokitest.<ceph object store>/fake/6c773d64ab8ab7c2%3A16b870e34df%3A16b870e34df%3A5feb2045: dial tcp: lookup lokitest.<object store> on xxxxx:53: no such host

For the details of the 2 styles, reference can be found here

Describe the solution you'd like
Provide a new config to let user choose use Path style or Virtual-hosted Style.
Thanks to the answer in aws/aws-sdk-go#1585.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions