Sections in this category

GCP Long Term Storage

Start by creating a new Google Cloud Storage bucket. The following example uses a bucket named thanos-bucket. Next, download a service account JSON file from Google’s service account manager (steps).

Now create a YAML file named object-store.yaml in the following format, using your bucket name and service account details:

type: GCS
  bucket: "thanos-bucket"
  service_account: |-
      "type": "service_account",
      "project_id": "...",
      "private_key_id": "...",
      "private_key": "...",
      "client_email": "...",
      "client_id": "...",
      "auth_uri": "",
      "token_uri": "",
      "auth_provider_x509_cert_url": "",
      "client_x509_cert_url": ""

Note: Because this is a YAML file, it requires this specific indention.

Warning: Do not apply a retention policy to your Thanos bucket, as it will prevent Thanos compaction from completing.

Edit this doc on GitHub