memcachec plugin¶
| Plugin name | memcachec |
| Type | read |
| Callbacks | config, init, read, shutdown |
| Status | supported |
| Since | 4.7 |
| Copyright | 2009 Doug MacEachern, 2006–2009 Florian octo Forster |
| License | GPLv2 |
| Configuration | collectd.conf(5) |
The memcachec plugin connects to a memcached server, queries one or more given pages and parses the returned data according to user specification. The matches used are similar to the matches used in the cURL and Tail plugins.
Synopsis¶
<Plugin "memcachec">
<Page "plugin_instance">
Server "localhost"
Key "page_key"
<Match>
Regex "(\\d+) bytes sent"
DSType CounterAdd
Type "ipt_octets"
Instance "type_instance"
</Match>
</Page>
</Plugin>
Example graph¶
None yet. Add one now!
Dependencies¶
- The memcached library (libmemcached)
See also¶
Configuration¶
Configuration options · from collectd.conf(5)
See this section in the full configuration reference
The memcachec plugin connects to a memcached server, queries one or more given pages and parses the returned data according to user specification. The matches used are the same as the matches used in the curl and tail plugins.
In order to talk to the memcached server, this plugin uses the libmemcached 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:
<Plugin "memcachec">
<Page "plugin_instance">
Server "localhost"
Key "page_key"
Plugin "plugin_name"
<Match>
Regex "(\\d+) bytes sent"
DSType CounterAdd
Type "ipt_octets"
Instance "type_instance"
</Match>
</Page>
</Plugin>
The configuration options are:
- <Page Name>
- Each Page block defines one page to be queried from the memcached server. The block requires one string argument which is used as plugin instance.
- Server Address
- Sets the server address to connect to when querying the page. Must be inside a Page block.
- Key Key
- When connected to the memcached server, asks for the page Key.
- Plugin Plugin
- Use Plugin as the plugin name when submitting values. Defaults to
memcachec. - <Match>
- Match blocks define which strings to look for and how matches substrings are interpreted. For a description of match blocks, please see Plugin tail.