Re: Prometheus Metrics Exporting

2022-12-02 Thread Mark Derricutt
On 2/12/2022 at 8:43:41 PM, fpapon wrote: > -javaagent:./jmx_prometheus_javaagent-0.17.2.jar=4:config.yaml > This may be all I need for now - I had seen that earlier and was meaning to try it out - wasn’t 100% sure if it would play nice with OSGi but I guess so. I guess once I provide some

Re: Prometheus Metrics Exporting

2022-12-01 Thread fpapon
Hi, You can make your own bundle by doing the same as we do in Decanter by adding your own metrics: https://github.com/apache/karaf-decanter/blob/main/appender/prometheus/src/main/java/org/apache/karaf/decanter/appender/prometheus/PrometheusServlet.java If you just want to export JMX MBean yo

Prometheus Metrics Exporting

2022-12-01 Thread Mark Derricutt
Hey all, Anyone got any pointers for exporting metrics from Karaf to Prometheus? I have jolokia enabled but would rather not write a custom mapping from that to prometheus. I’m currently experimenting with a bundle wrapping Micrometer but fighting imports/exports at the moment. I do see some ye