Code

postgresql plugin: Added support for <Result> blocks.
authorSebastian Harl <sh@tokkee.org>
Sun, 1 Feb 2009 21:48:01 +0000 (22:48 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 1 Feb 2009 22:13:53 +0000 (23:13 +0100)
commit0b350ce8049e8c5db34751340e015c7a7937664e
treee315229adcd2762e61d1244a0926537afb883e6c
parentfb86aa60842b2b8ae3f00af34e685dcbf9ad2592
postgresql plugin: Added support for <Result> blocks.

This is a replacement for the "Column" config option (which has been
deprecated). <Result> blocks allow for much more flexible handling of the
data. Besides being able to use data types with multiple data sources, the
plugin now supports to generate the type instance using information from the
database.

An example <Result> block might look like this (taken from the manpage):

  <Result>
    Type counter
    InstancePrefix "rt36_tickets"
    InstancesFrom "type"
    ValuesFrom "count"
  </Result>
src/collectd.conf.pod
src/postgresql.c
src/postgresql_default.conf