[JBoss JIRA] (WFLY-12543) Subsystem metrics are missing from microprofile-metrics JSON output
by Richard DiCroce (Jira)
[ https://issues.jboss.org/browse/WFLY-12543?page=com.atlassian.jira.plugin... ]
Richard DiCroce commented on WFLY-12543:
----------------------------------------
I just noticed this in the WildFly 17 documentation:
bq. The WildFly metrics (that measures activity in the subsystem or application deployments) are exposed only on the /metrics endpoint with the Prometheus format.
Okay, so I guess this isn't a bug, but that still seems like a strange limitation. It really cripples the usefulness of the JSON format.
> Subsystem metrics are missing from microprofile-metrics JSON output
> -------------------------------------------------------------------
>
> Key: WFLY-12543
> URL: https://issues.jboss.org/browse/WFLY-12543
> Project: WildFly
> Issue Type: Bug
> Components: MP Metrics
> Affects Versions: 17.0.1.Final, 18.0.0.Beta1
> Reporter: Richard DiCroce
> Assignee: Jeff Mesnil
> Priority: Major
>
> Calling /metrics with Accept = application/json results in much fewer metrics being returned than when it is called without Accept (and thus returns data in the OpenMetrics format). Specifically, all the subsystem metrics (anything affected by the prefix configured in the microprofile-metrics subsystem) are missing.
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 10 months
[JBoss JIRA] (WFLY-12543) Subsystem metrics are missing from microprofile-metrics JSON output
by Richard DiCroce (Jira)
Richard DiCroce created WFLY-12543:
--------------------------------------
Summary: Subsystem metrics are missing from microprofile-metrics JSON output
Key: WFLY-12543
URL: https://issues.jboss.org/browse/WFLY-12543
Project: WildFly
Issue Type: Bug
Components: MP Metrics
Affects Versions: 18.0.0.Beta1, 17.0.1.Final
Reporter: Richard DiCroce
Assignee: Jeff Mesnil
Calling /metrics with Accept = application/json results in much fewer metrics being returned than when it is called without Accept (and thus returns data in the OpenMetrics format). Specifically, all the subsystem metrics (anything affected by the prefix configured in the microprofile-metrics subsystem) are missing.
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 10 months
[JBoss JIRA] (WFLY-12542) NPE when microprofile-metrics subsystem is enabled but microprofile-config is not
by Richard DiCroce (Jira)
Richard DiCroce created WFLY-12542:
--------------------------------------
Summary: NPE when microprofile-metrics subsystem is enabled but microprofile-config is not
Key: WFLY-12542
URL: https://issues.jboss.org/browse/WFLY-12542
Project: WildFly
Issue Type: Bug
Components: MP Metrics
Affects Versions: 17.0.1.Final
Reporter: Richard DiCroce
Assignee: Jeff Mesnil
If the microprofile-metrics subsystem is present in the WildFly config but the microprofile-config subsystem is not, WildFly dies due to a NPE:
{code}
2019-09-11 17:49:43,522 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("subsystem" => "microprofile-metrics-smallrye")]): java.lang.NullPointerException
at org.wildfly.extension.microprofile.metrics.MicroProfileMetricsSubsystemAdd$2.execute(MicroProfileMetricsSubsystemAdd.java:90)
at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:999) [wildfly-controller-9.0.2.Final.jar:9.0.2.Final]
at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:743) [wildfly-controller-9.0.2.Final.jar:9.0.2.Final]
at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:467) [wildfly-controller-9.0.2.Final.jar:9.0.2.Final]
at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1412) [wildfly-controller-9.0.2.Final.jar:9.0.2.Final]
at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:521) [wildfly-controller-9.0.2.Final.jar:9.0.2.Final]
at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:472) [wildfly-controller-9.0.2.Final.jar:9.0.2.Final]
at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:434) [wildfly-controller-9.0.2.Final.jar:9.0.2.Final]
at org.jboss.as.server.ServerService.boot(ServerService.java:435) [wildfly-server-9.0.2.Final.jar:9.0.2.Final]
at org.jboss.as.server.ServerService.boot(ServerService.java:394) [wildfly-server-9.0.2.Final.jar:9.0.2.Final]
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:374) [wildfly-controller-9.0.2.Final.jar:9.0.2.Final]
at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_212]
{code}
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 10 months