Difference between revisions of "Plugin:cURL-JSON/phpfpm"

From collectd Wiki
Jump to: navigation, search
m
Line 22: Line 22:
 
  </URL>
 
  </URL>
 
  </Plugin>
 
  </Plugin>
 +
 +
Please note that the metod used to access php-fpm stats is not FastCGI but HTTP. So you need to configure your web-server to pass such requests to php-fpm instance.
  
 
== TODO ==
 
== TODO ==
 
* Add info about types used (i use gauges for types).
 
* Add info about types used (i use gauges for types).
 
* Add chart examples.
 
* Add chart examples.

Revision as of 19:52, 16 December 2011

You can use cURL-JSON plugin plugin to collect stats from php-fpm instances. The example of config is below.

Config

LoadPlugin curl_json
<Plugin curl_json>
<URL "http://127.0.0.1/_fpmstatus?json">
  Instance "fpm"
  <Key "accepted conn">
      Type "http_requests"
  </Key>
  <Key "listen queue len">
      Type "listen_queue"
  </Key>
  <Key "active processes">
      Type "active_processes"
  </Key>
  <Key "total processes">
      Type "total_processes"
  </Key>
</URL>
</Plugin>

Please note that the metod used to access php-fpm stats is not FastCGI but HTTP. So you need to configure your web-server to pass such requests to php-fpm instance.

TODO

  • Add info about types used (i use gauges for types).
  • Add chart examples.