From cff61584cb1ccec09ea42de54dd44414998a3497 Mon Sep 17 00:00:00 2001 From: Stefan Krenz Date: Fri, 10 Nov 2023 09:50:16 +0100 Subject: [PATCH] feat(ML Monitoring): Add metrics persistance --- charts/prometheus-exporter/templates/_helpers.tpl | 4 +++- charts/prometheus-exporter/templates/deployment.yaml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/prometheus-exporter/templates/_helpers.tpl b/charts/prometheus-exporter/templates/_helpers.tpl index c3b96fd..3e1a497 100644 --- a/charts/prometheus-exporter/templates/_helpers.tpl +++ b/charts/prometheus-exporter/templates/_helpers.tpl @@ -81,8 +81,10 @@ Create the name of the service account to use periodSeconds: 5 resources: {{- toYaml .Values.resources | nindent 4 }} - {{- with .Values.volumeMounts }} volumeMounts: + - name: metric-volume + mountPath: /app/var/metrics/ + {{- with .Values.volumeMounts }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.env }} diff --git a/charts/prometheus-exporter/templates/deployment.yaml b/charts/prometheus-exporter/templates/deployment.yaml index da0d579..4991942 100644 --- a/charts/prometheus-exporter/templates/deployment.yaml +++ b/charts/prometheus-exporter/templates/deployment.yaml @@ -36,6 +36,8 @@ spec: - name: nginx-config-volume configMap: name: {{ include "prometheus-exporter.fullname" . }}-nginx-config + - name: metrics-volume + emptyDir: {} {{- with .Values.volumes }} {{- toYaml . | nindent 8 }} {{- end }}