Skip to content

Commit

Permalink
Got it working with the latest, and specifying a specific version of …
Browse files Browse the repository at this point in the history
…the envprovider since, apparently, it versions separately from everything else.
  • Loading branch information
Richard Park committed Oct 4, 2024
1 parent 2e8aaad commit bd108fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tools/stress-cluster/services/otelcollector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ RUN apt update -y && apt upgrade -y && apt install -y build-essential git

# this lets us build a custom otel-collector image, with a minimal set of
# adapters, etc...
RUN go install go.opentelemetry.io/collector/cmd/builder@latest
RUN go install go.opentelemetry.io/collector/cmd/builder@v0.110.0
COPY ./otel-builder.yml /otel-builder.yml
# builds to /tmp/dist
RUN builder --config=/otel-builder.yml
Expand Down
16 changes: 10 additions & 6 deletions tools/stress-cluster/services/otelcollector/otel-builder.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# This is used as an input to the `ocb` app that lets you build a customized OpenTelemetry collector,
# This is used as an input to the `ocb` app that lets you build a customized OpenTelemetry collector,
# as described here: https://opentelemetry.io/docs/collector/custom-collector/
dist:
name: otelcol-custom
description: Local OpenTelemetry Collector binary
output_path: /tmp/dist
otelcol_version: 0.96.0
otelcol_version: 0.110.0
providers:
- gomod: go.opentelemetry.io/collector/confmap/provider/envprovider v1.16.0
- gomod: go.opentelemetry.io/collector/confmap/provider/fileprovider v1.16.0

exporters:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azuremonitorexporter v0.96.0
- gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.96.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azuremonitorexporter v0.110.0
- gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.110.0

receivers:
- gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.96.0
- gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.110.0

processors:
- gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.96.0
- gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.110.0

0 comments on commit bd108fc

Please sign in to comment.