github.com/mackerelio/mackerel-agent-plugins@v0.89.3/mackerel-plugin-php-fpm/README.md (about)

     1  mackerel-plugin-php-fpm
     2  =====================
     3  
     4  PHP-FPM status custom metrics plugin for [mackerel-agent](https://github.com/mackerelio/mackerel-agent).
     5  
     6  ## Synopsis
     7  
     8  ```shell
     9  mackerel-plugin-php-fpm [-metric-key-prefix=php-fpm] [-timeout=5] [-url=http://localhost/status?json] [-socket unix:///var/run/php-fpm.sock]
    10  ```
    11  
    12  ### Socket option
    13  
    14  If `-socket` option is set, the plugin reads status from standalone php-fpm service.
    15  `-socket` option is available some notations.
    16  
    17  * filepath (e.g., **/var/run/php-fpm.sock**)
    18  * network address (e.g., **localhost:9000**)
    19  * URL (e.g., **tcp://localhost:9000** or **unix:///var/run/php-fpm.sock**)
    20  
    21  If not set, the plugin reads status via HTTP server such as Nginx or Apache.
    22  
    23  ## Example of mackerel-agent.conf
    24  
    25  ```
    26  [plugin.metrics.php-fpm]
    27  command = "/path/to/mackerel-plugin-php-fpm"
    28  ```
    29  
    30  ## Author
    31  [ariarijp](https://github.com/ariarijp)