diff --git a/helm/fuel-streams-publisher/Chart.yaml b/helm/fuel-streams-publisher/Chart.yaml index 3272dbdb..c5161e82 100644 --- a/helm/fuel-streams-publisher/Chart.yaml +++ b/helm/fuel-streams-publisher/Chart.yaml @@ -13,7 +13,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.3.5 +version: 0.3.6 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. diff --git a/helm/fuel-streams-publisher/templates/service.yaml b/helm/fuel-streams-publisher/templates/service.yaml index 49c7f6fe..f5f568a3 100644 --- a/helm/fuel-streams-publisher/templates/service.yaml +++ b/helm/fuel-streams-publisher/templates/service.yaml @@ -13,5 +13,9 @@ spec: targetPort: http protocol: TCP name: http + - port: {{ .Values.service.metrics_port }} + targetPort: metrics + protocol: TCP + name: metrics selector: {{- include "fuel-streams-publisher.selectorLabels" . | nindent 4 }} diff --git a/helm/fuel-streams-publisher/templates/statefulset.yaml b/helm/fuel-streams-publisher/templates/statefulset.yaml index 14d9f6c3..edd0d32f 100644 --- a/helm/fuel-streams-publisher/templates/statefulset.yaml +++ b/helm/fuel-streams-publisher/templates/statefulset.yaml @@ -16,6 +16,9 @@ spec: metadata: {{- with .Values.podAnnotations }} annotations: + prometheus.io/scrape: "true" + prometheus.io/port: "{{ .Values.service.metrics_port }}" + prometheus.io/path: "/metrics" {{- toYaml . | nindent 8 }} {{- end }} labels: @@ -45,6 +48,9 @@ spec: - name: http containerPort: {{ .Values.service.port }} protocol: TCP + - name: metrics + containerPort: {{ .Values.service.metrics_port }} + protocol: TCP livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/fuel-streams-publisher/values.yaml b/helm/fuel-streams-publisher/values.yaml index 25cde3ee..ac24dfc0 100644 --- a/helm/fuel-streams-publisher/values.yaml +++ b/helm/fuel-streams-publisher/values.yaml @@ -41,6 +41,7 @@ securityContext: service: type: ClusterIP port: 3000 + metrics_port: 9000 ingress: enabled: false