See AWS Distro for OpenTelemetry documentation to run ADOT Collector on Amazon Linux 2 EC2 host.
See AWS Distro for OpenTelemetry documentation for detailed information on installing ADOT Collector via CloudFormation on EC2.
See AWS Distro for OpenTelemetry documentation for detailed information on installing ADOT Collector on ECS.
add a key value pair into /opt/aws/aws-otel-collector/etc/extracfg.txt
and restart collector
echo "loggingLevel=DEBUG" | sudo tee -a /opt/aws/aws-otel-collector/etc/extracfg.txt
sudo /opt/aws/aws-otel-collector/bin/aws-otel-collector-ctl -a stop
sudo /opt/aws/aws-otel-collector/bin/aws-otel-collector-ctl -a start