pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Meyer Marco <Marco.Meyer@IntradoEMEA.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Howto get tranaction rate in postgres
Date: Tue, 23 May 2006 08:30:55 -0600
Message-ID: <20060523143055.GA50362@winnie.fuhr.org> (raw)
In-Reply-To: <684146607711D947A4E4C905326C5E392BFE94@inbmdmx01.intradoemea.local>
References: <684146607711D947A4E4C905326C5E392BFE94@inbmdmx01.intradoemea.local>

On Tue, May 23, 2006 at 03:49:20PM +0200, Meyer Marco wrote:
> I mean the transactions over time interval. Say the current db
> transactions per minute.

See the "Monitoring Database Activity" chapter in the documentation:

http://www.postgresql.org/docs/8.1/interactive/monitoring.html

One way would be to query pg_stat_database periodically and track
how fast xact_commit and xact_rollback are changing.  With monitoring
software like MRTG you could write a script to query pg_stat_database
and let the monitor track the rate of change and draw activity graphs.

Pgfouine generates usage reports but I haven't used it so I don't
know anything about it other than what its web site says.  See
"Sample reports" at the following link:

http://pgfouine.projects.postgresql.org/

-- 
Michael Fuhr



view thread (4+ messages)

Message-ID: <20060523143055.GA50362@winnie.fuhr.org>
Permalink:  ../20060523143055.GA50362@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20060523143055.GA50362@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mike@fuhr.org, Marco.Meyer@IntradoEMEA.com
  Subject: Re: Howto get tranaction rate in postgres
  In-Reply-To: <20060523143055.GA50362@winnie.fuhr.org>
  References: <684146607711D947A4E4C905326C5E392BFE94@inbmdmx01.intradoemea.local> <20060523143055.GA50362@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox