From 4c415fa7e8a40efc735c55b4abb280cf9e1f4af6 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 11 May 2009 08:52:39 +0200 Subject: [PATCH] collectd.conf(5): Add documentation for the memcachec plugin. --- README | 2 +- src/collectd.conf.pod | 51 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/README b/README index 9cc62aea..83e431ea 100644 --- a/README +++ b/README @@ -122,7 +122,7 @@ Features using mbmon(1). - memcachec - Query and parse data from a memcache daemon. + Query and parse data from a memcache daemon (memcached). - memcached Statistics of the memcached distributed caching system. diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index ad7cc210..899daf11 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -1355,6 +1355,57 @@ TCP-Port to connect to. Defaults to B<411>. =back +=head2 Plugin C + +The C connects to a memcached server, queries one or more +given I and parses the returned data according to user specification. +The I used are the same as the matches used in the C and C +plugins. + +In order to talk to the memcached server, this plugin uses the I +library. Please note that there is another library with a very similar name, +libmemcache (notice the missing `d'), which is not applicable. + +Synopsis of the configuration: + + + + Server "localhost" + Key "page_key" + + Regex "(\\d+) bytes sent" + DSType CounterAdd + Type "ipt_octets" + Instance "type_instance" + + + + +The configuration options are: + +=over 4 + +=item EB IE + +Each B block defines one I to be queried from the memcached server. +The block requires one string argument which is used as I. + +=item B I
+ +Sets the server address to connect to when querying the page. Must be inside a +B block. + +=item B I + +When connected to the memcached server, asks for the page I. + +=item EBE + +Match blocks define which strings to look for and how matches substrings are +interpreted. For a description of match blocks, please see L<"Plugin tail">. + +=back + =head2 Plugin C The C connects to a memcached server and queries statistics -- 2.30.2