The Sumo Logic Distribution for OpenTelemetry Collector can be run using either the binary file available in Github releases or the container images stored in AWS Public ECR under the following repositories:
To run the Sumo Logic Distribution for OpenTelemetry Collector in a container, you only need to run the container using the image available in the one of the following repositories:
-
Set the release version variable:
export RELEASE_VERSION=0.75.0-sumo-0
-
Prepare the configuration according to this document and save it in
config.yaml
.IMPORTANT NOTE: It is recommended to limit access to the configuration file as it contains sensitive information. You can change access permissions to the configuration file using:
chmod 640 config.yaml
-
Run the Sumo Logic Distribution for OpenTelemetry Collector in container, e.g.
docker run --rm -ti --name sumologic-otel-collector \ -v "$(pwd)/config.yaml:/etc/otel/config.yaml" \ "public.ecr.aws/sumologic/sumologic-otel-collector:${RELEASE_VERSION}"
IMPORTANT NOTE:
When running Sumo Logic Distribution for OpenTelemetry Collector in a container with
sumologicextension
, one needs to take into account the local state files which are being used locally in order to store collector credentials upon successful collector registration.When the collector is being run with
sumologicextension
(which manages collector registration), local directory (which is configured viacollector_credentials_directory
insumologicextension
, and which is by default set to$HOME/.sumologic-otel-collector
) will be used to store the aforementioned state files. Without any mounts defined on the container the collector will register itself every time it starts up, creating clutter on Sumo Logic Collector Management page.In order to avoid that, use volume mounts or any other mechanism to mount the collector credentials directory to the container to persist the state or use
clobber
configuration option fromsumologicextension
to force collector re-registering under the same name, every time is starts up.One can read more about the above described mechanism in
sumologicextension
README.md.
Example installation of Sumo Logic Distribution for OpenTelemetry Collector with Ansible is described in examples/ansible.
Example installation of Sumo Logic Distribution for OpenTelemetry Collector with Puppet is described in examples/puppet.
Example installation of Sumo Logic Distribution for OpenTelemetry Collector with Chef is described in [examples/chef](https://help.sumologic.com/docs/send-data/opentelemetry-collector/install-collector/chef/.