Files
han-app/VM1_app/codebase/backend/observability/otel-collector.local.yaml
T

46 lines
1.3 KiB
YAML

extensions:
health_check: {endpoint: 0.0.0.0:13133}
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: 192, spike_limit_mib: 48}
resource/common:
attributes:
- {key: service.namespace, value: han-chat, action: upsert}
- {key: deployment.environment, value: local, 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: db.statement, action: delete}
- {key: messaging.message.body, action: delete}
batch: {timeout: 5s}
exporters:
debug:
verbosity: normal
sampling_initial: 2
sampling_thereafter: 500
service:
extensions: [health_check]
pipelines:
traces:
receivers: [otlp]
processors: [memory_limiter, resource/common, attributes/redact, batch]
exporters: [debug]
metrics:
receivers: [otlp]
processors: [memory_limiter, resource/common, attributes/redact, batch]
exporters: [debug]
logs:
receivers: [otlp]
processors: [memory_limiter, resource/common, attributes/redact, batch]
exporters: [debug]