Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-21744

[GSS](7.3.z) Undefined metrics when RBAC enabled floods log with errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.3.8.CR1, 7.3.8.GA
    • 7.3.6.GA
    • MP Metrics
    • None
    • +
    • Hide
      1. Install fresh Wildfly 24.0.0.Beta1
      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 24.0.0.Beta1 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

              spyrkob Bartosz Spyrko-Smietanko
              rhn-support-yvedpath Yogesh Vedpathak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: