diff --git a/charts/prometheus-systemd-exporter/Chart.yaml b/charts/prometheus-systemd-exporter/Chart.yaml index 9ff46df1a2a1..5e87d1a12625 100644 --- a/charts/prometheus-systemd-exporter/Chart.yaml +++ b/charts/prometheus-systemd-exporter/Chart.yaml @@ -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: diff --git a/charts/prometheus-systemd-exporter/templates/daemonset.yaml b/charts/prometheus-systemd-exporter/templates/daemonset.yaml index 56a7e4ec8cad..84ec4ff054bf 100644 --- a/charts/prometheus-systemd-exporter/templates/daemonset.yaml +++ b/charts/prometheus-systemd-exporter/templates/daemonset.yaml @@ -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 }} diff --git a/charts/prometheus-systemd-exporter/values.yaml b/charts/prometheus-systemd-exporter/values.yaml index ecdee4ba3f09..c9a8ea201ff7 100644 --- a/charts/prometheus-systemd-exporter/values.yaml +++ b/charts/prometheus-systemd-exporter/values.yaml @@ -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