Skip to content

Commit

Permalink
chore(helm): make metrics port configurable using helm (#122)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Odenthal <odenthalb@netrtl.com>
  • Loading branch information
odcheck and Ben Odenthal authored Oct 8, 2024
1 parent 251c25b commit 66877a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions chart/templates/DeployType.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
{{- toYaml .Values.resources | nindent 12 }}
ports:
- name: metrics
containerPort: 9100
containerPort: {{ .Values.metrics.port }}
protocol: TCP
{{ if .Values.dev.enabled }}
- name: debug
Expand All @@ -62,7 +62,7 @@ spec:
failureThreshold: 10
httpGet:
path: /metrics
port: 9100
port: {{ .Values.metrics.port }}
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
Expand All @@ -72,7 +72,7 @@ spec:
failureThreshold: 10
httpGet:
path: /metrics
port: 9100
port: {{ .Values.metrics.port }}
scheme: HTTP
periodSeconds: 10
successThreshold: 1
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spec:
{{- include "chart.selectorLabels" . | nindent 6 }}
ports:
- name: metrics
port: 9100
port: {{ .Values.metrics.port }}
protocol: TCP
targetPort: metrics
{{ end }}
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ kubelet:

# -- Set metrics you want to enable
metrics:
# -- Adjust the metric port as needed (default 9100)
port: 9100
# -- Percentage of ephemeral storage used by a container in a pod
ephemeral_storage_container_limit_percentage: true
# -- Current ephemeral storage used by a container's volume in a pod
Expand Down

0 comments on commit 66877a9

Please sign in to comment.