System Monitoring: APM Integration - AsrafulSamad/PoraLikha GitHub Wiki
Steps:
-
Install apm-server-6.4.2-x86_64.rpm.
-
Change apm-server.yml file.
output.elasticsearch: hosts: ["localhost:9200"] -
Create a shared directory like "/usr/share/app/apm".
-
Copy elastic-apm-agent-0.7.1.jar into that directory.
-
Change start scripts for all components (add below section).
#apm config JAVA_OPTS="$JAVA_OPTS -javaagent:/usr/share/app/apm/elastic-apm-agent-0.7.1.jar" JAVA_OPTS="$JAVA_OPTS -Delastic.apm.service_name=cms-1.0.jar" # Name of the corresponding jar JAVA_OPTS="$JAVA_OPTS -Delastic.apm.server_url=http://localhost:8200" JAVA_OPTS="$JAVA_OPTS -Delastic.apm.application_packages=com.sample.app" #Package name of that component -
Start apm-server and restart each component.