Skip to content
Snippets Groups Projects
Verified Commit f0296954 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

fix(monitoring): Limit prometheus retention by disk size

This patch adjusts the retention to be either 15 days or 15GB of
straoge, which should help to keep data growth under control.

It might be an idea, to prodive a more longterm metrics storage later
on for a selected subset.

The patch also adjust the pvc size once more to account of the size
settings and makes sure there are 2 GiB of additional headspace.

References:
https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects
parent b0f1141a
Branches
Tags
No related merge requests found
...@@ -175,7 +175,7 @@ spec: ...@@ -175,7 +175,7 @@ spec:
probeSelector: {} probeSelector: {}
probeNamespaceSelector: {} probeNamespaceSelector: {}
retention: 14d retention: 14d
retentionSize: "" retentionSize: 15GB
walCompression: false walCompression: false
paused: false paused: false
replicas: 1 replicas: 1
...@@ -191,7 +191,7 @@ spec: ...@@ -191,7 +191,7 @@ spec:
accessModes: ["ReadWriteOnce"] accessModes: ["ReadWriteOnce"]
resources: resources:
requests: requests:
storage: 10Gi storage: 17Gi
securityContext: securityContext:
runAsGroup: 2000 runAsGroup: 2000
runAsNonRoot: true runAsNonRoot: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment