Installation

pgmetrics is distributed as a single, dependency-free binary. There is no installation procedure as such, other than copying the binary to somewhere in your $PATH. There are no configuration files. It is meant to be invoked and used like psql.

pgmetrics can be downloaded from the releases page on GitHub. Here are a set of commands to get the 1.4.2 release tarball for Linux:

wget https://github.com/rapidloop/pgmetrics/releases/download/v1.4.2/pgmetrics_1.4.2_linux_amd64.tar.gz
tar xvf pgmetrics_1.4.2_linux_amd64.tar.gz
cd pgmetrics_1.4.2_linux_amd64
./pgmetrics --help

Docker

pgmetrics is also available as a Docker image. To run it via Docker, use:

docker run -it rapidloop/pgmetrics --help

FreeBSD

pgmetrics is available for FreeBSD as the port databases/pgmetrics, maintained by Palle Girgensohn. You can install it with:

pkg install pgmetrics

or build and install using portsnap:

portsnap fetch update
cd /usr/ports/database/pgmetrics
make install