Hello community.
I'm getting back to working on the ticket that caused the Jakarta migration[1] in the first place.
With this comes a question that i'm asking myself.
The library i plan to use[2] ships with a lightweight HttpServer of its own, and this server comes with the "metrics" url embedded[3]. I'm not a fan of starting another HttpServer in OFBiz, knowing that Tomcat is already running. But the PrometheusExposer (name is still work in progress) would be a plugin, and thus can't access the tomcat instance to enable ports. This would be solvable in documentation of the plugin, indicating the lines to add to the catalina ofbiz component to open the port 9400 (prometheus default).

But this still leaves the problem of the "metrics" url, and of the prometheus request handler, that should be an other handler added in the plugin.

To sum up my question, should I be looking for a full integration of the library, with the implementation of a custom RequestHandler, the oppening of an additional Tomcat port, and probably more, or would the fact of setting up a lightweight HttpServer in the plugin (that would run parallel to tomcat) be acceptable ?

Thanks and regards.
Gaetan

[1] https://issues.apache.org/jira/projects/OFBIZ/issues/OFBIZ-12990

[2] https://prometheus.github.io/client_java//

[3] https://prometheus.github.io/client_java/exporters/httpserver/

Reply via email to