Skip to content

Commit

Permalink
Add config to docker image (#1792)
Browse files Browse the repository at this point in the history
* Add config to docker image

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Change dockerfile and copy config

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
  • Loading branch information
pavolloffay authored Sep 22, 2020
1 parent ab27911 commit cba929d
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/otelcol/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ RUN chmod 755 /otelcol
FROM scratch
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=otelcol /otelcol /
COPY config.yaml /etc/otel/config.yaml
ENTRYPOINT ["/otelcol"]
CMD ["--config", "/etc/otel/config.yaml"]
EXPOSE 55678 55679
52 changes: 52 additions & 0 deletions cmd/otelcol/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
extensions:
health_check:
pprof:
endpoint: 0.0.0.0:1777
zpages:
endpoint: 0.0.0.0:55679

receivers:

opencensus:

# Collect own metrics
prometheus:
config:
scrape_configs:
- job_name: 'otel-collector'
scrape_interval: 10s
static_configs:
- targets: ['0.0.0.0:8888']

jaeger:
protocols:
grpc:
thrift_binary:
thrift_compact:
thrift_http:

zipkin:

processors:
batch:
queued_retry:

exporters:
logging:
logLevel: debug

service:

pipelines:

traces:
receivers: [opencensus, jaeger, zipkin]
processors: [batch, queued_retry]
exporters: [logging]

metrics:
receivers: [opencensus, prometheus]
processors: [batch]
exporters: [logging]

extensions: [health_check, pprof, zpages]

0 comments on commit cba929d

Please sign in to comment.