Skip to content

Commit

Permalink
[prometheus-systemd-exporter]: fix extraArgs indentation, document it…
Browse files Browse the repository at this point in the history
… in values (#4456)

Signed-off-by: Cédric de Saint Martin <[email protected]>
  • Loading branch information
desaintmartin authored Apr 17, 2024
1 parent 71f2180 commit 02e7a20
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-systemd-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: prometheus-systemd-exporter
description: A Helm chart for prometheus systemd-exporter
type: application
version: 0.2.0
version: 0.2.1
appVersion: "0.6.0"
home: https://github.com/prometheus-community/systemd_exporter
sources:
Expand Down
6 changes: 3 additions & 3 deletions charts/prometheus-systemd-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ spec:
args:
- --log.level=info
- --systemd.collector.unit-include=kubelet.service|docker.service
{{- with .Values.extraArgs }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.extraArgs }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.containerSecurityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-systemd-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ env: {}
## env:
## VARIABLE: value

# extraArgs allows to pass command line arguments, as described on https://github.com/prometheus-community/systemd_exporter?tab=readme-ov-file#configuration
extraArgs: []
# - --systemd.collector.enable-resolved

prometheus:
monitor:
enabled: false
Expand Down

0 comments on commit 02e7a20

Please sign in to comment.