diff --git a/weaviate/templates/weaviateStatefulset.yaml b/weaviate/templates/weaviateStatefulset.yaml index 15bead0d..a5746c6d 100644 --- a/weaviate/templates/weaviateStatefulset.yaml +++ b/weaviate/templates/weaviateStatefulset.yaml @@ -119,6 +119,11 @@ spec: value: {{ .Values.service.name }}-headless.{{ .Release.Namespace }}.svc.cluster.local ports: - containerPort: 8080 + {{- if .Values.env.PROMETHEUS_MONITORING_ENABLED }} + - name: metrics + containerPort: 2112 + protocol: TCP + {{- end }} volumeMounts: - name: weaviate-config mountPath: /weaviate-config diff --git a/weaviate/values.yaml b/weaviate/values.yaml index dbe28647..81853055 100644 --- a/weaviate/values.yaml +++ b/weaviate/values.yaml @@ -111,6 +111,9 @@ env: # The aggressiveness of the Go Garbage Collector. 100 is the default value. GOGC: 100 + # Expose metrics on port 2112 for Prometheus to scrape + PROMETHEUS_MONITORING_ENABLED: false + envSecrets: # modules are extensions to Weaviate, they can be used to support various