diff --git a/charts/orchestrator-observability/deployments/orchestrator-observability/Chart.yaml b/charts/orchestrator-observability/deployments/orchestrator-observability/Chart.yaml index eb7b50d..524a294 100644 --- a/charts/orchestrator-observability/deployments/orchestrator-observability/Chart.yaml +++ b/charts/orchestrator-observability/deployments/orchestrator-observability/Chart.yaml @@ -15,10 +15,9 @@ dependencies: condition: import.loki.enabled version: "~6.25.0" repository: "https://grafana.github.io/helm-charts" - - name: opentelemetry-collector - alias: opentelemetry-collector-daemonset - condition: import.otel.enabled - version: "~0.114.0" + - name: opentelemetry-operator + condition: import.otel-operator.enabled + version: "~0.86.1" repository: "https://open-telemetry.github.io/opentelemetry-helm-charts" - name: opentelemetry-collector condition: import.otel.enabled diff --git a/charts/orchestrator-observability/deployments/orchestrator-observability/templates/opentelemetry-collector-cr.yaml b/charts/orchestrator-observability/deployments/orchestrator-observability/templates/opentelemetry-collector-cr.yaml new file mode 100644 index 0000000..0585abc --- /dev/null +++ b/charts/orchestrator-observability/deployments/orchestrator-observability/templates/opentelemetry-collector-cr.yaml @@ -0,0 +1,195 @@ +{{- if .Values.opentelemetryCollectorCR.enabled }} +apiVersion: opentelemetry.io/v1beta1 +kind: OpenTelemetryCollector +metadata: + name: orchestrator-observability-otel +spec: + mode: daemonset + upgradeStrategy: automatic + targetAllocator: + enabled: true + serviceAccount: opentelemetry-targetallocator-role + prometheusCR: + enabled: true + podMonitorSelector: {} + serviceMonitorSelector: {} + config: + extensions: + health_check: + endpoint: "0.0.0.0:13133" + + receivers: + filelog: + exclude: + - /var/log/pods/orch-platform_orchestrator-observability-opentelemetry-collector-daemonset*_*/opentelemetry-collector-daemonset/*.log + 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 + regex: ^(?P