APM Insight application configuration parameters can also be configured as Java System Properties as mentioned below:
Name | Key |
---|---|
Application Name | -Dapminsight.application.name=<your_app_name> |
Applications Manager Host Name | -Dapminsight.apm.host=<your_app_host> |
License Key | -Dapminsight.license.key=<your_apminsight_license_key> |
Proxy config | -Dapminsight.agent.proxy=user:pswd@host:port |
apminsight.log.dir | -Dapminsight.log.dir=/usr/local/qa-123/logs |
Specifying the above system properties along with the Java arguments will override the values specified in apminsight.conf file.
Example:
set JAVA_OPTS=%JAVA_OPTS% -Dapminsight.application.name=MyApplication -Dapminsight.apm.host=http://apm-prod-server:9090/ -Dapminsight.license.key=APMI_74447444b666d7ab5174cc3021a9b68dd4b3364d50f99c2969360810313e8fac
export JAVA_OPTS="$JAVA_OPTS -Dapminsight.application.name=MyApplication -Dapminsight.apm.host=http://apm-prod-server:9090 -Dapminsight.license.key=APMI_74447444b666d7ab5174cc3021a9b68dd4b3364d50f99c2969360810313e8fac"