I'm having issues getting JVM metrics sent to my otlp endpoint.
Wildfly: 31
OTLP endpoint software: Elastic APM integration
After adding the opentelemetry subsystem to my standalone, I'm able to get spans for my REST endpoints.
When using the opentelemetry-api maven dependency I'm able to manually create span.
However, I want get metrics as well. After reading the Wildfly Admin Guide my understanding is that I need to add the microprofile.telemetry subsystem and enable it with otel.sdk.disabled=false if I want metrics, however I don't get any metrics.
At Wildfly startup something along the lines of: "MicroProfile Telemetry started..." is logged.
If I manually add the elastic-apm-agent.jar to JAVA_OPTS I automatically get metrics. But my understanding is that I should instead use the opentelemetry and microprofile.telemetry subsystem.
Any thoughts why I'm not getting metrics?