77 lines
2.2 KiB
YAML
77 lines
2.2 KiB
YAML
extensions:
|
|
health_check:
|
|
endpoint: 0.0.0.0:13133
|
|
file_storage:
|
|
directory: /var/lib/otelcol/queue
|
|
|
|
receivers:
|
|
otlp:
|
|
protocols:
|
|
grpc:
|
|
endpoint: 0.0.0.0:4317
|
|
http:
|
|
endpoint: 0.0.0.0:4318
|
|
|
|
processors:
|
|
memory_limiter:
|
|
check_interval: 1s
|
|
limit_mib: 384
|
|
spike_limit_mib: 96
|
|
resource/vm2:
|
|
attributes:
|
|
- {key: service.namespace, value: han-processing, action: upsert}
|
|
- {key: deployment.environment, value: "${env:APP_ENV}", action: upsert}
|
|
- {key: service.version, value: "${env:RELEASE_VERSION}", action: upsert}
|
|
attributes/redact:
|
|
actions:
|
|
- {key: http.request.header.authorization, action: delete}
|
|
- {key: http.request.header.cookie, action: delete}
|
|
- {key: url.query, action: delete}
|
|
- {key: url.full, action: delete}
|
|
- {key: http.target, action: delete}
|
|
- {key: http.request.body, action: delete}
|
|
- {key: http.response.body, action: delete}
|
|
- {key: db.statement, action: delete}
|
|
- {key: db.query.text, action: delete}
|
|
- {key: enduser.id, action: delete}
|
|
- {key: user.phone, action: delete}
|
|
- {key: user.email, action: delete}
|
|
- {key: messaging.message.body, action: delete}
|
|
- {key: aws.s3.key, action: delete}
|
|
- {key: s3.object.key, action: delete}
|
|
batch:
|
|
timeout: 5s
|
|
send_batch_size: 1024
|
|
send_batch_max_size: 2048
|
|
|
|
exporters:
|
|
otlp/remote:
|
|
endpoint: "${env:OTEL_REMOTE_ENDPOINT}"
|
|
tls:
|
|
insecure: "${env:OTEL_REMOTE_TLS_INSECURE}"
|
|
sending_queue:
|
|
enabled: true
|
|
storage: file_storage
|
|
queue_size: 10000
|
|
retry_on_failure:
|
|
enabled: true
|
|
initial_interval: 5s
|
|
max_interval: 30s
|
|
max_elapsed_time: 0s
|
|
|
|
service:
|
|
extensions: [health_check, file_storage]
|
|
pipelines:
|
|
traces:
|
|
receivers: [otlp]
|
|
processors: [memory_limiter, resource/vm2, attributes/redact, batch]
|
|
exporters: [otlp/remote]
|
|
metrics:
|
|
receivers: [otlp]
|
|
processors: [memory_limiter, resource/vm2, attributes/redact, batch]
|
|
exporters: [otlp/remote]
|
|
logs:
|
|
receivers: [otlp]
|
|
processors: [memory_limiter, resource/vm2, attributes/redact, batch]
|
|
exporters: [otlp/remote]
|