X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.conf.pod;fp=src%2Fcollectd.conf.pod;h=b026b5a73ddcd33bc99700a867fc80887a6592d1;hb=bf0eb89656060958f09942052536f7414ee6c582;hp=1b73c417d9ebfc54211eefc252116d733a0b9c96;hpb=912afef242385f87fb9651ec0b54e4bf1561f73e;p=collectd.git diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 1b73c417..b026b5a7 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,12 +1100,36 @@ 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" + + + + 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. +The B string argument must be in a path format. Each component is +used to match the key from a JSON map or the index of an JSON +array. If a path component of a B is a I<*>Ewildcard, the +values for all map keys or array indices will be collectd. + The following options are valid within B blocks: =over 4