postgresql plugin: Define default queries in a configuration file.
authorSebastian Harl <sh@tokkee.org>
Fri, 18 Jul 2008 19:38:03 +0000 (21:38 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 24 Jul 2008 12:18:04 +0000 (14:18 +0200)
commit09c001b38efcb0344c517c5944df87127ea30ee6
tree1610f691ddf5ba1e7b28f11d878c394e416ebbdf
parent12d48e6b453a4f028d4550d8cea159c913534c5d
postgresql plugin: Define default queries in a configuration file.

Instead of writing custom code for each default query, those are now defined
in a configuration file which is parsed using the same mechanism as used for
user-defined queries. This configuration file (postgresql_default.conf) is
installed into $pkgdatadir.

Querying the pg_stat_database view is not currently supported this way. This
would require support for parameters in user-defined queries which is not
(yet) available.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/Makefile.am
src/collectd.h
src/postgresql.c
src/postgresql_default.conf [new file with mode: 0644]