Skip to content

pgexporter/pgexporter_ext

pgexporter_ext

pgexporter_ext is an extension for PostgreSQL to provide additional Prometheus metrics for pgexporter.

Features

  • OS information
  • CPU information
  • Memory information
  • Network information
  • Load average metrics
  • Disk space metrics

See Getting Started on how to get started with pgexporter_ext.

Tested platforms

Compiling the source

pgexporter requires

dnf install git gcc cmake make postgresql-devel

NOTE: It may happen that build fails due to "postgres.h" not being found. In that case, uninstall the package postgresql-devel and instead install postgresql-server-devel:

dnf remove postgresql-devel
dnf install postgresql-server-devel

Alternative clang 8+ can be used.

Release build

The following commands will install pgexporter in the /usr/local hierarchy.

git clone https://github.com/pgexporter/pgexporter_ext.git
cd pgexporter_ext
mkdir build
cd build
cmake ..
make
sudo make install

Debug build

The following commands will create a DEBUG version of pgexporter_ext.

git clone https://github.com/pgexporter/pgexporter_ext.git
cd pgexporter_ext
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make

Contributing

Contributions to pgexporter_ext are managed on GitHub.com

Contributions are most welcome !

Please, consult our Code of Conduct policies for interacting in our community.

Consider giving the project a star on GitHub if you find it useful.

License

BSD-3-Clause