From f1952dc3b06b8299758d058bedff829c3f32685d Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Wed, 14 Mar 2012 19:44:11 +0900 Subject: [PATCH] postgres size detail Added "other" in case this data exists. --- plugins/postgresql/postgres_size_detail_ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/postgresql/postgres_size_detail_ b/plugins/postgresql/postgres_size_detail_ index 0959e358..520b3aac 100755 --- a/plugins/postgresql/postgres_size_detail_ +++ b/plugins/postgresql/postgres_size_detail_ @@ -69,7 +69,7 @@ my $pg = Munin::Plugin::Pgsql->new( SUM(relpages::bigint * 8 * 1024) AS size FROM pg_class pg, pg_namespace pgn WHERE pg.relnamespace = pgn.oid AND pgn.nspname NOT IN ('information_schema', 'pg_catalog') GROUP BY state", configquery => [ - "VALUES ('db_detail_data','Data size'),('db_detail_index','Index size'),('db_detail_sequence','Sequence size'),('db_detail_view','View size')", + "VALUES ('db_detail_data','Data size'),('db_detail_index','Index size'),('db_detail_sequence','Sequence size'),('db_detail_view','View size'),('db_detail_other','Other size')", ], suggestquery => "SELECT datname FROM pg_database WHERE datallowconn AND NOT datistemplate AND NOT datname='postgres' UNION ALL SELECT 'ALL' ORDER BY 1 LIMIT 10",