Closed r00ta closed 4 years ago
is it working on quarkus?
Yep, following the same steps on jbpm-quarkus-example
(annotating the ProcessEventListenerConfig
with @ApplicationScoped
instead of @Component
) it works as expected
the problem is caused by configuration for which packages to scan for JAX-RS components
Somehow the prometheus add-on uses wrong package name and due to the cannot be found by default. It's classname is in org.kie.addons...
while it should be in org.kie.kogito....
you can workaround this be setting following in 'application.properties'
resteasy.jaxrs.scan-packages=org.kie.kogito.**,org.kie.addons.**
does this still apply? can we fix this in the addon?
I'd say it should be fixed in the prometheus-monitoring-addon to use org.kie.kogito as package
this property fix is more of a workaround
resolved
Hi,
I'm trying to use the monitoring addon on Springboot and apparently the endpoint
metrics
is not exposed.How to reproduce:
1) Checkout https://github.com/kiegroup/kogito-examples/tree/master/jbpm-springboot-example 2) add the dependency
To the
pom.xml
And create the classProcessEventListenerConfig
:3) run the app and execute
4) go to
http://localhost:8080/metrics
-> endpoint not available.