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