Skip to content

Commit

Permalink
charts: Customize Prometheus time and size based retention
Browse files Browse the repository at this point in the history
We set these with special variables that will be
transformed into Jinja template by the chart
renderer script which will allow to customize
these fields at runtime through CSC mechanisms.

Refs: #2953
  • Loading branch information
alexandre-allard committed Dec 15, 2020
1 parent 9c69dd3 commit 7558abe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/kube-prometheus-stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ prometheus:
matchLabels:
app.kubernetes.io/name: prometheus-operator-prometheus

## How long to retain metrics
retention: '__var__(prometheus.spec.config.retention_time)'

## Maximum size of metrics
retentionSize: '__escape__({{ prometheus.spec.config.retention_size | string }})'

grafana:
adminPassword: admin

Expand Down

0 comments on commit 7558abe

Please sign in to comment.