Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-32202

Upgrade simpleclient to 0.16.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2023.0
    • Fix Version/s: None
    • Component/s: Monitoring
    • Backlog priority:
      750
    • Sprint:
      nxplatform #104
    • Story Points:
      2

      Description

      Starting Nuxeo LTS 2023 with metrics enabled

      metrics.enabled=true
      
      # prometheus
      metrics.prometheus.enabled=true
      metrics.prometheus.port=9090
      
      #jmx
      metrics.jmx.enabled=true
      

      will cause an error on startup

      Exception in thread "prometheus-http-1-1" java.lang.NoClassDefFoundError: io/prometheus/client/SampleNameFilter
      	at io.prometheus.client.exporter.HTTPServer$HTTPMetricHandler.handle(HTTPServer.java:98)
      	at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:95)
      	at jdk.httpserver/sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:82)
      	at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:98)
      	at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:852)
      	at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:95)
      	at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:819)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.lang.ClassNotFoundException: io.prometheus.client.SampleNameFilter
      	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1412)
      	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1220)
      	... 10 more
      

      This is due to the fact that simpleclient-httpserver is in version 0.16.0 whereas simpleclient, which should contains io.prometheus.client.SampleNameFilter, is in version 0.6.0

      An upgrade of the "simpleclient" lib in LTS 2023 would fix the issue.

      Note that a mismatch is also present in LTS 2021 with simpleclient-httpserver 0.9.0 and simpleclient still in 0.6.0

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tmartins Thierry Martins
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: