From 40e034cd684bd743e30801fd5d37b213c6c5e598 Mon Sep 17 00:00:00 2001 From: Ilya Gorban Date: Sun, 27 Feb 2022 19:19:52 +0200 Subject: [PATCH] add prometheus retention to be configurable --- templates/values.yaml.gotmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/values.yaml.gotmpl b/templates/values.yaml.gotmpl index 892f308..c9e8eec 100644 --- a/templates/values.yaml.gotmpl +++ b/templates/values.yaml.gotmpl @@ -146,7 +146,7 @@ prometheus: externalUrl: https://{{ .Values.cluster }}/prometheus/ routePrefix: /prometheus/ scrapeInterval: 10s - retention: 20d + retention: {{ if hasKey .Values "prometheusRetention" }}{{ .Values.prometheusRetention }}{{ else }}20d{{ end }} additionalScrapeConfigs: {{ readFile "scrape.yaml" | indent 6 }} storageSpec: