Skip to content

Support setting endpoint for Google Cloud Storage (GCS) in Thanos #7862

Open

Description

@antcs

Is your proposal related to a problem?

We need to override the Google API endpoint used by Thanos for GCS storage to ensure usage of GCP regional endpoints.

Describe the solution you'd like

Proposal for a solution:

  1. Add an option which can be used to configure the endpoint for the GCP storage client
  2. Enhance the GCS client to set it using the option.WithEndpoint(...): https://github.com/grafana/thanos/blob/main/scripts/cfggen/main.go
  3. It seems thanos-io/objstore is also used to support common actions with GCS. The functionality should also be added here: https://github.com/thanos-io/objstore/blob/main/providers/gcs/gcs.go

Describe alternatives you've considered

/

Additional context

/

Activity

  1. added
    package: objstoreMark PRs and issues needs to be migrated to thanos-io/objstore
    on Oct 28, 2024
  2. yeya24 commented on Nov 11, 2024

    @yeya24
    Contributor

    I think this is a valid proposal. Help wanted.

  3. Harshyadav02 commented on Sep 23, 2025

    @Harshyadav02

    Hi @antcs I’d like to work on this issue. Could you please assign it to me?

  4. JKrajnik commented on Dec 5, 2025

    @JKrajnik

    Hello, is there already some plan to implement this ?

  5. added a commit that references this issue on Feb 19, 2026
    720271b
  6. added a commit that references this issue on Mar 19, 2026
    34b9f71
  7. HarnageaGabriel commented on Aug 18, 2026

    @HarnageaGabriel

    Picking this up now — will add a custom endpoint config option to the GCS provider in thanos-io/objstore (providers/gcs/gcs.go) wired through option.WithEndpoint(), with docs and tests. Will link the PR here once open.

  8. HarnageaGabriel commented on Aug 18, 2026

    @HarnageaGabriel

    Opened thanos-io/objstore#270 which adds the endpoint config option to the GCS provider (using option.WithEndpoint()), covering both the HTTP and gRPC client paths, with docs and a unit test. No thanos-side code change needed — thanos will pick it up on the next objstore dependency bump after merge/release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions