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:

/doc/images/grafana-dashboard-01.png /doc/images/grafana-dashboard-02.png /doc/images/grafana-dashboard-03.png

Installation

The project is currently very much usable but not officially released yet (no PyPI packages).

It is however installable via git or http directly:

pip install "git+https://github.com/exhuma/pgflux@initial-release"

Usage

See https://exhuma.github.io/pgflux/usage.html

Development & Extending

For detailed instructions, see https://exhuma.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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pgflux-1.0.0-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pgflux-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.7

File hashes

Hashes for pgflux-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb5398b361a6465a67b7fbe0019c327ca2050e0f58c5d360b3c39b33cfbf94ff
MD5 64f1e405f552bd9a0688410289fafdd0
BLAKE2b-256 bc6be0c4fc9eb115fece72da8656914799a8ce425cc72054ef54feff3d4f73c3

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