-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathdocker-compose.yaml
36 lines (35 loc) · 1.15 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: '3'
services:
app:
build: ./
environment:
OTEL_SERVICE_NAME: 'logs-in-context'
# Logs are forwarded to collector using fluentd
OTEL_LOGS_EXPORTER: none
OTEL_EXPORTER_OTLP_ENDPOINT: 'http://collector:4317'
OTEL_EXPERIMENTAL_RESOURCE_DISABLED_KEYS: 'process.command_line,process.command_args'
OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE: 'delta'
OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT: 4095
ports:
- '8080:8080'
logging:
driver: fluentd
options:
fluentd-address: localhost:8006
depends_on:
- collector
collector:
image: otel/opentelemetry-collector-contrib:0.92.0
volumes:
- ./otel-config.yaml:/otel-config.yaml
command: ["--config=/otel-config.yaml"]
environment:
LOG_EXPORTER_LOG_VERBOSITY: "detailed"
NEW_RELIC_OTLP_ENDPOINT: ${NEW_RELIC_OTLP_ENDPOINT}
NEW_RELIC_API_KEY: '${NEW_RELIC_API_KEY}'
ports:
- '4317:4317' # OTLP gRPC receiver
- '4318:4318' # OTLP HTTP receiver
- '13133:13133' # health_check
- '8006:8006' # Fluentd forward receiver
- '8006:8006/udp' # Fluentd forward receiver