Skip to content

Commit

Permalink
Merge pull request #169 from aws-observability/168-logs-pipeline-in-o…
Browse files Browse the repository at this point in the history
…pentelemetrycollector-references-undefined-receiver-and-exporter-if-adotcontainerlogspatternenabled-is-not-defined-in-cdkjson

fix for: logs pipeline in OpenTelemetryCollector references undefined…
  • Loading branch information
elamaran11 authored Jun 13, 2024
2 parents be840c3 + 8631bfc commit 9cc0308
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/common/resources/otel-collector-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1879,10 +1879,12 @@ spec:
metrics:
receivers: [prometheus]
exporters: [logging, prometheusremotewrite]
{{ start enableAdotContainerLogsPipeline }}
logs:
receivers: [filelog]
processors: [batch,k8sattributes]
exporters: [awscloudwatchlogs]
{{ stop enableAdotContainerLogsPipeline }}
{{ start enableAdotMetricsCollectionTelemetry }}
telemetry:
metrics:
Expand Down
6 changes: 6 additions & 0 deletions lib/single-new-eks-opensource-observability-pattern/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ export default class SingleNewEksOpenSourceobservabilityPattern {
"{{ stop enableAdotContainerLogsExporter }}",
jsonStringnew.context["adotcontainerlogs.pattern.enabled"]
);
doc = utils.changeTextBetweenTokens(
doc,
"{{ start enableAdotContainerLogsPipeline }}",
"{{ stop enableAdotContainerLogsPipeline }}",
jsonStringnew.context["adotcontainerlogs.pattern.enabled"]
);
doc = utils.changeTextBetweenTokens(
doc,
"{{ start kubecostJob }}",
Expand Down

0 comments on commit 9cc0308

Please sign in to comment.