﻿---
title: PHP_FPM fields
description: PHP-FPM server status metrics collected from PHP-FPM. php_fpm contains the metrics that were obtained from PHP-FPM status page call. pool contains the...
url: https://www.elastic.co/elastic/docs-builder/docs/2995/reference/beats/metricbeat/exported-fields-php_fpm
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# PHP_FPM fields
PHP-FPM server status metrics collected from PHP-FPM.

## php_fpm

`php_fpm` contains the metrics that were obtained from PHP-FPM status page call.

## pool

`pool` contains the metrics that were obtained from the PHP-FPM process pool.
<definitions>
  <definition term="php_fpm.pool.name">
    The name of the pool.
    type: keyword
  </definition>
</definitions>


## pool

`pool` contains the metrics that were obtained from the PHP-FPM process pool.
<definitions>
  <definition term="php_fpm.pool.process_manager">
    Static, dynamic or ondemand.
    type: keyword
  </definition>
</definitions>


## connections

Connection state specific statistics.
<definitions>
  <definition term="php_fpm.pool.connections.accepted">
    The number of incoming requests that the PHP-FPM server has accepted; when a connection is accepted it is removed from the listen queue.
    type: long
  </definition>
  <definition term="php_fpm.pool.connections.queued">
    The current number of connections that have been initiated, but not yet accepted. If this value is non-zero it typically means that all the available server processes are currently busy, and there are no processes available to serve the next request. Raising `pm.max_children` (provided the server can handle it) should help keep this number low. This property follows from the fact that PHP-FPM listens via a socket (TCP or file based), and thus inherits some of the characteristics of sockets.
    type: long
  </definition>
  <definition term="php_fpm.pool.connections.max_listen_queue">
    The maximum number of requests in the queue of pending connections since FPM has started.
    type: long
  </definition>
  <definition term="php_fpm.pool.connections.listen_queue_len">
    The size of the socket queue of pending connections.
    type: long
  </definition>
</definitions>


## processes

Process state specific statistics.
<definitions>
  <definition term="php_fpm.pool.processes.idle">
    The number of servers in the `waiting to process` state (i.e. not currently serving a page). This value should fall between the `pm.min_spare_servers` and `pm.max_spare_servers` values when the process manager is `dynamic`.
    type: long
  </definition>
  <definition term="php_fpm.pool.processes.active">
    The number of servers current processing a page - the minimum is `1` (so even on a fully idle server, the result will be not read `0`).
    type: long
  </definition>
  <definition term="php_fpm.pool.processes.total">
    The number of idle + active processes.
    type: long
  </definition>
  <definition term="php_fpm.pool.processes.max_active">
    The maximum number of active processes since FPM has started.
    type: long
  </definition>
  <definition term="php_fpm.pool.processes.max_children_reached">
    Number of times, the process limit has been reached, when pm tries to start more children (works only for pm 'dynamic' and 'ondemand').
    type: long
  </definition>
  <definition term="php_fpm.pool.slow_requests">
    The number of times a request execution time has exceeded `request_slowlog_timeout`.
    type: long
  </definition>
  <definition term="php_fpm.pool.start_since">
    Number of seconds since FPM has started.
    type: long
  </definition>
  <definition term="php_fpm.pool.start_time">
    The date and time FPM has started.
    type: date
  </definition>
</definitions>


## process

process contains the metrics that were obtained from the PHP-FPM process.
<definitions>
  <definition term="php_fpm.process.pid">
    The PID of the process
    type: alias
    alias to: process.pid
  </definition>
  <definition term="php_fpm.process.state">
    The state of the process (Idle, Running, etc)
    type: keyword
  </definition>
  <definition term="php_fpm.process.start_time">
    The date and time the process has started
    type: date
  </definition>
  <definition term="php_fpm.process.start_since">
    The number of seconds since the process has started
    type: integer
  </definition>
  <definition term="php_fpm.process.requests">
    The number of requests the process has served
    type: integer
  </definition>
  <definition term="php_fpm.process.request_duration">
    The duration in microseconds (1 million in a second) of the current request (my own definition)
    type: integer
  </definition>
  <definition term="php_fpm.process.request_method">
    The request method (GET, POST, etc) (of the current request)
    type: alias
    alias to: http.request.method
  </definition>
  <definition term="php_fpm.process.request_uri">
    The request URI with the query string (of the current request)
    type: alias
    alias to: url.original
  </definition>
  <definition term="php_fpm.process.content_length">
    The content length of the request (only with POST) (of the current request)
    type: alias
    alias to: http.response.body.bytes
  </definition>
  <definition term="php_fpm.process.user">
    The user (PHP_AUTH_USER) (or - if not set) (for the current request)
    type: alias
    alias to: user.name
  </definition>
  <definition term="php_fpm.process.script">
    The main script called (or - if not set) (for the current request)
    type: keyword
  </definition>
  <definition term="php_fpm.process.last_request_cpu">
    The CPU percentage the last request consumed. It's always 0 if the process is not in Idle state because CPU calculation is done when the request processing has terminated
    type: long
  </definition>
  <definition term="php_fpm.process.last_request_memory">
    The max amount of memory the last request consumed. It's always 0 if the process is not in Idle state because memory calculation is done when the request processing has terminated
    type: integer
  </definition>
</definitions>