diff --git a/mirrord-operator/templates/deployment.yaml b/mirrord-operator/templates/deployment.yaml index 2423055..fb60c80 100644 --- a/mirrord-operator/templates/deployment.yaml +++ b/mirrord-operator/templates/deployment.yaml @@ -78,6 +78,8 @@ spec: - name: OPERATOR_APPLICATION_PAUSE_AUTO_SYNC value: "true" {{- end }} + - name: OPERATOR_METRICS_ENABLED + value: {{ .Values.operator.metrics | ternary "true" "false" | quote }} - name: OPERATOR_JSON_LOG value: {{ .Values.operator.jsonLog | ternary "true" "false" | quote }} - name: OPERATOR_AGENT_CONFIG @@ -128,6 +130,10 @@ spec: ports: - containerPort: {{ .Values.operator.port }} name: https + {{- if .Values.operator.metrics }} + - containerPort: 9000 + name: metrics + {{- end }} readinessProbe: httpGet: path: /health diff --git a/mirrord-operator/values.yaml b/mirrord-operator/values.yaml index ae3644d..1c26c03 100644 --- a/mirrord-operator/values.yaml +++ b/mirrord-operator/values.yaml @@ -38,6 +38,8 @@ operator: kafkaSplitting: false # Has to be set to `true` in order to use the argocd application auto-sync pause feature. applicationPauseAutoSync: false + # Enable prometheus metrics endpoint + metrics: false # imagePullSecrets: # - name: value