From a6097204c7f66424ebcc5b00912f07b66d8bd2af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sun, 6 Dec 2020 02:44:36 +0100 Subject: [PATCH] feat(helm): add option to enable prometheus metrics --- charts/listory/templates/deployment.yaml | 5 +++++ charts/listory/values.yaml | 3 +++ 2 files changed, 8 insertions(+) diff --git a/charts/listory/templates/deployment.yaml b/charts/listory/templates/deployment.yaml index 6005dca..4846aab 100644 --- a/charts/listory/templates/deployment.yaml +++ b/charts/listory/templates/deployment.yaml @@ -61,6 +61,11 @@ spec: value: {{ .Values.sentry.dsn }} {{- end }} + {{- if .Values.prometheus.enabled }} + - name: PROMETHEUS_ENABLED + value: "true" + {{- end }} + securityContext: {{- toYaml .Values.securityContext | nindent 12 }} ports: diff --git a/charts/listory/values.yaml b/charts/listory/values.yaml index a891795..6b949fe 100644 --- a/charts/listory/values.yaml +++ b/charts/listory/values.yaml @@ -86,3 +86,6 @@ auth: sentry: enabled: false dsn: "" + +prometheus: + enabled: false