With Dynatrace PHP-FPM monitoring, you can immediately detect if your PHP-FPM is underperforming. When there's a problem, it's easy to see the hosts that are affected.
To use PHP-FPM monitoring, ensure the following:
- You are using a Linux OS or Windows system
- The PHP version is 5.5.9 or later
- The PHP-FPM status page is enabled on all nodes you want to monitor.
View PHP-FPM monitoring insights
- Go to Technologies and click the PHP tile.
- To view cluster metrics, expand the process group by clicking the arrowhead under Details.
- Click Process group details.
- Click the Technology-specific metrics tab and select a time interval from the Time frame selector in the menu bar.
- Select a metric type from the list under the timeline to compare the values of all nodes in a sortable table view.
- To access node-specific metrics, select a node from the Process list at the bottom of the page.
- Click the PHP-FPM link. The number of Accepted connections and the Slow requests count is displayed.
Note: The Accepted connections measure is sometimes misunderstood to mean the number of requests. This metric measures exactly what the name suggests: the number of connections accepted by the pool.
PHP-FPM node-monitoring metrics
More PHP-FPM monitoring metrics are available on individual Process pages.
To view charts on Requests, Input buffering, and Processes, select the Further details tab.
When the number of total active processes reaches the Total processes limit, new scripts are prevented from running until the problematic processes have completed. The maximum number of Waiting connections defines the maximum number of connections that will be queued. When this limit has reached, subsequent requests are refused or ignored.
|Accepted connections||The number of connections accepted by the pool.|
|Slow requests||The number of requests that have exceeded the
|Waiting connections||The number of requests in the queue of pending connections.|
|Max no. of waiting connections||The size of the pending connections socket queue.|
|Active processes||The number of active processes.|
|Total processes||The number of idle and active processes.|
Enable PHP-FPM monitoring globally
When PHP-FPM monitoring is enabled globally, Dynatrace automatically collects PHP-FPM metrics whenever a new host running PHP-FPM is detected in the environment.
To monitor more than one pool, type the URIs of the individual PHP-FPM status pages into the status page of the URI field. Ensure that the names are separated by a single space. All PHP-FPM instances must have a correct status page URI reference.
- Go to Settings > Monitoring > Monitored technoologies.
- Enable the PHP-FPM switch.
- To view the details of the PHP-FPM integration, click the arrowhead under Details.
- Define a status page URI.
- Click Save.
Enable PHP-FPM monitoring on individual hosts
Dynatrace also provides the option of enabling PHP-FPM monitoring for only specific hosts.
- If global PHP-FPM monitoring is currently enabled, disable the PHP-FPM switch under Settings > Monitoring > Monitored technologies.
- From the navigation menu, select Hosts.
- Select the hosts that you want to configure.
- Click Edit.
- Enable the PHP-FPM switch.