Files
charts/bitnami/postgresql-ha/templates/metrics-configmap.yaml
Martin Kremers 345cc3e5e2 [bitnami/postgresql-ha] Allow using custom metrics for exporter (#6088)
* Allows to use custom metrics for example to track slow queries

Queries can be configured as template var in values.yaml as documented

Signed-off-by: Martin Kremers <info@martinkremers.de>
2021-05-12 09:52:23 +02:00

15 lines
533 B
YAML

{{- if and .Values.metrics.enabled .Values.metrics.customMetrics }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "postgresql.metricsCM" . }}
labels:
{{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
namespace: {{ .Release.Namespace | quote }}
data:
custom-metrics.yaml: {{ toYaml .Values.metrics.customMetrics | quote }}
{{- end }}