dargslan-postgres-health
PostgreSQL Health Checker — Monitor connections, bloat, vacuum status, locks, replication lag, and long-running queries. Zero external dependencies.
Installation
pip install dargslan-postgres-health
CLI Usage
dargslan-pg report # Full health report
dargslan-pg connections # Connection stats
dargslan-pg databases # Database sizes
dargslan-pg bloat # Table bloat analysis
dargslan-pg vacuum # Vacuum status
dargslan-pg locks # Waiting locks
dargslan-pg queries # Long-running queries
dargslan-pg replication # Replication status
dargslan-pg json # JSON output
Python API
from dargslan_postgres_health import PostgresHealth
ph = PostgresHealth(host="localhost", user="postgres")
conn = ph.connection_status()
bloat = ph.table_bloat()
ph.print_report()
More from Dargslan
- Dargslan.com — Linux & DevOps eBook Store
- Free Cheat Sheets
- Blog & Tutorials
License
MIT — see LICENSE
Metadata
Release files for dargslan-postgres-health 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dargslan_postgres_health-1.0.0.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dargslan_postgres_health-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.6 kB
Release files / dargslan_postgres_health-1.0.0.tar.gz
| Download URL | dargslan_postgres_health-1.0.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc5e72db246fe7ece1d0c8a0c0463ecf215fbeb3f929c92d16b4bc07379998c6
|
|
BLAKE2b-256 checksum How to use checksums |
a68267d8aaa6f9a1d46ad331bdfde37e10653b7e031bb4763108ace99c296918
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / dargslan_postgres_health-1.0.0-py3-none-any.whl
| Download URL | dargslan_postgres_health-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03dbe84c5ae661d798db2318c5a423f8b3d0edef941a354a2d8f26d60d89bbaf
|
|
BLAKE2b-256 checksum How to use checksums |
24bce7c5f0853f0b9a93b47b8d2bf9456d96f2f123927559041807a0c7400529
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|