Thank you for your quick response, As per your inputs
I updated the container with -p 4318:4318 then I executed the below command but not work getting the same issue Command: K6_OTEL_HTTP_EXPORTER_INSECURE=true K6_OTEL_HTTP_EXPORTER_ENDPOINT=localhost:4318 K6_OTEL_METRIC_PREFIX=k6_ k6 run --tag test-id=Perf123 -o experimental-opentelemetry scripts/test.js
Why are you using udp in -p 4318:4318/udp? It isn’t required, you need to use tcp which is the default form so you don’t have to specify it as I posted in my previous examples.
It sounds like you’re struggling with the Docker networking setup more than k6 and related. I suggest asking for support on Docker’s community/forum or StackOverflow to get better support.
in the logs, I have seen this information after executing the command and continuously seeing the above issue
2024-08-28 06:19:38 UTC | PROCESS | INFO | (pkg/process/runner/runner.go:228 in logCheckDuration) | Finish container check #20 in 4.272398ms
2024-08-28 06:19:48 UTC | TRACE | INFO | (run.go:266 in Info) | No data received
2024-08-28 06:20:48 UTC | TRACE | INFO | (run.go:266 in Info) | No data received
2024-08-28 06:21:26 UTC | CORE | INFO | (pkg/serializer/serializer.go:418 in sendMetadata) | Sent metadata payload, size (raw/compressed): 2579/920 bytes.
2024-08-28 06:21:28 UTC | CORE | INFO | (pkg/serializer/serializer.go:442 in SendProcessesMetadata) | Sent processes metadata payload, size: 1410 bytes.
2024-08-28 06:21:58 UTC | TRACE | INFO | (run.go:266 in Info) | No data received
2024-08-28 06:22:58 UTC | TRACE | INFO | (run.go:266 in Info) | No data received
2024-08-28 06:22:58 UTC | PROCESS | INFO | (pkg/process/runner/runner.go:228 in logCheckDuration) | Finish container check #40 in 4.198326ms
2024-08-28 06:24:08 UTC | TRACE | INFO | (run.go:266 in Info) | No data received