I am setting up APM and am using a Java APM agent for a Springboot app. Based on this documentation, the configuration is stored in src/main/resources/elasticapm.properties .
Can these configuration be stored in application.properties instead?
Also, is the APM token a compulsary field in the properties file? I saw several examples using the token field but minimal configuration at this document has only service name, url and application packages.
If you are using another setup option like the classical -javaagent JVM option, it means that you have to first remove this JVM option before using it. Another major difference is that with it the agent becomes part of your application dependencies, which means updating the agent means updating and re-deploying the application, which could also be a desirable feature depending how you deploy your application.
The APM token is not mandatory at the agent level, but might be required to authenticate when communicating with apm-server, so most of the time you will have to configure it or use API keys for authentication.
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.