I'm reading about PostgreSQL monitoring tool. I get a lot of information like database size etc. but can't find info about CPU and memory usage.
Are these informations provided by PostgreSQL server or do I have to get it by my native client application (for example, find PID of PostgreSQL and call OS API function).
|
|
||||
|
|
migrated from stackoverflow.com Feb 28 at 9:52
|
That's not really a PostgreSQL monitoring tool, that's PostgreSQL's internal facilities for diagnostics, monitoring and database statistics. For host monitoring you want a tool like Icinga (modernized Nagios) or Zabbix. When monitoring PostgreSQL the If you're interested in getting the CPU use of a particular PostgreSQL backend process from your own custom programs, you must If you desired, you could write a PostgreSQL C extension function to collect the information and return it as a row or rowset over the PostgreSQL protocol, so you could Essentially, you write a library in C using the PostgreSQL APIs, compile it using the |
|||
|
|
