Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8963

URI is always unknown in server request metrics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0, 4.0.1, 4.0.2, 4.0.3
    • 4.0.4
    • JAX-RS
    • None
    • Unknown

    Description

      Since 4.0.0 (combined with spring boot 3.x), actuator prometheus - http_server_request - stats are not good anymore, they are missing the correct uri tag that is now always UNKNOWN.

      In 3.6.2 (combined with spring boot 2.7.x) this was working perfectly.

      Here attached a pet project to reproduce the issue.

      Run :

      curl -s http://127.0.0.1:8080/services/sayHello/world
      curl -s http://127.0.0.1:8080/services/notFound
      Hello world, Welcome to CXF RS Spring Boot World!!!
      curl -s http://127.0.0.1:8080/actuator/prometheus | grep requests_seconds_count
      cxf_server_requests_seconds_count{exception="None",method="GET",operation="sayHello",outcome="SUCCESS",status="200",uri="/services/sayHello/
      {a}
      ",} 1.0
      http_server_requests_seconds_count
      {error="none",exception="none",method="GET",outcome="SUCCESS",status="200",uri="UNKNOWN",}
      1.0
      http_server_requests_seconds_count
      {error="none",excetpion="none",method="GET",outcome="CLIENT_ERROR",status="404",uri="NOT_FOUND",}
      1.0
      

       

      So cxf_server_requests are good but not http_server_requests

      Worth to notice there was a fix working a while ago : https://github.com/apache/cxf/commit/cab4513374a14fd3549bd0cf86ef9b4996637546

      Attachments

        1. example.zip
          9 kB
          Frédéric CURVAT

        Issue Links

          Activity

            People

              reta Andriy Redko
              fcurvat Frédéric CURVAT
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: