Use tsdb for loki, set retention for prometheus

main
Alpha Chen 1 year ago
parent 70d83c691e
commit 2b718e4d49
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -55,6 +55,16 @@
index: index:
prefix: index_ prefix: index_
period: 24h period: 24h
# https://grafana.com/docs/loki/latest/operations/storage/tsdb/
- from: 2023-07-17
index:
period: 24h
prefix: index_
object_store: filesystem
schema: v12
store: tsdb
storage_config: storage_config:
filesystem: filesystem:
directory: /data directory: /data

@ -58,6 +58,10 @@
# restart: true # restart: true
name: prometheus name: prometheus
image: prom/prometheus:v2.43.0 image: prom/prometheus:v2.43.0
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.retention.size=5GB
restart: true
user: "{{ prometheus_user.uid }}" user: "{{ prometheus_user.uid }}"
groups: "{{ prometheus_user.group }}" groups: "{{ prometheus_user.group }}"
volumes: volumes:

Loading…
Cancel
Save