This cookbook will install Sumo Logic Distro of OpenTelemetry Collector.
version
: version of Sumo Logic Distribution for OpenTelemetry Collectorsrc_config_path
: path to configuration file for Sumo Logic Distribution for OpenTelemetry Collectormemory_high
: defines the throttling limit on memory usage for Sumo Logic Distribution for OpenTelemetry Collectormemory_max
: defines the absolute limit on memory usage for Sumo Logic Distribution for OpenTelemetry Collectorsystemd_service
: enables creation of Systemd Service for Sumo Logic Distribution for OpenTelemetry Collectoros_family
: OS family, can by eitherlinux
ordarwin
os_arch
: OS architecture, can be eitheramd64
orarm64
.arm64
is supported forlinux
os_family
only
Chef-solo is installed in Vagrant environment to simplify testing and modifying chef cookbook.
Chef playground is mounted as /sumologic/examples/chef
.
The following steps describe procedure of testing changes:
-
Prepare configuration for Sumo Logic Distribution for OpenTelemetry Collector using steps described in Configuration
-
Adjust recipe to your needs
-
From main directory of this repository start virtual machine:
vagrant up
-
Connect to virtual machine:
vagrant ssh
-
Run the cookbook with the default recipe:
sudo chef-solo -c /sumologic/examples/chef/config.rb -o sumologic-otel-collector
-
Verify installation:
sudo ps aux | grep otelcol-sumo
-
Verify logs:
cat /var/log/otelcol.log