Postgres monitoring

Add some very basic PostgreSQL monitoring. This does not include replication monitoring as that is not provided by default.

Depends on #555