curl_json: Added example configuration for PHP-FPM.
authorPavel Rochnyack <pavel2000@ngs.ru>
Thu, 25 Feb 2016 14:44:02 +0000 (21:44 +0700)
committerFlorian Forster <octo@collectd.org>
Thu, 28 Sep 2017 14:43:21 +0000 (16:43 +0200)
contrib/curl_json/php-fpm.conf [new file with mode: 0644]

diff --git a/contrib/curl_json/php-fpm.conf b/contrib/curl_json/php-fpm.conf
new file mode 100644 (file)
index 0000000..34b8b67
--- /dev/null
@@ -0,0 +1,27 @@
+# Example configuration for PHP-FPM
+<Plugin "curl_json">
+  <URL "http://nginx-status/php-fpm-status?json">
+    Plugin "phpfpm"
+    Instance "main"
+    <Key "accepted conn">
+      Type "total_requests"
+      Instance "accepted"
+    </Key>
+    <Key "slow requests">
+      Type "total_requests"
+      Instance "slow"
+    </Key>
+    <Key "listen queue">
+      Type "queue_length"
+      Instance "listen"
+    </Key>
+    <Key "active processes">
+      Type "vs_processes"
+      Instance "active"
+    </Key>
+    <Key "total processes">
+      Type "vs_processes"
+      Instance "total"
+    </Key>
+  </URL>
+</Plugin>