Dynatrace PHP-FPM monitoring provides information about connections, slow requests, and processes. If PHP-FPM is underperforming or a problem occurs, Dynatrace lets you know immediately and shows you which hosts are affected.
localhost
over HTTP(S). For full instructions, please see the PHP documentation, but note that the default URL path is now /status
(it is no longer /fpm-status
as shown in their example).With PHP-FPM monitoring enabled globally, Dynatrace automatically collects PHP-FPM metrics whenever a new host running PHP-FPM is detected in your environment.
To monitor more than one pool, type the URIs of the individual PHP-FPM status pages (separated by spaces) into the Status page URI field. All PHP-FPM instances must have a correct status page URI reference.
Dynatrace provides the option of enabling PHP-FPM monitoring for specific hosts rather than globally.
After you have enabled PHP-FPM monitoring, monitoring begins.
Go to Technologies & Processes or Technologies & Processes Classic (latest Dynatrace).
Select the PHP tile.
To view cluster metrics, find PHP-FPM in the Process group table under the tiles and select Details to display the PHP-FPM process group details.
The chart displays the selected process group metric over time. You can select a different metric from the list.
Select the Technology-specific metrics tab to display metrics specific to PHP-FPM.
To display node-specific metrics, select a node from the Process list at the bottom of the page.
Select the PHP-FPM tab to display the number of Accepted connections (connections accepted by the pool) and the Slow requests count.
Accepted connections is sometimes misunderstood to represent the number of requests, but this metric measures exactly what its name suggests: the number of connections accepted by the pool.
Metric
Description
Accepted connections
The number of connections accepted by the pool.
Slow requests
The number of requests that have exceeded the request_slowlog_timeout
value.
Waiting connections
The number of requests in the queue of pending connections.
Max number of waiting connections
The size of the pending connections socket queue.
Active processes
The number of active processes.
Total processes
The sum of idle and active processes.
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 been reached, subsequent requests are refused or ignored.