From 5b7f647ca7d477234793541d56791346a2e7dd3f Mon Sep 17 00:00:00 2001 From: Sam Xie Date: Wed, 11 Dec 2024 16:01:29 -0800 Subject: [PATCH] Update otel collector config to make it clear (#392) --- example/otel-collector/otel-collector.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/example/otel-collector/otel-collector.yaml b/example/otel-collector/otel-collector.yaml index 0ef4efe..81d853b 100644 --- a/example/otel-collector/otel-collector.yaml +++ b/example/otel-collector/otel-collector.yaml @@ -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: @@ -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] \ No newline at end of file + processors: [memory_limiter, batch] + exporters: [prometheus]