From c45de25c558f76c7805f50f417e3a7fd09a3794d Mon Sep 17 00:00:00 2001 From: makefunstuff Date: Fri, 28 Jun 2024 20:44:15 +0300 Subject: again --- tools/monitoring/values.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'tools/monitoring') diff --git a/tools/monitoring/values.yaml b/tools/monitoring/values.yaml index 6ccc866..a19ba65 100644 --- a/tools/monitoring/values.yaml +++ b/tools/monitoring/values.yaml @@ -155,11 +155,15 @@ opentelemetry-collector: protocols: grpc: {} http: {} - k8s_logs: + filelog: + include: ["/var/log/containers/*.log"] operators: - - type: extract - config: - from: kubernetes.annotations + - type: json_parser + timestamp: + parse_from_field: time + layout: '%Y-%m-%dT%H:%M:%S.%fZ' + severity: + parse_from_field: severity processors: batch: {} resource: @@ -182,6 +186,6 @@ opentelemetry-collector: processors: [batch] exporters: [prometheusremotewrite] logs: - receivers: [otlp, k8s_logs] + receivers: [otlp, filelog] processors: [batch, resource] exporters: [logging, otlphttp] -- cgit 1.4.1-2-gfad0