Hi Roberto,

There is no link between microprofile and JMX but you can register any JMX
metric in microprofile-metrics programmatically (you can have a look to
https://github.com/apache/geronimo-metrics/blob/33ca63305677c0c62c975f7d76ed1a314d9382e2/geronimo-metrics-common/src/main/java/org/apache/geronimo/microprofile/metrics/common/BaseMetrics.java#L48)
so theorically it is possible to forward them all at camel context
initialization - not sure it is desired but doable (note that depending
your version of microprofile this code can work directly or not since the
API is broken with almost all release so can need some tuning).
The side note is that all the metrics are available elsewhere (generally
from the management module or camel context) so it can be faster to just
read them from where they are instead of using JMX as a bridge.

Hope it helps.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le mer. 1 déc. 2021 à 20:05, Roberto Camelk <[email protected]>
a écrit :

> OK, thanks! But it is a little tricky for me...
>
> Is there no correlation possibility between the JMX metrics and the
> Microprofile Metrics at all?
>
> A challenge, try adapt this grafana dashboard based on JMX metrics:
>
> https://github.com/weimeilin79/camel-k-example-prometheus/blob/master/grafana/SampleCamelDashboard.json
> To use Microprofile Metrics...???
>

Reply via email to