Issue overview:
By default, the PHP Agent configures the application name as "PHP-Application" in APM Insight. As a result, multiple PHP applications may be discovered under the same APM Insight application, potentially leading to data usage limit exceedance for that application.
Steps to Update the Application Name in the PHP Agent
1. Update the Application name:
Run the following command on each PHP application machine where the agent is installed:
sudo sh /opt/zpa/bin/agent_php.sh configure -zpa.application_name "appname"
Replace appname with an appropriate name for the application running on that machine.
Example: sudo sh /opt/zpa/bin/agent_php.sh configure -zpa.application_name "phpmyadmin"
2. Restart the PHP Application:
After updating the configuration, restart the PHP application to apply the changes.
3. Verify the changes:
Navigate to the APM tab in Applications Manager and verify that the updated application name is displayed correctly.
4. Remove previously discovered monitors (Optional):
Once all applications are being monitored with their updated names, unmanage or remove any previously discovered monitors associated with the default "PHP-Application" name to avoid duplication and confusion.