diff --git a/cmd/otelcol/Dockerfile b/cmd/otelcol/Dockerfile index 2db540d2633..4e99c435a63 100644 --- a/cmd/otelcol/Dockerfile +++ b/cmd/otelcol/Dockerfile @@ -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 diff --git a/cmd/otelcol/config.yaml b/cmd/otelcol/config.yaml new file mode 100644 index 00000000000..f9f03821b12 --- /dev/null +++ b/cmd/otelcol/config.yaml @@ -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]