Skip to content

Commit

Permalink
Update otel collector config to make it clear (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
XSAM authored Dec 12, 2024
1 parent aaf4c57 commit 5b7f647
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions example/otel-collector/otel-collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ receivers:
grpc:
endpoint: "0.0.0.0:4317"
processors:
batch:
# https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/memorylimiterprocessor
memory_limiter:
# 75% of total memory
limit_percentage: 75
check_interval: 1s
extensions:
health_check: {}
exporters:
Expand All @@ -15,17 +21,18 @@ exporters:
insecure: true
prometheus:
endpoint: 0.0.0.0:9090
logging:
debug:
verbosity: detailed

service:
extensions: [health_check]
pipelines:
traces:
receivers: [otlp]
processors: []
processors: [memory_limiter, batch]
exporters: [otlp]

metrics:
receivers: [otlp]
processors: []
exporters: [prometheus, logging]
processors: [memory_limiter, batch]
exporters: [prometheus]

0 comments on commit 5b7f647

Please sign in to comment.