I am running multiple war files in single tomcat server.
Had a doubt if we set the following property at tomcat level how will we differentiate at application level.
set CATALINA_OPTS=%CATALINA_OPTS% -Delastic.apm.service_name=my-cool-service
As described in the service_name config documentation, service names are auto-discovered by default (meaning - when the config option is not set). This should produce a service per war file.
Please make sure you use the latest version, as the former had a bug that may affect this capability.
Also notice the described caveat - the Metrics tab will not show metrics per service, instead you can view the JVM metrics under the default tomcat-application service.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.