Skip to content
Snippets Groups Projects
Commit 6cde930d authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

Merge branch '790-increase-loki-retention-time' into 'master'

Resolve "Increase loki retention time"

Closes #780 and #790

See merge request openappstack/openappstack!407
parents 98561487 f248d335
No related branches found
No related tags found
No related merge requests found
---
# https://github.com/grafana/helm-charts/blob/main/charts/loki-stack/values.yaml
loki:
# https://github.com/grafana/helm-charts/blob/main/charts/loki/values.yaml
enabled: true
resources:
limits:
......@@ -8,8 +10,47 @@ loki:
requests:
cpu: 200m
memory: 90Mi
persistence:
enabled: true
accessModes:
- ReadWriteOnce
size: 10Gi
annotations: {}
# existingClaim:
config:
# 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
storage_config:
boltdb_shipper:
active_index_directory: /data/loki/boltdb-shipper-active
cache_location: /data/loki/boltdb-shipper-cache
cache_ttl: 24h # Can be increased for faster performance over longer query periods, uses more disk space
shared_store: filesystem
filesystem:
directory: /data/loki/chunks
compactor:
working_directory: /data/loki/boltdb-shipper-compactor
shared_store: filesystem
limits_config:
reject_old_samples: true
reject_old_samples_max_age: 168h # 7 days
chunk_store_config:
max_look_back_period: 672h # 28 days
table_manager:
retention_deletes_enabled: true
retention_period: 672h # 28 days
promtail:
# https://github.com/grafana/helm-charts/blob/main/charts/promtail/values.yaml
enabled: true
initContainer:
enabled: true
......
......@@ -3,7 +3,7 @@
cat /var/lib/OpenAppStack/version.txt
kubectl version
kubectl krew version
docker version | grep -B2 Version
kubectl krew list
helm version
helm plugin list
k3s --version
......
......@@ -9,9 +9,10 @@ metadata:
spec:
releaseName: loki-stack
chart:
# https://github.com/grafana/helm-charts/tree/main/charts/loki-stack
repository: https://grafana.github.io/helm-charts
name: loki-stack
version: 2.3.1
version: 2.4.1
valuesFrom:
- secretKeyRef:
name: loki-stack-settings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment