安装 Collector

你可以在多种操作系统和架构上部署 OpenTelemetry Collector。以下说明展示了如何为你的环境下载并安装最新的稳定版本。

在开始之前,请确保你已经了解 Collector 的基础概念, 包括部署模式组件以及配置

从源码构建

你可以使用以下命令,在本地操作系统环境中构建最新版本的 Collector:

git clone https://github.com/open-telemetry/opentelemetry-collector.git
cd opentelemetry-collector
make install-tools
make otelcorecol