AW: Install a feature multiple times with different configurations

2022-12-01 Thread Karsten Blume
Hello Ephemeris, regarding 2.: - all the cfg files of format -.cfg will be loaded by the same cm; I don't remember the location, but could be directly in the karaf docs. - pax-jms-config, pax-jdbc-config handle also multiple cfg files (and decanter as said before) BR -Ursprüngliche

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

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

import java.lang.runtime: WARNING - unable to find matching export - How to solve

2022-12-01 Thread Jaap Gordijn
Dear all, I am starting with Apache Karaf/OSGI, and I have created my first bundles. Now I have the following unresolved dependency: import java.lang.runtime: WARNING - unable to find matching export My question is: how do I debug this, e.g. find where this dependency is required. I do not use

Re: Install a feature multiple times with different configurations

2022-12-01 Thread Ephemeris Lappis
Hello. Well, I've found some examples, and adapting them I have more or less something that should work. See my attached blueprint. Nevertheless, I have some questions about managed service factories. 1) I've tried to use a single CFG file, setting the same persistent ID to define two services