trouble exposing metrics in a wildfly domain

24 views
Skip to first unread message

Giulio Gentile

unread,
Oct 8, 2025, 8:03:18 AM (10 days ago) Oct 8
to WildFly
Hello everyone,
i hope you can help me, i've been trying to figure out how to get to export metrics,
i have a topology with two hosts X two server groups, so domain mode with 4 servers.
i can see status statistics and datasources in the management interface, but i need a way to expose them so i can bring them to Prometheus.

It might be simple, but i'm a little lost.
i tried using prometheus jmx exporter, but it clashes with wildfly logger and the server won't start.

Does micrometer work in this situation?
Is there an existing API i can use?

thank you,
Giulio 

Emmanuel Hugonnet

unread,
Oct 8, 2025, 8:44:21 AM (10 days ago) Oct 8
to Giulio Gentile, WildFly
There should be a /metrics endpoint on the management port iirc.
Not sure how it is done in domain mode though.

https://issues.redhat.com/browse/WFLY-11529
https://docs.wildfly.org/37/Admin_Guide.html#MicroProfile_Metrics_SmallRye
> --
> 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/fcf93f67-c70e-43d4-baa2-1319bb65235dn%40googlegroups.com
> <https://groups.google.com/d/msgid/wildfly/fcf93f67-c70e-43d4-baa2-1319bb65235dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Jason Lee

unread,
Oct 15, 2025, 11:08:56 PM (3 days ago) Oct 15
to Emmanuel Hugonnet, Giulio Gentile, WildFly
If I recall correctly, metrics doesn’t work in domain mode, as it needs a context on the management interface, which is not available in domain.


-- 
Jason Lee
Principal Software Engineer
IBM Java Middleware
Java Champion

Reply all
Reply to author
Forward
0 new messages