To run AWSOTelCollector on Windows EC2 host, you can choose to install AWSOTelCollector MSI on your host by the following steps.
Steps,
wget https://aws-otel-collector.s3.amazonaws.com/windows/amd64/latest/aws-otel-collector.msi
msiexec /i aws-otel-collector.msi
or can be installed by double clicking the windows msi file.
While Installing the AWSOTelCollector it will show a popup mentioning that the software is not from verified publisher, this is because we have not signed the MSI one it is signed this popup will be gone
Once MSI is installed, it will create AWSOTelCollector in directory C:\Program Files\Amazon\AwsOpentelemetryCollector
We provided a control script to manage AWSOTelCollector. Customer can use it to Start, Stop and Check Status of AWSOTelCollector.
& '.\Program Files\Amazon\AWSOTelCollector\aws-otel-collector-ctl.ps1' -a start
& '.\Program Files\Amazon\AWSOTelCollector\aws-otel-collector-ctl.ps1' -a stop
& '.\Program Files\Amazon\AWSOTelCollector\aws-otel-collector-ctl.ps1' -a status
add a key value pair into .\ProgramData\Amazon\AWSOTelCollector\Configs\extracfg.txt
and restart collector
Add-Content .\ProgramData\Amazon\AWSOTelCollector\Configs\extracfg.txt "loggingLevel=DEBUG"
& '.\Program Files\Amazon\AWSOTelCollector\aws-otel-collector-ctl.ps1' -a stop
& '.\Program Files\Amazon\AWSOTelCollector\aws-otel-collector-ctl.ps1' -a start