X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C288C9F94EA for ; Tue, 23 May 2006 11:31:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 77413-10 for ; Tue, 23 May 2006 11:31:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id 90A6D9F946D for ; Tue, 23 May 2006 11:31:02 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id k4NEUuXd013580 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 23 May 2006 08:30:58 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.6/8.13.6) with ESMTP id k4NEUtAX050471; Tue, 23 May 2006 08:30:55 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.6/8.13.6/Submit) id k4NEUtbO050470; Tue, 23 May 2006 08:30:55 -0600 (MDT) (envelope-from mfuhr) Date: Tue, 23 May 2006 08:30:55 -0600 From: Michael Fuhr To: Meyer Marco Cc: pgsql-admin@postgresql.org Subject: Re: Howto get tranaction rate in postgres Message-ID: <20060523143055.GA50362@winnie.fuhr.org> References: <684146607711D947A4E4C905326C5E392BFE94@inbmdmx01.intradoemea.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <684146607711D947A4E4C905326C5E392BFE94@inbmdmx01.intradoemea.local> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/315 X-Sequence-Number: 21847 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