Increase Prometheus and Loki data retention
Prometheus: 15d → 10y (3650d), PVC 20Gi → 200Gi Loki: 31d (744h) → 365d (8760h), PVC 20Gi → 50Gi Indri has 1.6 TB free on the minikube backing disk — the previous 15-day Prometheus retention was losing valuable long-term metrics data. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
50d3b3b21e
commit
ef199b70f0
4 changed files with 5 additions and 4 deletions
|
|
@ -40,7 +40,7 @@ storage_config:
|
||||||
cache_location: /loki/tsdb-cache
|
cache_location: /loki/tsdb-cache
|
||||||
|
|
||||||
limits_config:
|
limits_config:
|
||||||
retention_period: 744h # 31 days
|
retention_period: 8760h # 365 days
|
||||||
|
|
||||||
compactor:
|
compactor:
|
||||||
working_directory: /loki/compactor
|
working_directory: /loki/compactor
|
||||||
|
|
|
||||||
|
|
@ -63,4 +63,4 @@ spec:
|
||||||
accessModes: ["ReadWriteOnce"]
|
accessModes: ["ReadWriteOnce"]
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 20Gi
|
storage: 50Gi
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ spec:
|
||||||
args:
|
args:
|
||||||
- --config.file=/etc/prometheus/prometheus.yml
|
- --config.file=/etc/prometheus/prometheus.yml
|
||||||
- --storage.tsdb.path=/prometheus
|
- --storage.tsdb.path=/prometheus
|
||||||
- --storage.tsdb.retention.time=15d
|
- --storage.tsdb.retention.time=3650d
|
||||||
- --web.enable-remote-write-receiver
|
- --web.enable-remote-write-receiver
|
||||||
- --web.enable-lifecycle
|
- --web.enable-lifecycle
|
||||||
ports:
|
ports:
|
||||||
|
|
@ -65,4 +65,4 @@ spec:
|
||||||
accessModes: ["ReadWriteOnce"]
|
accessModes: ["ReadWriteOnce"]
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 20Gi
|
storage: 200Gi
|
||||||
|
|
|
||||||
1
docs/changelog.d/+increase-retention.infra.md
Normal file
1
docs/changelog.d/+increase-retention.infra.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Increase data retention: Prometheus 15d → 10y (200Gi), Loki 31d → 365d (50Gi)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue