author | Sebastian Harl <sh@tokkee.org> | |
Fri, 18 Jul 2008 19:38:03 +0000 (21:38 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Thu, 24 Jul 2008 12:18:04 +0000 (14:18 +0200) | ||
commit | 09c001b38efcb0344c517c5944df87127ea30ee6 | |
tree | 1610f691ddf5ba1e7b28f11d878c394e416ebbdf | tree | snapshot |
parent | 12d48e6b453a4f028d4550d8cea159c913534c5d | commit | diff |
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>
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 | diff | blob | history | |
src/collectd.h | diff | blob | history | |
src/postgresql.c | diff | blob | history | |
src/postgresql_default.conf | [new file with mode: 0644] | blob |