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 #21 from axoflow/opentelemetry
Browse files Browse the repository at this point in the history
collector: add opentelemetry() src and dst
  • Loading branch information
alltilla authored Aug 11, 2023
2 parents f8fe96e + 8f887cb commit f00b36d
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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.3.0
appVersion: "4.2.0"
version: 0.4.0
appVersion: "4.3.1"
16 changes: 16 additions & 0 deletions charts/axosyslog-collector/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ data:
{{- if .Values.config.sources.kubernetes.enabled }}
source { kubernetes(); };
{{- end }}
{{- range .Values.config.sources.opentelemetry }}
source {
opentelemetry(
{{- if .port }}
port({{ .port }})
{{- end }}
);
};
{{- end }}
{{- range .Values.config.destinations.network }}
destination {
network(
Expand Down Expand Up @@ -72,6 +81,13 @@ data:
{{- end }}
);
};
{{- end }}
{{- range .Values.config.destinations.opentelemetry }}
destination {
opentelemetry(
url({{ tpl .url $ | quote }})
);
};
{{- end }}
};
{{- end }}
19 changes: 19 additions & 0 deletions charts/axosyslog-collector/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if .Values.service.create }}
---
apiVersion: v1
kind: Service
metadata:
name: "{{ template "axosyslog-collector.fullname" . }}"
spec:
selector:
app: "{{ template "axosyslog-collector.fullname" . }}"
release: {{ .Release.Name | quote }}
ports:
{{ if .Values.service.extraPorts }}
{{ toYaml ( .Values.service.extraPorts ) | nindent 4 }}
{{ end }}
{{ range .Values.config.sources.opentelemetry }}
- protocol: TCP
port: {{ .port | default 4317 }}
{{ end }}
{{- end }}
10 changes: 10 additions & 0 deletions charts/axosyslog-collector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ config:
sources:
kubernetes:
enabled: true
opentelemetry: []
# E.g.:
# - port: 4317
destinations:
network: []
# E.g.:
Expand All @@ -65,6 +68,9 @@ config:
# Key: "/path/to/Key.pem"
# peerVerify: false
# template: "$(format-json .*)"
opentelemetry: []
# E.g.:
# - url: "10.104.232.95:4317"

rbac:
create: true
Expand All @@ -76,6 +82,10 @@ openShift:
create: true
annotations: {}

service:
create: false
extraPorts: []

serviceAccount:
create: true
annotations: {}
Expand Down

0 comments on commit f00b36d

Please sign in to comment.