Any Java application which attaches the Jolokia agent during startup can be used like it is the case for the FIS Java / Karaf images but also for other CE driven Java images (though I don't know the details how its configured there).
For external access the agents are typical secured with checking client certificates which have to be signed by the OpenShift CA. This channel is typically used to the let the OpenShift console access Jolokia via the OpenShift API server as proxy. However, you can always configure the Java applications to monitor for a different security mode, too. For example for our FIS image we also allow access from localhost with a random password so that Jolokia can be used for liveness / readiness checks, too. The fabric8 team maintains a generic shell startup script 'run-java-sh' [1] which allows you configure the Jolokia agent easily for your custom images. There's also a project call 'agent-bond' [2] which combines Jolokia with a Prometheus jmx_exporter so that the Java application can be queried for both formats. If you use the for Java applications the Fabric8 base images [3] [4] then you have both already included. Said that, most of this working is moving to a CE maintained community project [5]. And there is of course the equivalent product versions from CE, too. However, I don't know how much support for Jolokia is planned for this community image (cc'ing Kevin who can tell you more wrt CE images). ... roland [1]: https://github.com/fabric8io-images/run-java-sh [2]: https://github.com/fabric8io/agent-bond [3]: https://github.com/fabric8io-images/java [4]: https://hub.docker.com/r/fabric8/java-jboss-openjdk8-jdk/ [5]: https://github.com/jboss-container-images/redhat-openjdk-18-openshift-image On Wed, Jun 28, 2017 at 9:55 PM Srinivas Naga Kotaru (skotaru) < [email protected]> wrote: > Hi > > > > Is there any way we can collect metrics using Jolokia REST API end point? > I knew Openshift using jolokia for Java apps. I’m not sure this is only for > Redhat supplied images or in genera. > > > > Am trying to collect metrics using InfluxDB/telegraf agent from Jolokia > REST API. > > > > > > -- > > *Srinivas Kotaru* > _______________________________________________ > dev mailing list > [email protected] > http://lists.openshift.redhat.com/openshiftmm/listinfo/dev >
_______________________________________________ dev mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
