Skip to main content

Script for monitoring PostgreSQL databases with InfluxDB

Project description

pgflux

pgflux is a Python utility to send PostgreSQL metrics to InfluxDB. The drivers when developing this tool were:

It enables Grafana visualisations as seen in the screenshots below:

https://raw.githubusercontent.com/post-luxembourg/pgflux/v1.0.1/docs/_images/grafana-dashboard-01.png https://raw.githubusercontent.com/post-luxembourg/pgflux/v1.0.1/docs/_images/grafana-dashboard-02.png https://raw.githubusercontent.com/post-luxembourg/pgflux/v1.0.1/docs/_images/grafana-dashboard-03.png

Installation

The project can be installed directly via pip:

python3 -m venv /path/to/virtual-env
/path/to/virtual-env/bin/pip install pgflux

The use of a virtual environment is optional, but recommended.

Usage

See https://post-luxembourg.github.io/pgflux/usage.html

Development & Extending

For detailed instructions, see https://post-luxembourg.github.io/pgflux/development.html

NOTE

This project uses fabric as task runner (see https://fabfile.org). To install it use either pipx install fabric (recommended) or, if you don’t have pipx: pip install --user fabric.

Commands

  • Listing all available development tasks:

    fab -l
  • To set up or refresh the development environment:

    fab develop
  • Run PostgreSQL, InfluxDB & Grafana containers (requires docker-compose):

    fab run-dev-containers
  • Run the tests:

    fab test

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pgflux-1.0.1.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

pgflux-1.0.1-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file pgflux-1.0.1.tar.gz.

File metadata

  • Download URL: pgflux-1.0.1.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for pgflux-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5119a72379a117438d8ac7ac378df0399d014956eb2a3e2a6310fdef2e95e75a
MD5 4764c8a454175305e9e68d7e1fd61afe
BLAKE2b-256 c8469aaf7b857694a77088d4777c11d0d52fc30060ba0ca31e8b555b61ea8aa1

See more details on using hashes here.

File details

Details for the file pgflux-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pgflux-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for pgflux-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ab2a3d507443c38bb39cab147688b874ec39ab67654f91ad0275b21d0296266
MD5 eb10fae8f535865b0d4f345280a79d6b
BLAKE2b-256 91316b725f72d83cc5a4f28ecdd6b0331feb1bea4cf76c31e022deb489b5f415

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page