Unix Technical Forum

Tools for PostgreSQL stats monitoring?

This is a discussion on Tools for PostgreSQL stats monitoring? within the pgsql Admins forums, part of the PostgreSQL category; --> Having done a series of CREATE TEMP TABLE snap_user_idx AS SELECT * FROM pg_stat_user_indexes; SELECT t1.indexrelname,t1.idx_scan-t0.idx_scan as idx_scan, t1.idx_tup_read-t0.idx_tup_read ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 08:28 AM
Dawid Kuroczko
 
Posts: n/a
Default Tools for PostgreSQL stats monitoring?

Having done a series of
CREATE TEMP TABLE snap_user_idx AS SELECT * FROM pg_stat_user_indexes;
SELECT t1.indexrelname,t1.idx_scan-t0.idx_scan as idx_scan,
t1.idx_tup_read-t0.idx_tup_read AS idx_tup_read,
t1.idx_tup_fetch-t0.idx_tup_fetch as idx_tup_fetch
FROM pg_stat_user_indexes t1 JOIN snap_user_idx t0 USING (indexrelid)
ORDER BY 4;

....it occured to me I'm probably reinventing the wheel. There should already
be a utility which could present all those marvels hidden in 'pg_stat%' tables,
present them as nice graphs, highlight most used indexes, etc, etc.

Maybe one of you is already using such a thing and can direct me to it?

Regards,
Dawid

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 08:28 AM
Michael Fuhr
 
Posts: n/a
Default Re: Tools for PostgreSQL stats monitoring?

On Thu, May 03, 2007 at 03:52:39PM +0200, Dawid Kuroczko wrote:
> There should already be a utility which could present all those
> marvels hidden in 'pg_stat%' tables, present them as nice graphs,
> highlight most used indexes, etc, etc.
>
> Maybe one of you is already using such a thing and can direct me to it?


For basic graphing needs I've used MRTG:

http://oss.oetiker.ch/mrtg/

There's also cricket, cacti, NRG, etc. Any decent network management
system should support custom scripts or plugins to monitor anything
you can measure.

--
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:46 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com