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 14, 2020
1 parent ce77da2 commit d55afa6
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: '__var__(prometheus.spec.config.retention_size)'

grafana:
adminPassword: admin

Expand Down

0 comments on commit d55afa6

Please sign in to comment.