agora inbox for pgsql-sql@postgresql.orghelp / color / mirror / Atom feed
PostgrSQL server : CPU and Memory 2+ messages / 2 participants [nested] [flat]
* PostgrSQL server : CPU and Memory @ 2017-05-18 03:50 kaustubh kelkar <ksquare16@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: kaustubh kelkar @ 2017-05-18 03:50 UTC (permalink / raw) To: pgsql-general <pgsql-general@postgresql.org>; 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: PostgrSQL server : CPU and Memory @ 2017-05-18 04:03 John R Pierce <pierce@hogranch.com> parent: kaustubh kelkar <ksquare16@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: John R Pierce @ 2017-05-18 04:03 UTC (permalink / raw) To: pgsql-general@postgresql.org On 5/17/2017 8:50 PM, kaustubh kelkar wrote: > I am a developer and I want to monitor metrics related to CPU and > Memory of PostgreSQL server only using SQL queries. postgres itself doesn't track that level of OS specific stuff. > > 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. thats reading the /proc/.... stuff available on Linux systems via SQL, its the same stuff OS level tools like ps, top, free use... it won't work on non-Linux systems, even other Unix systems like BSD don't have the same /proc stuff, and other OS's like Windows don't have /proc at all. if you don't know whether that's what you need, I'm not sure how we could know what you need. -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-05-18 04:03 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-05-18 03:50 PostgrSQL server : CPU and Memory kaustubh kelkar <ksquare16@gmail.com> 2017-05-18 04:03 ` John R Pierce <pierce@hogranch.com>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox