This framework integrates the cf-metrics-exporter as a Java agent in the Java buildpack.
Set the following environment variable in the cloud foundry env to enable the agent (via manifest.yml or cf set-env):
CF_METRICS_EXPORTER_ENABLED=true
- CF_METRICS_EXPORTER_ENABLED: Set to
trueto enable the agent (default: disabled). - CF_METRICS_EXPORTER_PROPS: (Optional) Properties string to pass to the agent, e.g.
enableLogEmitter,rpsType=tomcat-bean.
- The agent JAR is downloaded during the buildpack supply phase.
- The agent is injected into the JVM at runtime using the
-javaagentoption. - If
CF_METRICS_EXPORTER_PROPSis set, its value is appended to the-javaagentoption.
CF_METRICS_EXPORTER_ENABLED=true
CF_METRICS_EXPORTER_PROPS="enableLogEmitter,rpsType=tomcat-bean"
- Default version: 0.7.1
- Default download URI: https://github.com/rabobank/cf-metrics-exporter/releases/download/0.7.1/cf-metrics-exporter-0.7.1.jar
- The agent is injected with priority 43 in JAVA_OPTS (after other APM agents).