Transferring metrics to a port other than management

57 views
Skip to first unread message

Alexander Belya (AlexSW)

unread,
Jun 3, 2025, 10:43:46 AM6/3/25
to WildFly
Hi, everyone.
I am interested in the following question. Is it possible to move the interface with metrics (https://localhost:9993/metrics) to another port? If yes, how can it be realized?

James Perkins

unread,
Jun 6, 2025, 11:01:00 AM6/6/25
to WildFly
Are you using the metrics subsystem or micrometer? Which version of WildFly are you using?

Alexander Belya (AlexSW)

unread,
Jun 7, 2025, 8:02:35 PM6/7/25
to WildFly
I'm using the metrics subsystem. WildFly version is 32.0.1.

суббота, 7 июня 2025 г. в 01:01:00 UTC+10, James Perkins:

James Perkins

unread,
Jun 9, 2025, 11:11:35 AM6/9/25
to WildFly
The port is the same as the management port. You'd have to change the management port to change the metrics port. It seems to already be changed the default management port from 9990 to 9993.

Alexander Belya (AlexSW)

unread,
Jun 9, 2025, 6:47:51 PM6/9/25
to WildFly
So it turns out that because of this dependency with the management port, the metrics port cannot be split and moved to another port?

вторник, 10 июня 2025 г. в 01:11:35 UTC+10, James Perkins:

James Perkins

unread,
Jun 9, 2025, 8:24:32 PM6/9/25
to WildFly
Correct. The metrics subsystem is tied to the management port https://docs.wildfly.org/32/Admin_Guide.html#metrics-metrics-http-endpoint.

Alexander Belya (AlexSW)

unread,
Jun 9, 2025, 9:24:10 PM6/9/25
to WildFly
But I assume there is a micrometer subsystem that also allows you to show metrics and that can be bound to a separate port? (https://docs.wildfly.org/32/Admin_Guide.html#Micrometer_Metrics )
So, it is possible to disable the metrics subsystem and configure the micrometer subsystem to collect and show the same metrics that were shown in metrics?
вторник, 10 июня 2025 г. в 10:24:32 UTC+10, James Perkins:

Jason Lee

unread,
Jun 10, 2025, 12:10:08 PM6/10/25
to Alexander Belya (AlexSW), WildFly
Sort of. Micrometer can be configured to show roughly the same metrics (and more) than the WildFly Metrics subsystem. The format will probably be slightly different, and there will certainly be more data, but it's intended as a replacement. For the record, it is not recommended that both be run simultaneously: https://docs.wildfly.org/32/Admin_Guide.html#micrometer-required-extension-metrics

That said, Micrometer is also tied to the management port.

Jason Lee

Principal Software Engineer

Red Hat JBoss EAP

Java Champion



--
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 visit https://groups.google.com/d/msgid/wildfly/b8779bec-04fd-431c-b904-9f3ad5cc84cdn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages