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

Undefined metrics when RBAC enabled floods log with errors

    XMLWordPrintable

Details

    • Hide
      1. Install fresh Wildfly 23.0.0.Fonal
      2. Start the server using the MP config: standalone.sh -c standalone-microprofile.xml
      3. Access metrics in localhost:9990/metrics.
        1. OK
      4. Enable RBAC with jboss-cli: /core-service=management/access=authorization:write-attribute(name=provider,value=rbac)
      5. Access metrics in localhost:9990/metrics.
        1. ERROR
      Show
      Install fresh Wildfly 23.0.0.Fonal Start the server using the MP config: standalone.sh -c standalone-microprofile.xml Access metrics in localhost:9990/metrics. OK Enable RBAC with jboss-cli: /core-service=management/access=authorization:write-attribute(name=provider,value=rbac) Access metrics in localhost:9990/metrics. ERROR

    Description

      When RBAC is enabled, some metrics are no longer visible. When requesting metrics, the log is flooded with errors such as:

      2021-03-16 15:07:42,004 WARN  [org.wildfly.extension.metrics] (management I/O-1) WFLYMETRICS0004: Unable to convert attribute successful-transaction-count on [
          ("deployment" => "multiple_war_ear.ear"),
          ("subdeployment" => "war1.war"),
          ("subsystem" => "jpa"),
          ("hibernate-persistence-unit" => "multiple_war_ear.ear/war2.war#war2")
      ] to Double value.: java.lang.IllegalArgumentException
      	at org.jboss.dmr@1.5.1.Final//org.jboss.dmr.ModelValue.asDouble(ModelValue.java:77)
      	at org.jboss.dmr@1.5.1.Final//org.jboss.dmr.ModelNode.asDouble(ModelNode.java:391)
      	at org.wildfly.extension.metrics@24.0.0.Beta1-SNAPSHOT//org.wildfly.extension.metrics.WildFlyMetric.getValue(WildFlyMetric.java:58)
      

      Attachments

        Issue Links

          Activity

            People

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: