Code

Add redis plugin.
authorAndres J. Diaz <ajdiaz@connectical.com>
Fri, 30 Jul 2010 14:06:48 +0000 (16:06 +0200)
committerFlorian Forster <octo@noris.net>
Wed, 4 Aug 2010 09:37:19 +0000 (11:37 +0200)
commit799410cb4a38cf6c6e85eb3c86d050a4010d8c54
tree08780382524342e3a6a8951b4ddced50eb41d6d3
parent7eebf413d552e2b0487c790e61bf648bb91295f0
Add redis plugin.

This commit adds a new redis plugin, which connect to a number of redis
server and get information about their status, using the libcredis > 0.2.2
library. The plugin get the following information:

* bgsave_in_progress
* change_since_last_save
* connected_clients
* connected_slaves
* total_command_processed
* total_connection_received
* uptime_in_seconds
* used_memory

Here is an example of configuration file:

<Plugin redis>
<Node example>
Host "localhost"
Timeout 2000
</Node>
</Plugin>

And the output of rrdtool plugin must be something similar to this:

redis-example/bgsave_in_progress.rrd
redis-example/changes_since_last_save.rrd
redis-example/connected_clients.rrd
redis-example/connected_slaves.rrd
redis-example/total_commands_processed.rrd
redis-example/total_connections_received.rrd
redis-example/uptime_in_seconds.rrd
redis-example/used_memory.rrd

Enjoy! :)
.gitignore
README
configure.in
src/Makefile.am
src/collectd.conf.in
src/collectd.conf.pod
src/redis.c [new file with mode: 0644]
src/types.db