diff --git a/internal/controller/telemetry/otel_col_conf_test_fixtures/complex.yaml b/internal/controller/telemetry/otel_col_conf_test_fixtures/complex.yaml index 29d8d4c2..c7e6c8ed 100644 --- a/internal/controller/telemetry/otel_col_conf_test_fixtures/complex.yaml +++ b/internal/controller/telemetry/otel_col_conf_test_fixtures/complex.yaml @@ -1,9 +1,9 @@ receivers: - filelog/kubernetes: + filelog/example-tenant-a: exclude: - /var/log/pods/*/otc-container/*.log include: - - /var/log/pods/*/*/*.log + - /var/log/pods/example-tenant-a_*/*/*.log include_file_name: false include_file_path: true operators: @@ -54,25 +54,86 @@ receivers: - from: attributes.uid to: resource["k8s.pod.uid"] type: move + retry_on_failure: + enabled: true + max_elapsed_time: 0 + start_at: end + filelog/example-tenant-b: + exclude: + - /var/log/pods/*/otc-container/*.log + include: + - /var/log/pods/example-tenant-b_*/*/*.log + include_file_name: false + include_file_path: true + operators: + - id: get-format + routes: + - expr: body matches "^\\{" + output: parser-docker + - expr: body matches "^[^ Z]+Z" + output: parser-containerd + type: router + - id: parser-containerd + output: extract_metadata_from_filepath + regex: ^(?P