Addressing Multiple Instances in a Single APM Insight Application (PHP-Application)

Addressing Multiple Instances in a Single APM Insight Application (PHP-Application)

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


                    New to ADSelfService Plus?

                      • Related Articles

                      • Addressing Multiple Application Instances creation with Different Ports in APM Insight PHP Agent

                        Issue: After installing the APM Insight PHP Agent, multiple monitor instances appear for the same application with different port numbers (e.g., 0, 80, 443), even though the application is expected to run only on a specific port such as 80 or 443. ...
                      • Uninstrumented Block of Code - APM Insight

                        In the traces tab --> Slowest Method Calls and Count we show if you find Un-instrumented block of code the reason is as follows: Basically, What is un-instrumented block of code in APM Insight? By default, APM Insight agent monitors known frameworks ...
                      • How to install the APM Insight PHP Agent in an Azure Web App?

                        Follow these steps to install and configure the APM Insight PHP Agent in an Azure Web App. Step 1: Create a deployment script Navigate to the directory /home/apm/ (create it if it doesn’t exist). Create a new shell script named apm-phpagent-deploy.sh ...
                      • How to set the PHP path during agent installation?

                        This is only applicable to the agent versions 4.2 and above. For Linux Step 1: Download the installation script. wget -O InstallAgentPHP.zip https://www.manageengine.com/products/applications_manager/54974026/InstallDataExporter.zip && unzip ...
                      • How to rename an existing APM - Java agent application's monitor?

                        In Applications Manager's APM(Application Performance Monitoring) doesn't support renaming applications/monitors from the web client. However, the application name of an existing application instance can be renamed in the `apminsight.conf` file and ...