mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
add prometheus data retention config (#2108)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -464,6 +464,10 @@ server:
|
||||
##
|
||||
terminationGracePeriodSeconds: 300
|
||||
|
||||
## Prometheus data retention period (i.e 360h)
|
||||
##
|
||||
retention: ""
|
||||
|
||||
pushgateway:
|
||||
## If false, pushgateway will not be installed
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user