vstavrinov / pg_top_query

Postgres Top Query

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Postgres Top Query

Monitoring tool for PostgreSQL database server. Prints full sql code for the query in pg_top with lot of related parameters like CPU and memory usage, run time and client command, etc. It designed for use with zabbix, but may be invoked as standalone script as well.

Prerequisites.

Requirements include software it depends on:

They both are available in most Linux distributions as packages.

Installation

as simple as run

sudo make

after pulling this repository. To remove is not less easy:

sudo make uninstall

Usage.

Do configure zabbix with key pg_top.query (don't forget restart zabbix_agentd on target server) and see "latest data" or become postgres user:

su - postgres

and enjoy with command line:

pg_top_query

About

Postgres Top Query

License:GNU General Public License v3.0


Languages

Language:Shell 77.8%Language:Makefile 12.1%Language:PHP 10.1%