This script installs the latest OpenTelemetry Collector Contrib on Debian-based systems using the official .deb package.
- Automatically detects architecture (
amd64/arm64) - Ensures it's running on a Debian-based system
- Detects any
otelcolprocess if already running - Downloads the latest otelcol-contrib release from GitHub
- Installs and starts the
otelcol-contribsystemd service - Cleans up temporary files
- Provides helpful
systemctland uninstall instructions
- Debian-based system
curl,jq,dpkg,systemctl- sudo privileges
To remove the OpenTelemetry Collector Contrib package from your system, run:
sudo systemctl disable --now otelcol-contrib
sudo apt remove otelcol-contrib