Remote monitoring of Postgres w/minimal grants

From: Bryce Nesbitt <bryce2(at)obviously(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Remote monitoring of Postgres w/minimal grants
Date: 2010-03-10 07:26:13
Message-ID: 4B974995.6070508@obviously.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I'm setting up remote monitoring of postgres, but running into an
uncomfortable situation with permissions.
Basically it seems hard to set up a secure "read only" role, yet also
allow proper monitoring.

A brief writeup of that is here:
http://help.logicmonitor.com/installation-getting-started/notes-for-monitoring-specific-types-of-hosts/databases/postgresql/postgresql-credentials/
In order to get accurate server busy stats and max query time, the
LogicMonitor user needs to be a superuser "alter role logicmonitor
superuser;". Without the SuperUser privilege, all servers will appear
busy, and maximum query time will always be 0.

Is there a way to grant the type of permission needed to view stats,
without superuser?

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Ben Morrow 2010-03-10 15:25:10 Re: Help : insert a bytea data into new table
Previous Message Navanethan Muthusamy 2010-03-10 07:19:39 Clarification With Money data type