Skip to content

Commit

Permalink
Add exporter port
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Eisbruch committed Jan 15, 2025
1 parent 23848f0 commit a919369
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: nullplatform-base
description: A Helm chart for deploying the nullplatform base dependencies applications using Kubernetes
type: application
version: 0.0.14
appVersion: "0.0.14"
version: 0.0.15
appVersion: "0.0.15"
dependencies:
- name: metrics-server
version: ^3.12.0 # Use the appropriate version you need
Expand Down
6 changes: 4 additions & 2 deletions charts/base/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ spec:
imagePullPolicy: Always
{{- if .Values.logging.prometheus.enabled }}
ports:
- containerPort: 2021
hostPort: 2021
- containerPort: {{ .Values.logging.prometheus.exporterPort }}
hostPort: {{ .Values.logging.prometheus.exporterPort }}
name: prometheus
protocol: TCP
{{- end }}
Expand Down Expand Up @@ -116,6 +116,8 @@ spec:
{{- end}}
{{- end}}
{{- if .Values.logging.prometheus.enabled }}
- name: PROMETHEUS_PERFORMANCE_METRICS_EXPORTER_PORT
value: {{ .Values.logging.prometheus.exporterPort | quote }}
- name: PROMETHEUS_PERFORMANCE_METRICS_ENABLED
value: 'true'
{{- end}}
Expand Down
1 change: 1 addition & 0 deletions charts/base/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ logging:
image: "public.ecr.aws/nullplatform/k8s-logs-controller:latest"
prometheus:
enabled: false
exporterPort: 2021
gelf:
enabled: false
host: ""
Expand Down

0 comments on commit a919369

Please sign in to comment.