Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/docs/sources/setup/install/helm/configure-storage/_index.md

1.9 KiB

title menuTitle description aliases weight keywords
Configure storage Configure storage Configuring Loki storage with the Helm Chart. [../../../installation/helm/configure-storage/ ../../../installation/helm/storage] 500 [object store filesystem minio]

Configure storage

The [scalable]({{< relref "../install-scalable" >}}) installation requires a managed object store such as AWS S3 or Google Cloud Storage or a self-hosted store such as Minio. The [single binary]({{< relref "../install-monolithic" >}}) installation can only use the filesystem for storage.

This guide assumes Loki will be installed in one of the modes above and that a values.yaml has been created.

To use a managed object store:

  1. Set the type of storage in values.yaml to gcs or s3.

  2. Configure the storage client under loki.storage.gcs or loki.storage.s3.

To install Minio alongside Loki:

  1. Change the configuration in values.yaml:

    • Enable Minio
    minio:
      enabled: true
    

To grant access to S3 via an IAM role without providing credentials:

  1. Provision an IAM role, policy and S3 bucket as described in [Storage]({{< relref "../../../../storage#aws-deployment-s3-single-store" >}}).

    • If the Terraform module was used note the annotation emitted by terraform output -raw annotation.
  2. Add the IAM role annotation to the service account in values.yaml:

    serviceAccount:
      annotations:
        "eks.amazonaws.com/role-arn": "arn:aws:iam::<account id>:role/<role name>"
    
  3. Configure the storage:

    loki:
      storage:
        type: "s3"
        s3:
          region: eu-central-1
        bucketNames:
          chunks: <bucket name>
          ruler: <bucket name>
          admin: <bucket name>
    

    Note that endpoint, secretAccessKey and accessKeyId have been omitted.