From 5444a566682f35349b0c89643ba09f549e5b764b Mon Sep 17 00:00:00 2001 From: Jim Radford Date: Sat, 10 Aug 2013 12:11:29 -0700 Subject: [PATCH] curl_json plugin: document the new Sock option --- src/collectd.conf.pod | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 1b73c417..49dfe193 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -1072,13 +1072,15 @@ is set to B, B blocks are optional. =head2 Plugin C -The B uses B (L) and -B (L) to retrieve JSON data -via cURL. This can be used to collect values from CouchDB documents (which are -stored JSON notation), for example. - -The following example will collect several values from the built-in `_stats' -runtime statistics module of CouchDB +The B collects values from JSON data to be parsed by +B (L) retrieved via +either B (L) or read directly from a +unix socket. The former can be used, for example, to collect values +from CouchDB documents (which are stored JSON notation), and the +latter to collect values from a uWSGI stats socket. + +The following example will collect several values from the built-in +`_stats' runtime statistics module of CouchDB (L). @@ -1098,8 +1100,23 @@ runtime statistics module of CouchDB -In the B block, there may be one or more B blocks, each defining -a URL to be fetched via HTTP (using libcurl) and one or more B blocks. +This example will collect data directly from a uWSGI Stats Server +socket. + + + + Instance "uwsgi" + + Type "http_requests" + + + + +In the B block, there may be one or more B blocks, each +defining a URL to be fetched via HTTP (using libcurl) or B +blocks defining a unix socket to read JSON from directly. Each of +these blocks may have one or more B blocks. + The B string argument must be in a path format, which is used to collect a value from a JSON map object. If a path element of B is the I<*>Ewildcard, the values for all keys will be collectd. -- 2.11.0