Skip to content

Commit

Permalink
Add fluentforward receiver in ECS/EC2 default config (open-telemetry#…
Browse files Browse the repository at this point in the history
…2537)

Enable fluentforward receiver in the default ECS/EC2 configuration so users with [docker logging driver](https://docs.docker.com/config/containers/logging/fluentd/) can easily forward their logs through the collector
  • Loading branch information
dmitryax authored Feb 7, 2023
1 parent 768ee80 commit 155c8e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/otelcol/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ COPY --chown=999 config/collector/ecs_ec2_config.yaml /etc/otel/collector/ecs_ec

USER splunk-otel-collector
ENTRYPOINT ["/otelcol"]
EXPOSE 13133 14250 14268 4317 4318 6060 8888 9411 9443 9080
EXPOSE 13133 14250 14268 4317 4318 6060 8006 8888 9411 9443 9080
5 changes: 4 additions & 1 deletion cmd/otelcol/config/collector/ecs_ec2_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ extensions:
size_mib: ${SPLUNK_BALLAST_SIZE_MIB}

receivers:
# The fluentforward receiver can be used to forward logs from the Docker fluentd logging driver.
fluentforward:
endpoint: 0.0.0.0:8006
hostmetrics:
collection_interval: 10s
scrapers:
Expand Down Expand Up @@ -153,7 +156,7 @@ service:
processors: [memory_limiter, batch, filter, resourcedetection/internal]
exporters: [signalfx]
logs:
receivers: [otlp]
receivers: [otlp, fluentforward]
processors:
- memory_limiter
- batch
Expand Down

0 comments on commit 155c8e8

Please sign in to comment.