Skip to content

Commit

Permalink
Drop kubelete/systemd logs if they are disabled
Browse files Browse the repository at this point in the history
Backport of #1128 #1150
  • Loading branch information
sumo-drosiek committed Nov 25, 2020
1 parent 8708146 commit a665a1b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions deploy/helm/sumologic/conf/logs/logs.source.systemd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@
{{ include "fluentd.prometheus-metrics.output" . | nindent 6 }}
{{- end }}
</match>
{{- end}}
{{- end }}
</label>
{{- end}}
{{- else }}
<match host.kubelet.**>
@type null
</match>
{{- end }}
{{ if .Values.fluentd.logs.systemd.enabled }}
{{- if .Values.fluentd.monitoring.input }}
{{ include "fluentd.prometheus-metrics.input" (dict "Tag" "host.**") | nindent 2 }}
Expand Down Expand Up @@ -95,6 +99,10 @@
{{ include "fluentd.prometheus-metrics.output" . | nindent 6 }}
{{- end }}
</match>
{{- end}}
{{- end }}
</label>
{{- end}}
{{- else }}
<match host.**>
@type null
</match>
{{- end }}

0 comments on commit a665a1b

Please sign in to comment.