This document discusses making application monitoring a native feature of cloud platforms. It describes integrating the Dynatrace application monitoring agent into buildpacks used by Cloud Foundry so it is automatically injected into applications. This would provide full-stack visibility from code to services to infrastructure for Cloud Foundry applications and clusters. The document also discusses deploying the Dynatrace agent to all VMs managed by BOSH to monitor all components of Cloud Foundry deployments.
18. confidential
Create a Dynatrace service
$ cf cups dynatrace-example -p '{"environmentid":"someenvirontmentid",
"apitoken":"someapitoken"}'
Creating user provided service dynatrace-example in org dynatrace / space dev as admin...
OK
$ cf s
Getting services in org dynatrace / space dev as admin...
OK
name service plan bound apps last operation
easytravel-mongodb easytravel-mongodb free create succeeded
dynatrace-example user-provided
Alternative:
You cloud also use a service-broker that is available on GitHub
https://github.com/dynatrace-innovationlab/dynatrace-service-broker
Note: Make sure the name of the service contains ’dynatrace’
21. confidential
Push your apps
$ cf push -f manifest-withDynatrace.yml
Using manifest file manifest-withDynatrace.yml
Creating app easytravel-backend in org dynatrace / space dev as admin...
OK
Using route easytravel-backend-dynatrace.apps.pcf.example.com
Binding easytravel-backend-dynatrace.apps.pcf.example.com to easytravel-backend...
OK
-----> Downloading Open JDK Like Memory Calculator 2.0.2_RELEASE from
https://download.run.pivotal.io/memory-calculator/trusty/x86_64/memory-calculator-2.0.2_RELEASE.tar.gz
(0.1s)
Memory Settings: -Xss268K -Xmx523161K -XX:MaxMetaspaceSize=80486K -Xms523161K -
XX:MetaspaceSize=80486K
-----> Downloading Dynatrace One Agent latest from
https://example.live.dynatrace.com/api/v1/deployment/installer/agent/unix/paas/latest?include=java&bitness=6
4&Api-Token=exampletoken (3.1s)
Expanding Dynatrace OneAgent to .java-buildpack/dynatrace_one_agent (0.1s)
-----> Downloading Tomcat Instance 8.0.37 from https://java-buildpack.cloudfoundry.org/tomcat/ tomcat-
8.0.37.tar.gz (0.4s)