Skip to content

Commit

Permalink
[prometheus-systemd-exporter] Add values for default args
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Pratt <[email protected]>
  • Loading branch information
glennpratt committed Sep 10, 2024
1 parent 956cd56 commit 290b846
Show file tree
Hide file tree
Showing 3 changed files with 10 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.3.0
version: 0.4.0
appVersion: "0.6.0"
home: https://github.com/prometheus-community/systemd_exporter
sources:
Expand Down
4 changes: 2 additions & 2 deletions charts/prometheus-systemd-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ spec:
image: {{ include "prometheus-systemd-exporter.image" . }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- --log.level=info
- --systemd.collector.unit-include=kubelet.service|docker.service
- --log.level={{ .Values.logLevel }}
- --systemd.collector.unit-include={{ .Values.unitIncludeRegex }}
{{- with .Values.extraArgs }}
{{- toYaml . | nindent 10 }}
{{- end }}
Expand Down
8 changes: 7 additions & 1 deletion charts/prometheus-systemd-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ 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
# Log level for systemd_exporter
logLevel: info

# Include systemd units matched with RE2, see https://github.com/prometheus-community/systemd_exporter?tab=readme-ov-file#configuration
unitIncludeRegex: kubelet.service|docker.service

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

Expand Down

0 comments on commit 290b846

Please sign in to comment.