Installing the OpenTelemetry Collector
OpenTelemetry Collector is a powerful, vendor-agnostic, and flexible component in the OpenTelemetry ecosystem that simplifies the collection, processing, and export of telemetry data from various sources.
This guide will walk you through the process of setting up and using the OpenTelemetry Collector.
Using the OpenTelemetry collector is not mandatory but is recommended as a best practice. Since it provides a local collector agent as the default location for instrumentation libraries to export their telemetry data, the applications can quickly offload the data to the collector. This makes it particularly beneficial in complex and dynamic environments where the telemetry data is generated and consumed by a variety of systems and tools. It streamlines the collection and processing of the telemetry data and can also take care of additional handling such as retries, batching, encryption, granular data filtering, and more.
Prerequisites: A system where you can install the OpenTelemetry Collector. This can be a physical or virtual machine or a container orchestration platform like Kubernetes.
Linux releases are available for various architectures. You can download the file containing the binary and install it on your machine manually:
Every Collector release includes APK, DEB, and RPM packaging for Linux amd64/arm64/i386 systems. You can find the default configuration in /etc/otelcol-contrib/config.yaml after installation.
systemd is required for automatic service configuration.
DEB Installation:
You can choose from the following packages based on your system architecture:
- linux_386.deb: Linux package for Intel/AMD 32-bit architecture in Debian package format
- linux_amd64.deb: Linux package for Intel/AMD 64-bit architecture in Debian package format
- linux_arm64.deb: Linux package for ARM 64-bit architecture in Debian package format
- linux_armv7.deb: Linux package for ARM 32-bit architecture in Debian package format
- linux_ppc64le.deb: Linux package for PowerPC 64-bit Little-Endian architecture in Debian package format
- linux_s390x.deb: Linux package for IBM System Z architecture in Debian package format
To get started on Debian systems run the following commands:
RPM Installation:
You can choose from the following packages based on your system architecture:
- linux_386.rpm: Linux package for Intel/AMD 32-bit architecture in RPM package format
- linux_amd64.rpm: Linux package for Intel/AMD 64-bit architecture in RPM package format
- linux_arm64.rpm: Linux package for ARM 64-bit architecture in RPM package format
- linux_armv7.rpm: Linux package for ARM 32-bit architecture in RPM package format
- linux_ppc64le.rpm: Linux package for PowerPC 64-bit Little-Endian architecture in RPM package format
- linux_s390x.rpm: Linux package for IBM System Z architecture in RPM package format
To get started on Red Hat systems run the following commands:
Download the OpenTelemetry Collector for Windows
- Choose the Correct Version: Select the appropriate version of the OpenTelemetry Collector for Windows. Each Collector release includes an otelcol-contrib.exe executable that you can run after unpacking.
- Run the Installer: