Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.81 KB

File metadata and controls

55 lines (38 loc) · 1.81 KB

Chef cookbook to install Sumo Logic Distribution for OpenTelemetry Collector

This cookbook will install Sumo Logic Distro of OpenTelemetry Collector.

Properties

  • version: version of Sumo Logic Distribution for OpenTelemetry Collector
  • src_config_path: path to configuration file for Sumo Logic Distribution for OpenTelemetry Collector
  • memory_high: defines the throttling limit on memory usage for Sumo Logic Distribution for OpenTelemetry Collector
  • memory_max: defines the absolute limit on memory usage for Sumo Logic Distribution for OpenTelemetry Collector
  • systemd_service: enables creation of Systemd Service for Sumo Logic Distribution for OpenTelemetry Collector
  • os_family: OS family, can by either linux or darwin
  • os_arch: OS architecture, can be either amd64 or arm64. arm64 is supported for linux os_family only

Test on Vagrant

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