Skip to content

pulkitvaishnav/redis-queue-collectd-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

redis-queue-collectd-plugin

A Redis plugin for collectd using collectd's Python plugin.

This plugin is an output plugin (writer). Instead of using Redis as a datastore like the native write_redis plugin which is part of collectd, it uses Redis as a queue. So this can be seen as an alternative to the amqp-plugin (which is not very cool if you want to use json and a lot of custom types).

The format of the data is collectd's JSON format (the same that can be used for rabbitmq).

Install

  1. Place write_redis_queue.py in ${COLLECTD_PLUGINDIR}/python/write_redis_queue.py
  2. Configure the plugin (see below).
  3. Restart collectd.

Configuration

Add the following to your collectd config:

    <LoadPlugin python>
      Globals true
    </LoadPlugin>

    <Plugin python>
      ModulePath "/usr/lib/collectd/python"
      Import "write_redis_queue"

      <Module write_redis_queue>
        Host "localhost"
        Port 6379
        Queue "collectd"
        TypesDB "/usr/share/collectd/types.db"
      </Module>
    </Plugin>

You can add multiple typesdb files here, but they are needed to construct the json structure.

Contribution

If you experience any errors, please open an issue on github!

About

A collectd writer plugin that uses redis as a queue

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%