File tree Expand file tree Collapse file tree
memgraph-high-availability/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ apiVersion: monitoring.coreos.com/v1
8080kind : ServiceMonitor
8181metadata :
8282 name : mg-exporter
83- namespace : {{ $.Values.prometheus.namespace }}
83+ namespace : {{ $.Values.prometheus.namespace | default $.Release.Namespace }}
8484 labels :
8585 release : {{ $.Values.prometheus.serviceMonitor.kubePrometheusStackReleaseName }}
8686spec :
9292 interval : {{ $.Values.prometheus.serviceMonitor.interval }}
9393 namespaceSelector :
9494 matchNames :
95- - {{ $.Values.prometheus.namespace }} # This refers to where our service exposing the exporter is located
95+ - {{ $.Values.prometheus.namespace | default $.Release.Namespace }} # This refers to where our service exposing the exporter is located
9696{{- end }}
9797{{- end }}
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ apiVersion: monitoring.coreos.com/v1
7171kind : ServiceMonitor
7272metadata :
7373 name : mg-exporter
74- namespace : {{ .Values.prometheus.namespace }}
74+ namespace : {{ .Values.prometheus.namespace | default .Release.Namespace }}
7575 labels :
7676 release : {{ .Values.prometheus.serviceMonitor.kubePrometheusStackReleaseName }}
7777spec :
8383 interval : {{ .Values.prometheus.serviceMonitor.interval }}
8484 namespaceSelector :
8585 matchNames :
86- - {{ .Values.prometheus.namespace }} # This refers to where our service exposing the exporter is located
86+ - {{ .Values.prometheus.namespace | default .Release.Namespace }} # This refers to where our service exposing the exporter is located
8787{{- end }}
8888{{- end }}
You can’t perform that action at this time.
0 commit comments