Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-21577

Micrometer application metrics missing in WildFly 39.0.1.Final

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 39.0.1.Final
    • Micrometer
    • None
    • ---
    • ---

      Micrometer metrics missing in WildFly 39.0.1.Final

      Environment
      -----------
      WildFly: 39.0.1.Final
      Last working version: 38.0.1.Final
      Java: 17

      Description
      -----------
      After upgrading from WildFly 38.0.1.Final to 39.0.1.Final
      Micrometer metrics of wildfly and of EAR application are no longer exposed.

       

      In the code I registered some metrics as documented and do it in a Singleton / StartUp Bean:

       
      @Singleton
      @Startup
      ...

      @Inject
      private MeterRegistry meterRegistry;

       

      Snippet from `standalone.xml`:

      {{<subsystem xmlns="urn:wildfly:micrometer:1.1" exposed-subsystems="datasources jpa ejb3">}}
      {{{{ <otlp-registry endpoint="http://localhost:4318/v1/metrics" step="60"/>}}}}
      {{</subsystem>}}
       
      The micrometer subsystem initializes correctly but
      the metrics endpoint does not contain application metrics. 

       

      The same configuration works correctly with WildFly 38.

       

      Investigation
      -------------
      The micrometer extension changed in WildFly 39.

      New classes appeared:
      org.wildfly.extension.micrometer.registry.ApplicationRegistry
      org.wildfly.extension.micrometer.registry.ApplicationRegistry$ApplicationMore

      Replacing the micrometer module with the one from WildFly 38
      restores the metrics.

              jaslee@redhat.com Jason Lee
              a.niemeyer@euroimmun.de Andreas Niemeyer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: