Local build of OpenTelemetry Collector Contrib

huangapple go评论53阅读模式
英文:

Local build of OpenTelemetry Collector Contrib

问题

我是你的中文翻译:

我对OpenTelemetry还很新,现在正在尝试本地构建。我正在遵循这里本地部分的指南[点击链接查看描述][1]。

运行以下内容完美无缺:

    git clone https://github.com/open-telemetry/opentelemetry-collector.git
    cd opentelemetry-collector
    make install-tools
    make otelcorecol
    ./bin/otelcorecol_* --config ./examples/local/otel-config.yaml

它成功了!耶!

但我想构建OpenTelemetry Collector Contrib版本,而不仅仅是OpenTelemetry Collector。所以我正在尝试:

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

...但在这里我遇到了以下错误:`make: *** No rule to make target 'otelcorecol'.  Stop.`

我想构建Contrib版本是因为我想使用文件导出器,据我所知,它在非Contrib版本中不包括。

我使用的是macOS。

任何帮助将不胜感激! :-)

  [1]: https://opentelemetry.io/docs/collector/getting-started/#local
英文:

I'm new to OpenTelemetry and trying out building locally for now. I'm following the guide in the Local section hereenter link description here.

Running the following works flawlessly:

git clone https://github.com/open-telemetry/opentelemetry-collector.git
cd opentelemetry-collector
make install-tools
make otelcorecol
./bin/otelcorecol_* --config ./examples/local/otel-config.yaml

It works! Yay!

But I want to build the OpenTelemetry Collector Contrib instead of just the OpenTelemetry Collector. So I'm trying:

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

...but here I get the following error: make: *** No rule to make target 'otelcorecol'. Stop.

I want to build the Contrib-version because I want to use the file-exporter, which is not included in the non-Contrib-version, as far as I know.

I'm on macOS.

Any help would be very much appreciated! Local build of OpenTelemetry Collector Contrib

答案1

得分: 2

对应的 opentelemetry-collector-contribmake 目标是 otelcontribcol,因此您需要运行以下命令代替:

make otelcontribcol
英文:

The corresponding make target for opentelemetry-collector-contrib is otelcontribcol, so you'll have to run this instead:

make otelcontribcol

答案2

得分: 1

如果你想构建官方的OpenTelemetry Collector Contrib发布版本,请使用这个存储库:

https://github.com/open-telemetry/opentelemetry-collector-releases

从存储库的git检出根目录进入:

$> make build

opentelemetry-collector-contrib中的cmd/otelcontribcol可执行文件用于集成测试。

英文:

If you want to build the official OpenTelemetry Collector Contrib distribution, please use this repository:

https://github.com/open-telemetry/opentelemetry-collector-releases

From the root of the git checkout of the repository, enter:

$> make build

The cmd/otelcontribcol executable in opentelemetry-collector-contrib is used for integration testing.

huangapple
  • 本文由 发表于 2023年5月17日 19:12:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76271457.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定