Process Exporter: Override Children Parameter

Currently  resource usage of subprocesses is added
in to their parent's usage. And this will provide
option to override.

Change-Id: I22c36e5a6f354f6318e72798ce9865011a85b2af
This commit is contained in:
John Lawrence 2020-04-16 15:16:22 +00:00
parent 35ff844cbb
commit 35872a9f25
2 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,9 @@ spec:
{{ tuple $envAll $envAll.Values.pod.resources.process_exporter | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
{{ dict "envAll" $envAll "application" "metrics" "container" "process_exporter" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
args:
{{- if .Values.conf.children }}
- -children={{ .Values.conf.children }}
{{- end }}
- -procnames
- {{ .Values.conf.processes }}
ports:

View File

@ -159,3 +159,4 @@ manifests:
conf:
processes: dockerd,kubelet,kube-proxy,bgsagent,bgscollect,bgssd
children: true