-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
72 lines (48 loc) · 2.01 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
pgtop version 0.11
==================
pgtop is a PostgreSQL clone of `mytop', which in turn is a `top' clone for MySQL
pgtop is a console-based (non-gui) tool for monitoring the threads
and overall performance of PostgreSQL 7.2+. It
runs on most Unix systems which have Perl, DBI, and Term::ReadKey
installed. And with Term::ANSIColor installed you even get color.
For more detailed information, look at the `mytop' page on sourceforge.net:
http://mytop.sourceforge.net/
WARNING
pgtop is a quick & dirty hack over `mytop', and not all MySQL concepts map
very well onto PostgreSQL architecture and statistics collector. So don't
expect a good quality out of this little hack...
And, you should probably look for `ptop'.
INSTALLATION
tar -zxvf pgtop-<version>.tar.gz
cd pgtop-<version>
perl Makefile.PL
make
make test
make install
There's no tests, actually.
DOCKER
A ready-made Dockerfile is bundled in this repository.
If you'd like to run pgtop from the docker container, all you need to do
is to supply your own `.pgtop` configuration file.
Build the docker container as:
docker build -t my_pgtop .
You most probably will want to run pgtop pointing it to your database
rather than localhost:5432, so make sure to build a pgtoprc file
from the provided sample `pgtoprc.sample`. After you've done that,
run the docker container with:
cp pgtoprc.sample pgtoprc
# Edit the pgtoprc file to add your database host, port, name, etc..
docker run --rm -it -v ./pgtoprc:/app/.pgtop my_pgtop
Don't forget the `-it` options, or pgtop won't run with the necessary
terminal capabilities to display anything in a meaningful way.
DOCUMENTATION
man pgtop
perldoc pgtop
AUTHOR
Cosimo Streppone <[email protected]>
inspired (and most of code) by `mytop' author
Jeremy D. Zawodny <[email protected]>
COPYRIGHT
pgtop is licensed under the GNU General Public License version 2.
For the full license information, please visit
http://www.gnu.org/copyleft/gpl.html