Skip to content

feat: "PostgresAI checkup" -- express checkup reports#13

Closed
NikolayS wants to merge 3 commits into
mainfrom
claude/express-checkup-cli-DBMWi
Closed

feat: "PostgresAI checkup" -- express checkup reports#13
NikolayS wants to merge 3 commits into
mainfrom
claude/express-checkup-cli-DBMWi

Conversation

@NikolayS
Copy link
Copy Markdown
Contributor

Summary

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

# Generate all reports
postgresai checkup postgresql://user:pass@host:5432/dbname

# Generate specific report
postgresai checkup postgresql://... --check-id A003

# Output to stdout as JSON
postgresai checkup postgresql://... --json

# Use psql-like flags
postgresai checkup -h localhost -p 5432 -U postgres -d mydb

- 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.
@NikolayS NikolayS closed this Dec 25, 2025
@NikolayS NikolayS deleted the claude/express-checkup-cli-DBMWi branch December 25, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants