pg_gotop

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 9 Imported by: 0

README

PG Go Top

Another postgresql monitoring tool.

Intro

pg_gotop is a top/htop alike utility used to monitor postgresql databases. It opens a database connection and lists different resources like: current backend processes, long running transaction, IO and memory resources.

It uses internaly the pg_catalog system tables like pg_stats_activity and uses system administration funcions like pg_terminate_backend to administrate and monitor a postgresql databases.

Usage

To show the options

$ pg_gotop --help
$ pg_gotop -h

To show the current version

$ pg_gotop --version
$ pg_gotop -v

Running pg_gotop will prompt for a password if needed to be able to connect to the database.

The default values:

  • User: postgres
  • Database Name: postgres
  • Host: localhost
  • Port: 5432

To use a specific database connection use :

$ pg_gotop -d $db -U $user -h $host -p $port
Enter Password:  

Screenshots

The info panel info panel

The running transactions panel info panel

The activity panel info panel

Dependencies

Build and test

For building the project:

$ go build -o bin/

Execute the tool with the defaults:

$ bin/pg_gotop

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL