File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ ENV_PLATFORM=local
2525OTEL_COLLECTOR_HOST = otelcol
2626OTEL_COLLECTOR_PORT_GRPC = 4317
2727OTEL_COLLECTOR_PORT_HTTP = 4318
28+ OTEL_COLLECTOR_CONFIG = ./src/otelcollector/otelcol-config.yml
29+ OTEL_COLLECTOR_CONFIG_EXTRAS = ./src/otelcollector/otelcol-config-extras.yml
2830OTEL_EXPORTER_OTLP_ENDPOINT = http://${ OTEL_COLLECTOR_HOST } :${ OTEL_COLLECTOR_PORT_GRPC }
2931PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT = http://localhost:8080/otlp-http/v1/traces
3032
Original file line number Diff line number Diff line change @@ -584,8 +584,8 @@ services:
584584 restart : unless-stopped
585585 command : [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ]
586586 volumes :
587- - ./src/otelcollector/otelcol-config.yml :/etc/otelcol-config.yml
588- - ./src/otelcollector/otelcol-config-extras.yml :/etc/otelcol-config-extras.yml
587+ - ${OTEL_COLLECTOR_CONFIG} :/etc/otelcol-config.yml
588+ - ${OTEL_COLLECTOR_CONFIG_EXTRAS} :/etc/otelcol-config-extras.yml
589589 ports :
590590 - " ${OTEL_COLLECTOR_PORT_GRPC}"
591591 - " ${OTEL_COLLECTOR_PORT_HTTP}"
Original file line number Diff line number Diff line change @@ -694,8 +694,8 @@ services:
694694 restart : unless-stopped
695695 command : [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ]
696696 volumes :
697- - ./src/otelcollector/otelcol-config.yml :/etc/otelcol-config.yml
698- - ./src/otelcollector/otelcol-config-extras.yml :/etc/otelcol-config-extras.yml
697+ - ${OTEL_COLLECTOR_CONFIG} :/etc/otelcol-config.yml
698+ - ${OTEL_COLLECTOR_CONFIG_EXTRAS} :/etc/otelcol-config-extras.yml
699699 ports :
700700 - " ${OTEL_COLLECTOR_PORT_GRPC}"
701701 - " ${OTEL_COLLECTOR_PORT_HTTP}"
You can’t perform that action at this time.
0 commit comments