Merge pull request 'Nicolas_local_ops' (#41) from Nicolas_local_ops into master

Reviewed-on: https://gitea.freeleaps.mathmast.com/freeleaps/freeleaps-ops/pulls/41
This commit is contained in:
Nicolas 2025-07-31 05:03:38 +00:00
commit 12582e699d

View File

@ -47,13 +47,23 @@ spec:
include: include:
- {{ .Values.logIngest.logPathPattern }} - {{ .Values.logIngest.logPathPattern }}
- {{ .Values.logIngest.logPath }}/.log - {{ .Values.logIngest.logPath }}/.log
start_at: beginning start_at: end
include_file_path: false include_file_path: false
include_file_name: false include_file_name: false
poll_interval: 1s
operators: operators:
- type: json_parser - type: json_parser
parse_from: body parse_from: body
parse_to: attributes parse_to: attributes
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
k8scluster:
collection_interval: 1s
auth_type: serviceAccount
processors: processors:
resource: resource:
attributes: attributes:
@ -97,8 +107,8 @@ spec:
- set(log.body, resource.attributes["body_json"]) - set(log.body, resource.attributes["body_json"])
- delete_key(resource.attributes, "body_json") - delete_key(resource.attributes, "body_json")
batch: batch:
send_batch_size: 5 send_batch_size: 1
timeout: 10s timeout: 1s
exporters: exporters:
otlphttp/logs: otlphttp/logs:
endpoint: {{ .Values.logIngest.lokiEndpoint }}/otlp endpoint: {{ .Values.logIngest.lokiEndpoint }}/otlp
@ -110,7 +120,7 @@ spec:
level: info level: info
pipelines: pipelines:
logs: logs:
receivers: [filelog] receivers: [filelog, otlp, k8scluster]
processors: [resource, transform, batch] processors: [resource, transform, batch]
exporters: [otlphttp/logs] exporters: [otlphttp/logs]
{{- end }} {{- end }}