Skip to content

Commit

Permalink
Merge pull request #128 from jfchevrette/add_prom_retention
Browse files Browse the repository at this point in the history
Add prometheus retention set to 15d
  • Loading branch information
openshift-merge-robot authored Feb 16, 2019
2 parents 89c7292 + d406e77 commit f833ec8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions jsonnet/telemeter/prometheus/kubernetes.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
serviceAccountName: 'prometheus-' + $._config.prometheus.name,
nodeSelector: { 'beta.kubernetes.io/os': 'linux' },
resources: resources,
retention: '15d',
ruleSelector: selector.withMatchLabels({
role: 'alert-rules',
prometheus: $._config.prometheus.name,
Expand Down
1 change: 1 addition & 0 deletions manifests/prometheus/list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ objects:
resources:
requests:
memory: 400Mi
retention: 15d
ruleSelector:
matchLabels:
prometheus: telemeter
Expand Down
1 change: 1 addition & 0 deletions manifests/prometheus/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ spec:
resources:
requests:
memory: 400Mi
retention: 15d
ruleSelector:
matchLabels:
prometheus: telemeter
Expand Down

0 comments on commit f833ec8

Please sign in to comment.