Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
feat(k8s-source): add configurable fields for json paramaters
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofgyuracz committed Nov 23, 2023
1 parent ceab5ad commit 792b7cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions charts/axosyslog-collector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ The following table lists the configurable parameters of the AxoSyslog Collector
| tolerations | Tolerations for pod assignment | [] |
| affinity | Pod affinity | {} |
| updateStrategy | Update strategy for the DaemonSet | RollingUpdate |
| kubernetes.enabled | Enable kubernetes log collection | true |
| kubernetes.prefix | Set JSON prefix for logs collected from the k8s cluster | "" |
| kubernetes.keyDelimiter | Set JSON key delimiter for logs collected from the k8s cluster | "" |

9 changes: 8 additions & 1 deletion charts/axosyslog-collector/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ data:
log {
{{- if .Values.config.sources.kubernetes.enabled }}
source { kubernetes(); };
source { kubernetes(
{{- if .Values.config.sources.kubernetes.prefix }}
prefix("{{ .Values.config.sources.kubernetes.prefix }}")
{{- end }}
{{- if .Values.config.sources.kubernetes.keyDelimiter }}
key-delimiter("{{ .Values.config.sources.kubernetes.keyDelimiter }}")
{{- end }}
); };
{{- end }}
{{- range .Values.config.sources.opentelemetry }}
source {
Expand Down

0 comments on commit 792b7cd

Please sign in to comment.