How to modify agent configuration for a specific Instance using apminsight.conf , without using Agent Configuration Profiles ?

How to modify agent configuration for a specific Instance using apminsight.conf , without using Agent Configuration Profiles ?

For Java / Ruby / Node.js agents :
  • During upgrade to build 15060, all existing Instance-level agent configurations would be moved to an Application-level common agent configuration profile.
  • In order to maintain an agent config for a separate instance alone , it can be done by modifying or inserting the required required values from the below config keys in apminsight.conf file during the runtime of App/Agent .On every save of apminsight.conf file, with a new modified timestamp, the running agent re-initializes itself with the values from the apminsight.conf file and uses it.
    Note : NO RESTART of the agent/application is required for this. The agent needs to be running when the below changes are made & saved.
  • Configurations that can be modified/inserted in apminsight.conf file:
    • apdex.threshold=0.5
    • sql.capture.enabled=true
    • transaction.trace.enabled=true
    • transaction.trace.threshold=2.0
    • transaction.trace.sql.parametrize=true
    • transaction.trace.sql.stacktrace.threshold=3.0
    • transaction.tracking.request.interval=1
  • To save the apminsight.conf file during agent runtime :
    • Windows : Edit & Save the file. The timestamp should be modified.
    • Linux : Use below command in the apminsight agent installation directory, if no changes are made, but timestamp needs to be modified.
      • touch apminsight.conf
  • The above needs to be done again, if the agent is ever restarted. Rest assured, the apminsight.conf file changes will NOT be overwritten automatically.

                  New to ADManager Plus?

                    New to ADSelfService Plus?