author | Sebastian Harl <sh@tokkee.org> | |
Thu, 19 Feb 2009 07:56:37 +0000 (08:56 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 19 Feb 2009 08:50:12 +0000 (09:50 +0100) | ||
commit | eeb86d2d88b08cfc2f0701ca9b7a77d6731c7b94 | |
tree | efccd334f384839a18577ff17432c400c04d879e | tree | snapshot |
parent | f453199292b45007e5078f568f3bce2e8c8b4067 | commit | diff |
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>
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 | diff | blob | history | |
src/Makefile.am | diff | blob | history | |
src/collectd.conf.pod | diff | blob | history | |
src/table.c | [new file with mode: 0644] | blob |