Micrometer metrics from undertow is missing the Resource tag or PATH tag

80 views
Skip to first unread message

Martin Wiklander

unread,
Dec 18, 2024, 4:59:15 AM12/18/24
to WildFly
We have a running instance of Wildfly 33.0.1 where we have enabled micrometer metrics. Checking the metrics we have the very useful metrics: 
    undertow_request_count_total 
Though I it is missing the path tag (resource or uri)? 
For example I thought it would be possible to get something like this 

    undertow_request_count_total {path=/rest/v2/hot/smurfs , resource=SmurfResource.java } 

or something in the line with that? I could of course create my own metric for this but I thought this was something that would come just out of the box? Does someone know if something like this is possible to configure to get? Or have I missed something?

Regards,
Martin


Jason Lee

unread,
Jan 2, 2025, 1:39:56 PMJan 2
to Martin Wiklander, WildFly
Those types of metrics are automagically registered by code that walks through management resource tree on deployment, so it's hard to say off hand whether or not that can be easily fixed. If you wouldn't mind filing a JIRA for that, I'll try to take a look and see what we can do: https://issues.jboss.org/browse/WFLY

Thanks!

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/3a9915d6-ca2e-4b54-8186-85ef020c1bdcn%40googlegroups.com.

Martin Wiklander

unread,
Jan 3, 2025, 4:52:02 AMJan 3
to WildFly
Thanks for answering.

I have created an Jira: https://issues.redhat.com/browse/WFLY-20232 I added you as a need info from name.

Jason Lee

unread,
Jan 6, 2025, 10:57:14 AMJan 6
to Martin Wiklander, WildFly
Got it. Thanks. I'll try to get to that as soon as I can.

Jason Lee

Principal Software Engineer

Red Hat JBoss EAP

Java Champion


Reply all
Reply to author
Forward
0 new messages