Error integrating Airbyte with Opentelemetry on K8s

Summary

Error message related to a java.net.PortUnreachableException when trying to integrate Airbyte with Opentelemetry on Kubernetes


Question

Hi I try to integrate the airbyte with opentelemetry on k8s, but the airbyte-metrics has errors:

2024-09-11 07:19:59 e[36mDEBUGe[m i.m.m.h.m.HealthMonitorTask(lambda$monitor$1):106 - Health monitor result for service: status UP
2024-09-11 07:19:59 e[36mDEBUGe[m i.m.m.h.m.HealthMonitorTask(lambda$monitor$1):106 - Health monitor result for diskSpace: status UP
2024-09-11 07:19:59 e[36mDEBUGe[m i.m.m.h.m.HealthMonitorTask(lambda$monitor$1):106 - Health monitor result for jdbc: status UP
2024-09-11 07:20:00 e[33mWARNe[m i.m.s.r.u.Loggers$Slf4JLogger(warn):304 - [942ade7d, L:/127.0.0.1:52827 - R:localhost/127.0.0.1:8125] An exception has been observed post termination
java.net.PortUnreachableException: recvAddress(..) failed: Connection refused
	at io.micrometer.shaded.io.netty.channel.epoll.EpollDatagramChannel.translateForConnected(EpollDatagramChannel.java:619) ~[micrometer-registry-statsd-1.13.3.jar:1.13.3]
	at io.micrometer.shaded.io.netty.channel.epoll.EpollDatagramChannel.access$600(EpollDatagramChannel.java:56) ~[micrometer-registry-statsd-1.13.3.jar:1.13.3]
	at io.micrometer.shaded.io.netty.channel.epoll.EpollDatagramChannel$EpollDatagramChannelUnsafe.epollInReady(EpollDatagramChannel.java:547) ~[micrometer-registry-statsd-1.13.3.jar:1.13.3]
	at io.micrometer.shaded.io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:501) ~[micrometer-registry-statsd-1.13.3.jar:1.13.3]
	at io.micrometer.shaded.io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:399) ~[micrometer-registry-statsd-1.13.3.jar:1.13.3]
	at io.micrometer.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994) ~[micrometer-registry-statsd-1.13.3.jar:1.13.3]
	at io.micrometer.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[micrometer-registry-statsd-1.13.3.jar:1.13.3]
	at io.micrometer.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[micrometer-registry-statsd-1.13.3.jar:1.13.3]
	at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: io.micrometer.shaded.io.netty.channel.unix.Errors$NativeIoException: recvAddress(..) failed: Connection refused```

<br>

---

This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C021JANJ6TY/p1726039532712429) if you want 
to access the original thread.

[Join the conversation on Slack](https://slack.airbyte.com)

<sub>
["error", "integrating", "airbyte", "opentelemetry", "k8s", "java.net.portunreachableexception"]
</sub>

Here is my configuration


  metrics:
    metricClient: "otel"
    otelCollectorEndpoint: "<http://airbyte-collector-amp-collector.kube-system.svc:4317>"
    
metrics:
  enabled: true```

telent to the http://airbyte-collector-amp-collector.kube-system.svc:4317 is connected