Session 3 - TD


7-8/01/2024

TD/TP

Prérequis

  • Environments
    • Master
    • Develop

ToDos Environments

  • Add monitoring to application

    • Trace/Track page calls
    • Only track deployed applications (once verified locally)
  • Add a Page with a long running call

  • Add a Page with an exception

  • Adapt the pages to have a different behavior on dev/prod

Resources

APM Infos

  • server_url=https://apm.m2.tecture.de
  • service_name=You define it
  • secret_token=****
  • environment=dev or prod
  • application_packages=your.application.package
  • log_level=INFO (or DEBUG if you need to see what happens)

Example configurations

application.properties

# Elastic APM
# disabled by default
elastic.apm.enabled=false
elastic.apm.service-name=Test Application Localhost
elastic.apm.server-url=http://localhost:8200
elastic.apm.environment=default
elastic.apm.log-level=DEBUG
elastic.apm.application-packages=fr.univtlse.package

application-dev.properties

#Overriding APM in dev environment
elastic.apm.enabled=true
elastic.apm.environment=Development
elastic.apm.service-name=Test Application
elastic.apm.secret-token=****
elastic.apm.server-url=https://apm.m2.tecture.de

Kibana Infos

URL: https://elk.m2.tecture.de
User: m2ice
Password: ****

Spring APM Bean

⚠️ Use APM Version >= 1.45.0 in pom.xml.