feat: "PostgresAI checkup" -- express checkup reports#13
Closed
NikolayS wants to merge 3 commits into
Closed
Conversation
- Add D004_SETTINGS, F001_SETTINGS, G001_SETTINGS constants for filtering - Add generate_d004_from_a003, generate_f001_from_a003, generate_g001_from_a003 methods - Add filter_a003_settings and extract_postgres_version_from_a003 helpers - Add report_to_markdown method with report-specific markdown generators - Add --format option to CLI (json/markdown/both) - Update generate_all_reports to use A003 data for derived reports - Update tests to reflect new architecture
Instead of relying only on postgres_version field, now also extracts version info from server_version and server_version_num settings which are part of the A003 data itself.
Add `postgresai checkup` command for direct PostgreSQL health checks without requiring Prometheus. Generates JSON reports that comply with defined schemas. Features: - A002: Postgres major version - A003: Postgres settings (reuses query from metrics.yml) - A013: Postgres minor version (new schema added) Usage: postgresai checkup postgresql://user:pass@host/db postgresai checkup --check-id A003 --json The express mode runs SQL queries directly against PostgreSQL, useful for quick health checks without full monitoring setup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
postgresai checkupcommand for direct PostgreSQL health checks without requiring Prometheus. Generates JSON reports that comply with defined schemas.Features
Usage