WildFly 28.0.0.Final - WARNING Failed to publish metrics to OTLP receiver

972 views
Skip to first unread message

Roger Lee

unread,
Apr 23, 2023, 12:56:39 PM4/23/23
to WildFly
Update to 28.0.0.Final & App appears to run fine. Get loads of WARNING on:

WARNING [io.micrometer.registry.otlp.OtlpMeterRegistry] (otlp-metrics-publisher) Failed to publish metrics to OTLP receiver: java.net.ConnectException: Connection refused

at java.base/sun.nio.ch.Net.pollConnect(Native Method)

at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:673)

at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)

at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:585)

at java.base/java.net.Socket.connect(Socket.java:666)

at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:178)

at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:532)

at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:637)

at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:280)

at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:385)

at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:407)

at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1308)

at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1241)

at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1127)

at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1056)

at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1429)

at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1400)

at io.mic...@1.9.3//io.micrometer.core.ipc.http.HttpUrlConnectionSender.send(HttpUrlConnectionSender.java:98)

at io.mic...@1.9.3//io.micrometer.core.ipc.http.HttpSender$Request$Builder.send(HttpSender.java:305)

at io.mic...@1.9.3//io.micrometer.registry.otlp.OtlpMeterRegistry.publish(OtlpMeterRegistry.java:109)

at io.mic...@1.9.3//io.micrometer.core.instrument.push.PushMeterRegistry.publishSafely(PushMeterRegistry.java:54)

at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)

at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358)

at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)

at java.base/java.lang.Thread.run(Thread.java:1623)


Jason Lee

unread,
Apr 24, 2023, 6:21:41 PM4/24/23
to Roger Lee, WildFly
That is the Micrometer extension complaining, and it shouldn't happen out of the box, as Micrometer is opt-in, so it's either manually been enabled or, perhaps, you're running a previous WildFly Preview 27 config. Do either of those sound correct?

Regardless, you can disable that subsystem and the errors should go away:

$ jboss-cli.sh -c
[standalone@localhost:9990 /] /subsystem=micrometer:remove()
[standalone@localhost:9990 /] /extension=org.wildfly.extension.micrometer:remove()
[standalone@localhost:9990 /] reload
[standalone@localhost:9990 /] exit

Jason Lee

Principal Software Engineer

Red Hat JBoss EAP



--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/37b55ef0-aba7-4091-bc90-1c5e76269aa3n%40googlegroups.com.
Message has been deleted
Message has been deleted

Roger Lee

unread,
Apr 26, 2023, 5:10:59 AM4/26/23
to WildFly
connect
./jboss-cli.sh -c etc.

Fixed. TIA. 

Jason Lee

unread,
Apr 27, 2023, 9:59:53 AM4/27/23
to Roger Lee, WildFly
I'm a little confused by the emails. Is this a problem that still persists? It looks like something may be wonky with the Preview configs, which I'll dig into, but, fwiw, I am working on a seemingly related issue:


Jason Lee

Principal Software Engineer

Red Hat JBoss EAP


Roger Lee

unread,
Apr 27, 2023, 10:28:56 AM4/27/23
to WildFly
It's all working. I responded with what I changed to fix. Looks like my message has been deleted/changed. 

Jason Lee

unread,
Apr 27, 2023, 4:02:11 PM4/27/23
to Roger Lee, WildFly
Ok. Great. Yeah, things were formatted oddly or something. Regardless, glad you got it working. I'll try to figure out why you had to do that in the first place. :)

Jason Lee

Principal Software Engineer

Red Hat JBoss EAP


Reply all
Reply to author
Forward
Message has been deleted
0 new messages