diff --git a/otel-ecs-fargate/README.md b/otel-ecs-fargate/README.md index 9a129de5..5f5652ae 100644 --- a/otel-ecs-fargate/README.md +++ b/otel-ecs-fargate/README.md @@ -6,7 +6,7 @@ The OpenTelemetry collector offers a vendor-agnostic implementation of how to receive, process and export telemetry data. -In this document, we'll explain how to add the OTEL collector as a sidecar agent to your ECS Task Definitions. We use the standard Opentelemetry Collector Contrib distribution but leverage the envprovider to generate the configuration from an AWS SSM Parameter Store. There is an example cloudformation template for review [here](https://github.com/coralogix/cloudformation-coralogix-aws/tree/master/aws-integrations/ecs-fargate) +In this document, we'll explain how to add the OTEL collector as a sidecar agent to your ECS Task Definitions. We use the standard Opentelemetry Collector Contrib distribution but leverage the envprovider to generate the configuration from an AWS SSM Parameter Store. There is an example cloudformation template for review [here](https://github.com/coralogix/cloudformation-coralogix-aws/tree/master/aws-integrations/ecs-fargate) The envprovider is used for loading of the OpenTelemetry configuration via Systems Manager Parameter Stores. This makes adjusting your configuration more convenient and more dynamic than baking a static configuration into your container image. diff --git a/otel-ecs-fargate/parameter_store_cf.yaml b/otel-ecs-fargate/parameter_store_cf.yaml index a5e0f6a5..a6d33468 100644 --- a/otel-ecs-fargate/parameter_store_cf.yaml +++ b/otel-ecs-fargate/parameter_store_cf.yaml @@ -27,20 +27,34 @@ Resources: Description: Configuration parameter for Coralogix OTEL Collector Type: String Value: | + extensions: + # The OpAMP extension below enables the Coralogix fleet management server connection. + # Uncomment them to enable the feature and add the "opamp" extension to the list under `service.extensions`. + # opamp: + # server: + # http: + # endpoint: "https://ingress.${env:CORALOGIX_DOMAIN}/opamp/v1" + # polling_interval: 2m + # headers: + # Authorization: "Bearer ${env:PRIVATE_KEY}" + # agent_description: + # non_identifying_attributes: + # cx.agent.type: "agent" + # cx.integrationID: "ecs-fargate" exporters: coralogix: application_name: 'otel' application_name_attributes: - aws.ecs.task.family - service.namespace - domain: ${CORALOGIX_DOMAIN} + domain: ${env:CORALOGIX_DOMAIN} logs: headers: X-Coralogix-Distribution: ecs-fargate-integration/0.0.1 metrics: headers: X-Coralogix-Distribution: ecs-fargate-integration/0.0.1 - private_key: ${PRIVATE_KEY} + private_key: ${env:PRIVATE_KEY} subsystem_name: 'integration' subsystem_name_attributes: - service.name @@ -118,6 +132,7 @@ Resources: - targets: - 127.0.0.1:8888 service: + extensions: [] pipelines: logs: exporters: