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

Commit

Permalink
Merge pull request #22 from alltilla/otel-parser-and-file-dest
Browse files Browse the repository at this point in the history
collector: add `opentelemetry()` parser and `file()` destination
  • Loading branch information
MrAnno authored Aug 11, 2023
2 parents f00b36d + 77deb80 commit ceab5ad
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/axosyslog-collector/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: axosyslog-collector
description: AxoSyslog Kubernetes log collector
type: application
version: 0.4.0
version: 0.5.0
appVersion: "4.3.1"
27 changes: 27 additions & 0 deletions charts/axosyslog-collector/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@ data:
);
};
{{- end }}
{{- if .Values.config.parsers.opentelemetry.enabled }}
parser {
opentelemetry();
};
{{- end }}
{{- range .Values.config.destinations.file }}
destination {
file(
{{ .path | quote }}
{{- if .template }}
template({{ .template | quote }})
{{- end }}
{{- if .extraOptionsRaw }}
{{ .extraOptionsRaw }}
{{- end }}
);
};
{{- end }}
{{- range .Values.config.destinations.network }}
destination {
network(
Expand All @@ -39,6 +57,9 @@ data:
transport({{ .transport }})
{{- if .template }}
template({{ .template | quote }})
{{- end }}
{{- if .extraOptionsRaw }}
{{ .extraOptionsRaw }}
{{- end }}
);
};
Expand Down Expand Up @@ -78,6 +99,9 @@ data:
peer-verify(no)
{{- end }}
)
{{- end }}
{{- if .extraOptionsRaw }}
{{ .extraOptionsRaw }}
{{- end }}
);
};
Expand All @@ -86,6 +110,9 @@ data:
destination {
opentelemetry(
url({{ tpl .url $ | quote }})
{{- if .extraOptionsRaw }}
{{ .extraOptionsRaw }}
{{- end }}
);
};
{{- end }}
Expand Down
11 changes: 11 additions & 0 deletions charts/axosyslog-collector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,22 @@ config:
opentelemetry: []
# E.g.:
# - port: 4317
parsers:
opentelemetry:
enabled: false
destinations:
file: []
# E.g.:
# - path: "/dev/stdout"
# template: "$(format-json .*)"
# extraOptionsRaw: "create-dirs(yes)"
network: []
# E.g.:
# - transport: tcp
# address: localhost
# port: 12345
# template: "$(format-json .*)"
# extraOptionsRaw: "time-reopen(10)"
opensearch: []
# E.g.:
# - address: 10.104.232.94
Expand All @@ -68,9 +77,11 @@ config:
# Key: "/path/to/Key.pem"
# peerVerify: false
# template: "$(format-json .*)"
# extraOptionsRaw: "time-reopen(10)"
opentelemetry: []
# E.g.:
# - url: "10.104.232.95:4317"
# extraOptionsRaw: "time-reopen(10)"

rbac:
create: true
Expand Down

0 comments on commit ceab5ad

Please sign in to comment.