Site Reliability Engineering
- Refer Here for the article in direct devops about site reliability Engineering
Making systems observable
- Setting up APM on elastic cloud

- Download a java application to run apm Refer Here
- Download elastic java agent Refer Here
- Now from the documentation the command to run application
java -javaagent:/path/to/elastic-apm-agent-<version>.jar \
-Delastic.apm.service_name=my-application \
-Delastic.apm.server_urls=https://866c6fe7f40e48d8a83c953d5dfc7b31.apm.eastus2.azure.elastic-cloud.com:443 \
-Delastic.apm.secret_token=YlXy2IweIZn1XqmPzl \
-Delastic.apm.environment=production \
-Delastic.apm.application_packages=org.example \
-jar my-application.jar
- Lets change this according to our applciations
java -javaagent:elastic-apm-agent-1.26.0.jar `
-Delastic.apm.service_name=spring-petclinic `
-Delastic.apm.server_urls=https://866c6fe7f40e48d8a83c953d5dfc7b31.apm.eastus2.azure.elastic-cloud.com:443 `
-Delastic.apm.secret_token=YlXy2IweIZn1XqmPzl `
-Delastic.apm.environment=production `
-Delastic.apm.application_packages=org.springframework `
-jar spring-petclinic.jar

- Ran this on the linux machine after install openjdk 11 using
java -javaagent:elastic-apm-agent-1.26.0.jar -Delastic.apm.service_name=spring-petclinic -Delastic.apm.server_urls=https://866c6fe7f40e48d8a83c953d5dfc7b31.apm.eastus2.azure.elastic-cloud.com:443 -Delastic.apm.secret_token=YlXy2IweIZn1XqmPzl -Delastic.apm.environment=production -Delastic.apm.application_packages=org.springframework -jar spring-petclinic.jar - Now use the application by accessing
http://<publicip>:8080 - Now get into apm console

- To make the application observable
- Collect Logs
- Collect Metrics
- Tracing (APM)
