grafana / helm-charts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Loki] Issues with Implementing Retention Policy

akramsadab opened this issue · comments

Need help with implementing retention policy.

storage:
bucketNames:
chunks: xxxxx-loki-chunks
ruler: xxxxx-loki-ruler
admin: xxxxxx-loki-admin
type: s3
s3:
region: af-south-1
s3ForcePathStyle: false
insecure: false

compactor:
apply_retention_interval: 1h
working_directory: /data/loki/compactor
shared_store: s3
compaction_interval: 1h
retention_enabled: true
retention_delete_delay: 2h
retention_delete_worker_count: 150
#retention_deletes_enabled: true
#retention_period: 72h # 3 days

schema_config:
configs:
- from: 2020-10-24
store: boltdb-shipper
object_store: s3
schema: v11
index:
prefix: index_
period: 24h

I got error while deploying the loki.

 level=error ts=2024-02-28T06:55:55.837069723Z caller=log.go:230 msg="error running loki" err="mkdir /data: read-only file system\nerror initialising module: compactor\ngithub.com/grafana/dskit/modules.(*Manager).initModule\n\t/src/loki/vendor/github.com/grafana/dskit/modules/modules.go:138\ngithub.com/grafana/dskit/modules.(*Manager).InitModuleServices\n\t/src/loki/vendor/github.com/grafana/dskit/modules/modules.go:108\ngithub.com/grafana/loki/pkg/loki.(*Loki).Run\n\t/src/loki/pkg/loki/loki.go:461\nmain.main\n\t/src/loki/cmd/loki/main.go:110\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:267\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1650"