Extracts metrics from a PostgreSQL instance