Configure APM Insight application using system properties


APM Insight application configuration parameters can also be configured as Java System Properties as mentioned below:

NameKey
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:

  • For Windows:

    set JAVA_OPTS=%JAVA_OPTS% -Dapminsight.application.name=MyApplication -Dapminsight.apm.host=http://apm-prod-server:9090/ -Dapminsight.license.key=APMI_74447444b666d7ab5174cc3021a9b68dd4b3364d50f99c2969360810313e8fac

  • For Linux:

    export JAVA_OPTS="$JAVA_OPTS -Dapminsight.application.name=MyApplication -Dapminsight.apm.host=http://apm-prod-server:9090 -Dapminsight.license.key=APMI_74447444b666d7ab5174cc3021a9b68dd4b3364d50f99c2969360810313e8fac"

Note:
  • You can also configure a secure APM URL. Ensure that the connection is stable and free from certificate-related issues.
    Example: https://apm-prod-server:8443
  • For an Applications Manager failover setup, you can specify multiple hosts in a comma-separated format (supported from Java Agent v6.8), as shown below:
    apm.host=http://apm-prod-server-A:9090, http://apm-prod-server-B:9090