Search code examples
amazon-s3grafanabucketgrafana-loki

Grafana Loki Helm Chart - Where to define the AWS S3 bucket name in the values.yaml file


I tried defining the bucket name under:

https://github.com/grafana/loki/blob/67c0b3ed2c1574db85673b796080aa87517b07d7/production/helm/loki/values.yaml#L219 but its throwing invalid bucket name

  storage:
    bucketNames:
      chunks: chunks
      ruler: ruler
      admin: admin
    type: s3
    s3:
      s3: null
      endpoint: null
      region: null
      secretAccessKey: null
      accessKeyId: null
      s3ForcePathStyle: false
      insecure: false
      http_config: {}

I have created an S3 bucket and using the service account to provide access to the bucket.

Can some one help me with how you have used the S3 bucket using the new helm chart


Solution

  • You can pass the bucket details as below. Either you can use the single bucket for chunk, ruler and admin or you can use different buckets.

    loki:
      storage:
        bucketNames:
          chunks: aws-bucket-name
          ruler: aws-bucket-name
          admin: aws-bucket-name
        type: s3
        s3:
          region: aws-region
      auth_enabled: false