Skip to content

Commit

Permalink
build(repo): Adjust helm chart for Prometheus (#302)
Browse files Browse the repository at this point in the history
* build(repo): Ajust Helm config for prometheus

* build(repo): Bump heml chart version
  • Loading branch information
pedronauck authored Nov 8, 2024
1 parent 8a2fb61 commit 7f1d192
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/fuel-streams-publisher/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions helm/fuel-streams-publisher/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
6 changes: 6 additions & 0 deletions helm/fuel-streams-publisher/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions helm/fuel-streams-publisher/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ securityContext:
service:
type: ClusterIP
port: 3000
metrics_port: 9000

ingress:
enabled: false
Expand Down

0 comments on commit 7f1d192

Please sign in to comment.