[ 
https://issues.apache.org/jira/browse/TOMEE-4292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799395#comment-17799395
 ] 

Aziz Mwondha commented on TOMEE-4292:
-------------------------------------

Thanks for the response. I will run another round of installations to test 
this. 

Is this an environment parameter, system paramater, some config in bean XML 
files, a web descriptor?

Should this me mentioned in the docs some place?

> Tomee Plus missing metrics endpoint
> -----------------------------------
>
>                 Key: TOMEE-4292
>                 URL: https://issues.apache.org/jira/browse/TOMEE-4292
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 9.1.2
>            Reporter: Aziz Mwondha
>            Priority: Major
>         Attachments: tomee-912-microprofile-startup.txt, 
> tomee-912-plus-exception.txt, tomee-912-plus-startup.txt
>
>
> My applications have been running in Tomee microprofile for several months.
> I decided to try out Tomee Plus and I realised that I cannot get metrics into 
> prometheus.
> The server fails and responds with an HTTP500 error.
> The strangest thing is that this happens on the first request.
> All subsequent requests get HTTP404.
> Please see the attached files for console outputs.
> || File || Contents ||
> | tomee-912-plus-startup.txt | Stdout for Tomee 9.1.2 Plus |
> | tomee-912-plus-exception.txt | The error response from posted requests |
> | tomee-912-microprofile-startup.txt | Stdout for Tomee 9.1.2 Microprofile |
> One thing I noticed in the standard output is that:
> - Service URI: http://localhost:7731/ess-provider/health is missing in the 
> Plus output, while it is present in Microprofile output. Can this mean that 
> the handlers for /metrics are missing?
> The list of "exception mappers" also differs between these 2 server versions.
> The error can be reproduced by deploying a simple war containing only 1 class 
> as provided here:
> {noformat}
> @ApplicationScoped
> @Path("index")
> public class Index {
>     @GET
>     @Produces(\{MediaType.TEXT_HTML})
>     @Counted(name = Counters.HTTP_REQUESTS,
>             tags = \{Labels.RESOURCE_USERINPUT, Labels.ACTION_SELECT},
>             absolute = true,
>             description = Counters.HTTP_REQUESTS_DESCRIPTION)
>     public Response requestForSMSNumber(
>             @QueryParam("tid") String tid) {
>         return responder.contentResponse("<html>HELLO</html>");
>     }
> }
> {noformat}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to