This Spring Boot application uses Jolokia to present a REST interface to the Pivotal Cloud Foundry JMX Bridge, and obfuscates the need to add target information to every request.
mvn clean package
Get the necessary of the JMX Provider VM by
- Log into PCF Ops Manager
- Click on the
JMX Bridge
tile - Click on the Status tab
- Get the IP Address from the
JMX Provider
row - Click on the Credentials tab
- Under
JMX Provider
, click theLink to Credentials
forCredentials
and get the username and password.
cf push jmx-bridge-proxy -p target/jmx-bridge-proxy-0.0.1-SNAPSHOT.jar --no-start
cf set-env jmx-bridge-proxy JMX_BRIDGE_HOST <JMX Provider IP>
cf set-env jmx-bridge-proxy JMX_BRIDGE_USER <JMX User>
cf set-env jmx-bridge-proxy JMX_BRIDGE_PASSWORD <JMX Password>
cf start jmx-bridge-proxy