Skip to content

Commit

Permalink
feat: enable metrics for csi-provisioner
Browse files Browse the repository at this point in the history
  • Loading branch information
hichem-belhocine committed Jun 18, 2024
1 parent 6d8c526 commit 71fa32c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions charts/aws-efs-csi-driver/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,22 @@ spec:
{{- if hasKey .Values.controller "leaderElectionLeaseDuration" }}
- --leader-election-lease-duration={{ .Values.controller.leaderElectionLeaseDuration }}
{{- end }}
{{- if .Values.controller.metrics.enabled }}
- --metrics-address=:{{ .Values.controller.metrics.port }}
- --metrics-path={{ .Values.controller.metrics.path }}
{{- end }}
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
{{- if .Values.controller.metrics.enabled }}
ports:
- name: metrics
containerPort: {{ .Values.controller.metrics.port }}
protocol: TCP
{{- end }}
{{- with .Values.sidecars.csiProvisioner.resources }}
resources: {{ toYaml . | nindent 12 }}
{{- end }}
Expand Down
5 changes: 5 additions & 0 deletions charts/aws-efs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ controller:
privileged: true
leaderElectionRenewDeadline: 10s
leaderElectionLeaseDuration: 15s
# Enable metrics for csi-provisioner
metrics:
enabled: false
port: 8080
path: /metrics


## Node daemonset variables
Expand Down

0 comments on commit 71fa32c

Please sign in to comment.