AETHER-572 Expose prometheus exporter ports for OMEC control plane services
Change-Id: I8a726b94f2bd958a814d229e182d6cf7f1f6feed
diff --git a/omec/omec-control-plane/templates/configmap-mme.yaml b/omec/omec-control-plane/templates/configmap-mme.yaml
index bc5db25..57624c7 100644
--- a/omec/omec-control-plane/templates/configmap-mme.yaml
+++ b/omec/omec-control-plane/templates/configmap-mme.yaml
@@ -6,8 +6,10 @@
{{- if .Values.config.mme.deploy }}
{{- $configJson := index .Values.config.mme.cfgFiles "config.json" }}
+{{- $configJsonMme := index $configJson "mme" }}
{{- $configJsonS6a := index $configJson "s6a" }}
+{{- $_ := .Values.config.mme.prometheus.port | set $configJsonMme "prom_port" -}}
{{- if not (hasKey $configJsonS6a "host") -}}
{{- $_ := tuple "hss" "identity" . | include "omec-control-plane.diameter_endpoint" | set $configJsonS6a "host" -}}
{{- end }}
@@ -84,6 +86,7 @@
mme-run.sh: |
{{ tuple "bin/_mme-run.sh.tpl" . | include "omec-control-plane.template" | indent 4 }}
{{- range $key, $value := .Values.config.mme.cfgFiles }}
- {{ $key }}: {{ toJson $value | quote }}
+ {{ $key }}: |-
+{{ toPrettyJson $value | indent 4 }}
{{- end }}
{{- end }}