This page contains some example configurations for the cURL-JSON plugin. This page is meant as a cookbook, so if you have a configuration for an aspect not handled here or a daemon not present, please feel free to add anything that's useful for you.
You can use cURL-JSON plugin plugin to collect stats from php-fpm instances. The example of config is below.
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.
# types.db http_requests count:COUNTER:0:134217728 listen_queue value:GAUGE:0:65535 active_processes value:GAUGE:0:65535 total_processes value:GAUGE:0:65535
Type `http_requests' usually already present in the default types, however. See `TypesDB' configuration option in collectd config file for locations of default and custom `types.db' files.
- Add chart examples.