Build jaeger exporter image

This commit is contained in:
Aode (Lion) 2021-09-20 18:39:49 -05:00
parent b3efca8cc0
commit 933f851da1
4 changed files with 24 additions and 7 deletions

View file

@ -1,2 +1,2 @@
exporters:
- gomod: "https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/jaegerexporter"
- gomod: "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/jaegerexporter v0.35.0"

View file

@ -3,7 +3,8 @@ ARG REPO_ARCH=arm64v8
FROM asonix/rust-runner:$REPO_ARCH-latest
COPY ./artifacts/otelcol-custom /usr/local/bin/opentelemetry-collector
COPY ./otelcol.yaml /opt/app/otelcol.yaml
EXPOSE 4317
ENTRYPOINT /sbin/tini --
CMD /usr/local/bin/opentelemetry-collector
ENTRYPOINT ["/sbin/tini", "--"]
CMD /usr/local/bin/opentelemetry-collector --config=/opt/app/otelcol.yaml

View file

@ -2,10 +2,12 @@
set -xe
PATH=$PATH:$HOME/go/bin:/usr/local/go/bin
export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin
GOARCH=arm64
opentelemetry-collector-builder --output-path=./artifacts
rm -rf ./artifacts
export GOARCH=arm64
opentelemetry-collector-builder --output-path=./artifacts --config=./.otelcol-builder.yaml
sudo docker build \
--pull \
@ -13,4 +15,7 @@ sudo docker build \
-f Dockerfile \
.
sudo docker tag asonix/otel-collector:v0.35.0 asonix/otel-collector:latest
sudo docker push asonix/otel-collector:v0.35.0
sudo docker push asonix/otel-collector:latest

View file

@ -2,7 +2,7 @@ receivers:
otlp:
protocols:
grpc:
endpoint: localhost:4317
endpoint: 0.0.0.0:4317
processors:
batch:
@ -12,3 +12,14 @@ exporters:
jaeger:
endpoint: jaeger-collector:14250
insecure: true
service:
pipelines:
traces:
receivers:
- otlp
processors:
- batch
exporters:
- logging
- jaeger