[SQL] PostgrSQL server : CPU and Memory - Mailing list pgsql-sql

From kaustubh kelkar
Subject [SQL] PostgrSQL server : CPU and Memory
Date
Msg-id CALb1ETPD_yjC4Jc2rKhesm=rO+xZZGNaiTd-FothPUh+5uSWrQ@mail.gmail.com
Whole thread Raw
List pgsql-sql
Hi ,

I am a developer and I want to monitor metrics related to CPU and Memory of PostgreSQL server only using SQL queries.

Do we have any system tables which can give us the data? I have found this one 
https://aaronparecki.com/2015/02/19/8/monitoring-cpu-memory-usage-from-postgres 
but dont know whether it is exactly the same what I need. 

I am able to fetch the same using scripts (batch/shell) but getting data from SQL will be my main task.   

--
Kaus2bh Kelkar

pgsql-sql by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: [SQL] PostgreSQL 9.3 DB initialization issue
Next
From: Ertan Küçükoğlu
Date:
Subject: [SQL] SQL conversion help