--- apiVersion: v1 kind: ConfigMap metadata: name: stackspin-loki-values namespace: stackspin data: values.yaml: | # https://github.com/grafana/helm-charts/blob/main/charts/loki/values.yaml resources: limits: cpu: 800m memory: 1024Mi requests: cpu: 300m memory: 512Mi persistence: enabled: true accessModes: - ReadWriteOnce size: 10Gi annotations: {} # Prevent RO filesystem on /tmp # https://open.greenhost.net/stackspin/stackspin/-/issues/1033 # Can get removed once https://github.com/grafana/helm-charts/issues/609 # is fixed also for the loki helm chart. extraVolumes: - name: tmp emptyDir: {} extraVolumeMounts: - name: tmp mountPath: /tmp config: ingester: chunk_idle_period: 30m chunk_block_size: 1048576 chunk_retain_period: 15m # https://github.com/grafana/loki/blob/main/cmd/loki/loki-local-config.yaml # https://grafana.com/docs/loki/latest/operations/storage/retention schema_config: configs: - from: 2021-05-31 store: boltdb-shipper object_store: filesystem schema: v11 index: prefix: index_ period: 24h chunks: period: 24h # https://grafana.com/docs/loki/latest/operations/storage/retention/ limits_config: retention_period: 48h reject_old_samples_max_age: 48h chunk_store_config: max_look_back_period: 48h table_manager: retention_deletes_enabled: true retention_period: 48h compactor: compaction_interval: 10m retention_enabled: true retention_delete_delay: 2h retention_delete_worker_count: 150