[collectd-changes] collectd, the system statistics collection daemon: Changes to 'master'
Florian Forster
octo at verplant.org
Sun Jul 6 14:29:17 CEST 2008
README | 7 +
configure.in | 90 +++++++++
contrib/collection.cgi | 60 ++++++
src/Makefile.am | 10 +
src/collectd.conf.in | 17 ++
src/collectd.conf.pod | 105 ++++++++++
src/postgresql.c | 519 ++++++++++++++++++++++++++++++++++++++++++++++++
src/types.db | 6 +
src/utils_complain.c | 2 +-
src/utils_complain.h | 7 +-
10 files changed, 821 insertions(+), 2 deletions(-)
New commits:
commit 2c8470d917b2f0a17326ee1336081dcffbd6a347
Author: Sebastian Harl <sh at tokkee.org>
Date: Sat Jul 5 12:06:25 2008 +0200
contrib/collection.cgi: Added basic support for "postgresql" statistics.
Signed-off-by: Sebastian Harl <sh at tokkee.org>
Signed-off-by: Florian Forster <octo at huhu.verplant.org>
commit a0b4b6b4dc1039670f17854b296281d3286a8e01
Author: Sebastian Harl <sh at tokkee.org>
Date: Sat Jul 5 12:03:51 2008 +0200
postgresql plugin: Added a plugin to collect PostgreSQL database statistics.
This plugin collects active server connections, transaction numbers, block IO
and table row manipulations of PostgreSQL databases. For this purpose it keeps
persistent connections to all configured databases. The statistics are
collected from PostgreSQL's "statistics collector" subsystem.
Currently, statistics are collected from the pg_stat_database,
pg_stat_user_tables and pg_statio_user_tables views. The following new types
have been introduced: pg_blks, pg_n_tup_c, pg_n_tup_g, pg_numbackends, pg_scan
and pg_xact. The type names are basically the same as the column names in the
queried views to keep things consistent. For the number of tuples, counter and
gauge values exist, so the type names have been prefixed with "_c" and "_g"
respectively.
Sample plugin configuration:
<Plugin postgresql>
<Database foo>
Host "hostname"
Port "5432"
User "username"
Password "secret"
SSLMode "prefer"
KRBSrvName "kerberos_service_name"
</Database>
<Database bar>
Service "service_name"
</Database>
</Plugin>
Signed-off-by: Sebastian Harl <sh at tokkee.org>
Signed-off-by: Florian Forster <octo at huhu.verplant.org>
commit 6ddbe0026dea748db40ccc494b4f5048817b346a
Author: Sebastian Harl <sh at tokkee.org>
Date: Wed Jul 2 16:29:07 2008 +0200
src/utils_complain: Changed c_release() into a macro.
While the c_complain*() functions are usually used in error conditions only,
c_release() is usually used whenever things went right (which should be the
more common case ;-)). In order to minimize the overhead in the latter case,
c_release() has been changed into a macro which checks if the complaint
actually has to be released and calls c_do_release() in that case. This
function then takes care of reporting the release-message (this is the
original implementation of c_release()). So, we remove the overhead of a
function call in the usual case, i.e. when we don't have to report any
messages.
Signed-off-by: Sebastian Harl <sh at tokkee.org>
Signed-off-by: Florian Forster <octo at huhu.verplant.org>
More information about the collectd-changes
mailing list