add prometheus data retention config (#2108)

This commit is contained in:
Yago Nobre
2017-09-30 23:50:47 -04:00
committed by Vic Iglesias
parent 8dc146affb
commit 30e93e8b11
4 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
name: prometheus
version: 4.6.1
version: 4.6.2
description: Prometheus is a monitoring system and time series database.
home: https://prometheus.io/
icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/assets/prometheus_logo-cb55bb5c346.png
@@ -9,6 +9,6 @@ sources:
- https://github.com/prometheus/pushgateway
- https://github.com/kubernetes/kube-state-metrics
maintainers:
- name: Michael Goodness
- name: mgoodness
email: mgoodness@gmail.com
engine: gotpl
+1
View File
@@ -176,6 +176,7 @@ Parameter | Description | Default
`server.service.servicePort` | Prometheus server service port | `80`
`server.service.type` | type of Prometheus server service to create | `ClusterIP`
`server.terminationGracePeriodSeconds` | Prometheus server Pod termination grace period | `300`
`server.retention` | (optional) Prometheus data retention | `""`
`serverFiles.alerts` | Prometheus server alerts configuration | `""`
`serverFiles.rules` | Prometheus server rules configuration | `""`
`serverFiles.prometheus.yml` | Prometheus server scrape configuration | example configuration
@@ -42,6 +42,9 @@ spec:
args:
{{- if or .Values.alertmanager.enabled .Values.server.alertmanagerURL }}
- --alertmanager.url={{- if .Values.alertmanager.enabled }}http://{{ template "prometheus.alertmanager.fullname" . }}:{{ .Values.alertmanager.service.servicePort }}{{ .Values.alertmanager.baseURL }}{{- else }}{{ .Values.server.alertmanagerURL }}{{- end }}
{{- end }}
{{- if .Values.server.retention }}
- --storage.local.retention = {{ .Values.server.retention }}
{{- end }}
- --config.file=/etc/config/prometheus.yml
- --storage.local.path={{ .Values.server.persistentVolume.mountPath }}
+4
View File
@@ -464,6 +464,10 @@ server:
##
terminationGracePeriodSeconds: 300
## Prometheus data retention period (i.e 360h)
##
retention: ""
pushgateway:
## If false, pushgateway will not be installed
##