DevOps Classroom Series – 09/Oct/2021

Site Reliability Engineering

  • Refer Here for the article in direct devops about site reliability Engineering

Making systems observable

  • Setting up APM on elastic cloud Preview Preview Preview
  • 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

Preview

  • 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 Preview
  • To make the application observable
    • Collect Logs
    • Collect Metrics
    • Tracing (APM)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Customized Social Media Icons from Acurax Digital Marketing Agency

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube