First, install the SaaS version of the AI probe preparation work:
1. Ready the available Docker version Acmeair app
2. Registration of available accounts on the SaaS website tpm.oneapm.com
3. Log in to tpm.oneapm.com, click the Select Ai icon to enter the Add app interface, click on the Java icon, follow the page prompts to download the Oneapm_java_agent_3.2.0.zip file, unzip and replace the license Key, Copy the ONEAPM file of the updated license key to the Acmeair application machine where the agent probe is to be installed
Second, installation: 1. Copy the ONEAPM files from the host to the Docker container where the WebApp, auth, and Zull are located:
Docker CP OneAPM webapp1:/opt/Tomcat Docker CP OneAPM auth1:/opt/Tomcat Docker CP OneAPM Zuul:/OPT/TOMC At
2. Enter the Docker container to modify the respective app_name
View Docker containers:Docker PS (names for Webapp1\auth1\zuul containers requires probe installation)
command to enter the container: Docker Exec-ti [CONTAINER ID or names] Bash
Enter WEBAPP1 container: Docker exec-/opt/tomcat/ Modify file: VI OneAPM/oneapm.properties = acmeair_ WebApp1
Modify the app_name of Auth and Zuul according to the above method respectively
App_name = Acmeair_auth1
App_name = Acmeair_zuul
3. Modify Tomcat Boot parameters
VI /opt/tomcat/bin/ catalina.sh add java_opts="$JAVA _opts-javaagent:/opt/tomcat/oneapm/ Oneapm.jar"
4. Submit the image with the probe loaded
(Important: If you do not submit, the operation of the probe will disappear after restarting the mirror)
Docker commit WebApp1 acmeair/webapp-mysqldocker commit auth1 acmeair/auth-Servicedocker commit Zuul Acmeair/zuul
5. Restart the Acmeair application
CD acmeair-netflixoss/weave-binsh stopall.shcd acmeair-netflixoss/binsh startallwithmysql.sh
Or just restart the Auth WebApp Zuul, which has the probe installed, so it will be faster, because there is no need to loder the data again.
- F webapp1 auth1 Zuul. /startzuul.sh. /addwebapp.sh. /addauthsvc.sh
6. Access the Acmeair app to verify that the app is up and running
(return code 200 means the application is normal, can be accessed several times, to ensure that enough trace data to reach the SaaS server)
7. Verify that the SaaS website is receiving data properly
Can show the application with the probe installed:
A topology diagram that fully demonstrates the invocation relationship between applications:
Acmeair installing AI probe version--saas