website logo
Request featuresJoin Our Community
⌘K
KloudMate
Getting Started
Why KloudMate?
Setting Up KloudMate
FAQs (Frequently Asked Questions)
Getting Help
Dashboards
Creating a Dashboard
Managing Dashboards and Panels
Explore
AWS Inventory
Lambda Functions
Logs
Traces
Issues
OpenTelemetry Support in KloudMate
What Is OpenTelemetry?
How Does OpenTelemetry Work?
Sending Data to KloudMate
Installing the OpenTelemetry Collector
Using OpenTelemetry Collector
Using OpenTelemetry SDKs
Service Integration Guides
Alarms & Notifications
Understanding KloudMate Alarms
Setting Up KloudMate Alarms
Writing Expressions for KloudMate Alarms
Setting Up Notifications
Settings
Accounts
Sync Settings
Users & Permissions
Subscription & Billing
Usage Report
Profile & Security
Deleting Your AWS Account from KloudMate
Docs powered by
Archbee
OpenTelemetry Support in Kloud...

Installing the OpenTelemetry Collector

12min

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 OpenTelemetry Collector

When to Use 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.

Installing the OpenTelemetry Collector

Step 1:

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.

Step 2:

Download and install the latest release of the OpenTelemetry Collector for your Operating System/ architecture from the OpenTelemetry Collector releases page.

Docker:

Use the following command to pull a docker image and run the collector in a container:

none
|
docker pull otel/opentelemetry-collector-contrib:0.83.0
docker run otel/opentelemetry-collector-contrib:0.83.0


Replace 0.83.0with the version of the collector that you wish to run.

Kubernetes

Use the following command to deploy an agent as a daemonset and a single gateway instance.

Shell
|
kubectl apply -f https://raw.githubusercontent.com/open-telemetry/opentelemetry-collector/main/examples/k8s/otel-config.yaml


Linux Packaging

For Linux amd64/arm64/i386 systems, every collector release includes APK, DEB, and RPM packaging. It also includes a default configuration that can be found at /etc/otelcol/config.yaml post-installation.

Manual Installation:

Linux releases are available for various architectures. It’s possible to download the archive containing the binary and install it on your machine manually.

AMD64
ARM64
i386
ppc64le
|
curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.83.0/otelcol_0.83.0_linux_amd64.tar.gz
tar -xvf otelcol_0.83.0_linux_amd64.tar.gz



APK Installation:

Run the following command to get started on alpine systems:

AMD64
ARM64
i386
|
apk update
apk add wget shadow
wget https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.83.0/otelcol_0.83.0_linux_386.apk
apk add --allow-untrusted otelcol_0.83.0_linux_386.apk



Replace 0.83.0with the version of the collector that you wish to run.

DEB Installation:

Run the following command to get started on Debian systems:

AMD64
ARM64
i386
|
sudo apt-get update
sudo apt-get -y install wget systemctl
wget https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.83.0/otelcol_0.83.0_linux_386.deb
sudo dpkg -i otelcol_0.83.0_linux_386.deb



Replace 0.83.0with the version of the collector that you wish to run and amd64with the appropriate architecture.

RPM Installation:

Run the following command to get started with Red Hat systems:

AMD64
ARM64
i386
|
sudo yum update
sudo yum -y install wget systemctl
wget https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.83.0/otelcol_0.83.0_linux_amd64.rpm
sudo rpm -ivh otelcol_0.83.0_linux_amd64.rpm



Replace 0.83.0with the version of the collector that you wish to run and x86_64with the appropriate architecture.

Windows Packaging

All Windows releases are packaged as gzipped tarballs (.tar.gz) and will need to be unpacked with a tool that supports this compression format.

Every collector release also includes an otelcol.exe executable that you can run after unpacking.

MacOS Packaging

MacOS releases are available for Intel- & ARM-based systems and are packaged as gzipped tarballs (.tar.gz). Once downloaded, they will need to be unpacked with a tool that supports this compression format. Every Collector release includes an otelcolexecutable that you can run after unpacking.

Intel
ARM
|
curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.83.0/otelcol_0.83.0_darwin_amd64.tar.gz
tar -xvf otelcol_0.83.0_darwin_amd64.tar.gz







Did this page help you?
PREVIOUS
Sending Data to KloudMate
NEXT
Using OpenTelemetry Collector
Docs powered by
Archbee
TABLE OF CONTENTS
When to Use OpenTelemetry Collector?
Installing the OpenTelemetry Collector
Docker:
Kubernetes
Linux Packaging
Windows Packaging
MacOS Packaging
Docs powered by
Archbee