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. This default setting causes multiple PHP applications to be discovered under the same APM Insight Application, leading to data usage limit exceedance per application.

Steps to Update the Application Name in PHP Agent

1. Run the Configuration Command: To update the application name, execute the following command on each PHP application machine where the agent is installed:
Info
sudo sh /opt/zpa/bin/agent_php.sh configure -zpa.application_name "appname"
Replace `appname` with the appropriate application name for the specific machine. For example, 
Info
sudo sh /opt/zpa/bin/agent_php.sh configure -zpa.application_name "phpmyadmin"
Replace `appname` with the appropriate application name for the specific machine. For example, 
2. Restart the PHP Application: After executing the command, Restart the PHP application to apply the changes.
3. Verify in Applications Manager UI: Check the APM tab in Applications Manager UI to confirm that the updated application name is correctly reflected.
4. UnManage/Remove Previously Discovered Monitors (If Needed):  Once all applications are successfully monitored with the updated names, unManage/remove any previously discovered monitors 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 application instances appear with different port numbers for the same application, which is expected to run only on port 80/443. Issue Cause: As per the PHP agent’s auto-discovery behavior, ...
                    • 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 ...
                    • APM Insight Troubleshooting - FAQs

                      Monitor Addition - FAQs 1. How to add an APM Insight Monitor? After you deploy the APM Insight agent in your Application Server with suitable Applications Manager credentials in the apminsight.conf file, APM Insight monitors will automatically be ...
                    • 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 ...