The Kubernetes OpenTelemetry Collector Contrib distribution is not available and in development.
Linux Installation
Step 1: Install DEB or RPM
Download theopentelemetry-collector
with the same package manager you used to install the MW Agent.
Step 2: Use otelcol-contrib
Use the otelcol-contrib (opentelemetry-collector-contrib)
distribution instead of the otelcol (opentelemetry-collector)
for the OpenTelemetry Collector.
When prompted to download otelcol
, download one of the following instead:
Step 3: Follow OTel Config
Once you have installed Linux, proceed to the Configuration Section.Docker Installation
Step 1: Install DockerHub or ghcr.io
Download the opentelemetry-collector with the same container registry you used to install the MW Agent.
Step 2: Use otelcol-contrib
Ensure the container image refers to the opentelemetry-collector-contrib
and not core opentelemetry-collector
.
Check your container image with the following commands:
Shell
Step 3: Follow OTel Config
Once you have installed Docker, proceed to the Configuration Section.Configuration
Step 1: Configure Collector
Follow the OTel Configuration Instructions to configure theopentelemetry-collector-contrib
You must fully configure the OTel Collector before adding more code to the
processors
, exporters
and service
section. Step 2: Add to Processors
Add the following code to theprocessors
section:
YAML
Step 3: Add to Exporters
Add the following code to theexporters
section:
YAML
Step 4: Add to Service
Add the following code within the pipelines section:YAML
Limitations
Metrics such as bandwidth and disk speed are not currently collected by the OpenTelemetry Collector and will contain0
in those fields. This will impact the Infrastructure page as well as any custom dashboard containing these metrics.
Need assistance or want to learn more about Middleware? Contact us at support[at]middleware.io.