That package is indeed problematic. And may be even more so in the future on JDK9+ with the module system, where modules like this may be totally encapsulated away.--On Fri, Oct 27, 2017 at 5:07 AM, John Mazzitelli <mazz@redhat.com> wrote:Take a look at Prometheus's HTTPServer class:
https://github.com/prometheus/client_java/blob/master/simple client_httpserver/src/main/ java/io/prometheus/client/ exporter/HTTPServer.java#L22- L24
This Prometheus HTTPServer class is what jmx exporter uses for its metrics endpoint - see:
https://github.com/prometheus/jmx_exporter/blob/master/jmx_p rometheus_javaagent/src/main/j ava/io/prometheus/jmx/JavaAgen t.java#L8
https://github.com/prometheus/jmx_exporter/blob/master/jmx_p rometheus_httpserver/src/main/ java/io/prometheus/jmx/WebServ er.java#L7
Since it uses com.sun.net.httpserver classes under the covers, I'll assume this rules out support for, say, IBM's JVM (does IBM's JRE implement these?). I think this is available on OpenJDK but didn't check to make 100% sure.
_______________________________________________
hawkular-dev mailing list
hawkular-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hawkular-dev
Reg. Adresse: Red Hat GmbH, Technopark II, Haus C,Werner-von-Siemens-Ring 14, D-85630 GrasbrunnHandelsregister: Amtsgericht München HRB 153243Geschäftsführer: Charles Cachera, Michael Cunningham, Michael O'Neill, Eric Shander
_______________________________________________
hawkular-dev mailing list
hawkular-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hawkular-dev