From 8742d7bf3304e330040e68f2b1e28a435fb3037e Mon Sep 17 00:00:00 2001 From: Javier Evans Date: Wed, 15 Nov 2023 07:13:09 -0800 Subject: [PATCH] fix to simple otel collector and port forwarding script --- bin/test-forward.sh | 2 +- .../observability/otel-objects/otel-collector.yaml | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/test-forward.sh b/bin/test-forward.sh index 87d4443..cf5fbd6 100755 --- a/bin/test-forward.sh +++ b/bin/test-forward.sh @@ -62,7 +62,7 @@ kubectl port-forward service/prometheus-kube-prometheus-prometheus --namespace p echo $! >"$PID04" ## Elasticsearch Tunnel -kubectl port-forward service/elastic-coordinating-only --namespace logstore 9200:9200 & +kubectl port-forward service/elastic-elasticsearch --namespace logstore 9200:9200 & echo $! >"$PID05" ## Legend diff --git a/pulumi/python/kubernetes/observability/otel-objects/otel-collector.yaml b/pulumi/python/kubernetes/observability/otel-objects/otel-collector.yaml index 8a04842..746b3db 100644 --- a/pulumi/python/kubernetes/observability/otel-objects/otel-collector.yaml +++ b/pulumi/python/kubernetes/observability/otel-objects/otel-collector.yaml @@ -8,7 +8,9 @@ spec: otlp: protocols: grpc: + endpoint: 0.0.0.0:9978 http: + endpoint: 0.0.0.0:9979 processors: memory_limiter: check_interval: 1s @@ -19,11 +21,11 @@ spec: timeout: 10s exporters: - debug: + logging: service: pipelines: traces: receivers: [otlp] - processors: [] - exporters: [debug] + processors: [batch] + exporters: [logging]