Build jaeger exporter image
This commit is contained in:
parent
b3efca8cc0
commit
933f851da1
|
@ -1,2 +1,2 @@
|
||||||
exporters:
|
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"
|
||||||
|
|
|
@ -3,7 +3,8 @@ ARG REPO_ARCH=arm64v8
|
||||||
FROM asonix/rust-runner:$REPO_ARCH-latest
|
FROM asonix/rust-runner:$REPO_ARCH-latest
|
||||||
|
|
||||||
COPY ./artifacts/otelcol-custom /usr/local/bin/opentelemetry-collector
|
COPY ./artifacts/otelcol-custom /usr/local/bin/opentelemetry-collector
|
||||||
|
COPY ./otelcol.yaml /opt/app/otelcol.yaml
|
||||||
|
|
||||||
EXPOSE 4317
|
EXPOSE 4317
|
||||||
ENTRYPOINT /sbin/tini --
|
ENTRYPOINT ["/sbin/tini", "--"]
|
||||||
CMD /usr/local/bin/opentelemetry-collector
|
CMD /usr/local/bin/opentelemetry-collector --config=/opt/app/otelcol.yaml
|
||||||
|
|
11
build.sh
11
build.sh
|
@ -2,10 +2,12 @@
|
||||||
|
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
PATH=$PATH:$HOME/go/bin:/usr/local/go/bin
|
export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin
|
||||||
|
|
||||||
GOARCH=arm64
|
rm -rf ./artifacts
|
||||||
opentelemetry-collector-builder --output-path=./artifacts
|
|
||||||
|
export GOARCH=arm64
|
||||||
|
opentelemetry-collector-builder --output-path=./artifacts --config=./.otelcol-builder.yaml
|
||||||
|
|
||||||
sudo docker build \
|
sudo docker build \
|
||||||
--pull \
|
--pull \
|
||||||
|
@ -13,4 +15,7 @@ sudo docker build \
|
||||||
-f Dockerfile \
|
-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:v0.35.0
|
||||||
|
sudo docker push asonix/otel-collector:latest
|
||||||
|
|
13
otelcol.yaml
13
otelcol.yaml
|
@ -2,7 +2,7 @@ receivers:
|
||||||
otlp:
|
otlp:
|
||||||
protocols:
|
protocols:
|
||||||
grpc:
|
grpc:
|
||||||
endpoint: localhost:4317
|
endpoint: 0.0.0.0:4317
|
||||||
|
|
||||||
processors:
|
processors:
|
||||||
batch:
|
batch:
|
||||||
|
@ -12,3 +12,14 @@ exporters:
|
||||||
jaeger:
|
jaeger:
|
||||||
endpoint: jaeger-collector:14250
|
endpoint: jaeger-collector:14250
|
||||||
insecure: true
|
insecure: true
|
||||||
|
|
||||||
|
service:
|
||||||
|
pipelines:
|
||||||
|
traces:
|
||||||
|
receivers:
|
||||||
|
- otlp
|
||||||
|
processors:
|
||||||
|
- batch
|
||||||
|
exporters:
|
||||||
|
- logging
|
||||||
|
- jaeger
|
||||||
|
|
Loading…
Reference in a new issue