Skip to content
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.

Java pods

Roi Rav-Hon edited this page Feb 26, 2018 · 1 revision

Apollo supports tunneling of Jolokia operations via kube-proxy for Java-based pods.
All you need to do is add a label named apollo_jolokia_port to your deployment spec - which will indicate on which port Jolokia is listening to.

For example:

spec:
  template:
    metadata:
      labels:
        apollo_jolokia_port: 9990

After that, you can either use the integrated Hawt.io by clicking on the "coffee bean" icon in the Service version screen next to each pod that have this label - Or you can directly access the API.

For example:

http://your.apollo/api/jolokia/environment/ENV_ID/pod/POD_NAME/read/java.lang:type=Memory/HeapMemoryUsage
Clone this wiki locally