From a574485a627c136364309d686a871af69154d9a0 Mon Sep 17 00:00:00 2001 From: Arun Date: Wed, 24 Jan 2024 20:28:07 -0600 Subject: [PATCH 1/9] enable container logs collection for SingleNewEksOpenSourceobservabilityPattern --- .../resources/otel-collector-config.yml | 73 +++++++++++++++++++ .../index.ts | 22 +++++- 2 files changed, 91 insertions(+), 4 deletions(-) diff --git a/lib/common/resources/otel-collector-config.yml b/lib/common/resources/otel-collector-config.yml index 010dd42b..9992718a 100644 --- a/lib/common/resources/otel-collector-config.yml +++ b/lib/common/resources/otel-collector-config.yml @@ -1637,6 +1637,70 @@ spec: - source_labels: [ __name__ ] regex: 'jvm_gc_collection_seconds.*' action: drop + {{ start enableAdotContainerLogsCollection }} + filelog: + include: + - /var/log/pods/*/*/*.log + include_file_name: false + include_file_path: true + operators: + - id: get-format + routes: + - expr: body matches "^\\{" + output: parser-docker + - expr: body matches "^[^ Z]+ " + output: parser-crio + - expr: body matches "^[^ Z]+Z" + output: parser-containerd + type: router + - id: parser-crio + output: extract_metadata_from_filepath + regex: ^(?P