tables plugin: Added a generic plugin to parse tabular data.
authorSebastian Harl <sh@tokkee.org>
Thu, 19 Feb 2009 07:56:37 +0000 (08:56 +0100)
committerSebastian Harl <sh@tokkee.org>
Thu, 19 Feb 2009 08:50:12 +0000 (09:50 +0100)
commiteeb86d2d88b08cfc2f0701ca9b7a77d6731c7b94
treeefccd334f384839a18577ff17432c400c04d879e
parentf453199292b45007e5078f568f3bce2e8c8b4067
tables plugin: Added a generic plugin to parse tabular data.

Currently, the main purpose of this plugin is to be able to get information
from the Linux proc filesystem but it should be flexible enough to get data
from other sources as well.

Values are selected based on a given column separator and column numbers. The
configuration is a kind of a mix of the tail and *sql plugins' configurations.
A sample configuration might look like this:

  <Plugin table>
    <Table "/proc/slabinfo">
      Instance "slabinfo"
      Separator " "
      <Result>
        Type gauge
        InstancePrefix "active_objs"
        InstancesFrom 0
        ValuesFrom 1
      </Result>
      <Result>
        Type gauge
        InstancePrefix "objperslab"
        InstancesFrom 0
        ValuesFrom 4
      </Result>
    </Table>
  </Plugin>
configure.in
src/Makefile.am
src/collectd.conf.pod
src/table.c [new file with mode: 0644]