qmetrics.net

pgbot

In-database PostgreSQL health diagnostics for agents

DatabasesDesktop/CLI app
pgbot screenshot

pgbot is a single static binary that connects read-only to PostgreSQL, reads statistics views, and prints a findings-first health report plus changes since the last run.

Overview

pgbot provides in-database observability for PostgreSQL without a collector, external service, or write privileges on the database. A read-only login role and session settings such as read-only transactions and timeouts enforce that guarantee, with findings computed deterministically in Go from SQL rather than by an optional AI layer.

The default inspect output groups vital signs, names subsystems that checked clean, assigns a health score, and buckets issues as critical, warning, or note. Focused commands drill into indexes, queries, tables, vacuum, schema, activity, and more. Versioned JSON output is the stable contract for scripts and AI agents; human terminal output is not guaranteed stable.

Each run can store a local baseline so later runs highlight regressions such as slower queries or unused indexes. The tool exposes findings over the Model Context Protocol for agent integration. Optional ask and explain commands add plain-language readings on top of the same deterministic findings when a model API key is configured.

Installation options include a static binary via package managers, Docker, npx, Homebrew, and Go install. The project positions itself as a point-in-time diagnostic rather than a long-running monitoring platform with dashboards and alerting.

Key features

  • Read-only PostgreSQL inspection
  • Findings-first health reports
  • Versioned JSON output for agents
  • Local baseline change tracking
  • MCP server for AI tools
  • Focused drill-down commands
  • CI-friendly lint and fail-on severity
  • Optional AI explain layer

Use cases

  • Quick database triage
  • AI agent database findings
  • CI schema and health gates
  • Index and query analysis
  • Autovacuum and bloat checks

Tags

Similar software

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

  • Dedicated Postgres per project
  • Built-in authentication and RLS
  • Auto-generated REST and GraphQL APIs
TypeScriptDetails →
★ 115.9k⟳ todayApache-2.0
Open Source Alternative to:Amazon AuroraFirebase+1

NocoDB

Self-hostable no-code database with spreadsheet interface

NocoDB turns Postgres, MySQL, SQLite, or a hosted database into editable tables with grid, kanban, form, gallery, and calendar views. Teams collaborate with roles, sharing, REST APIs, and workflow integrations.

  • Spreadsheet-style grid and alternate views
  • Connect Postgres, MySQL, or SQLite
  • Role-based access and locked views
TypeScriptDockerDetails →
★ 65.7k⟳ todaySource-available
DatabasesSelf-hostable
Alternative to:AirtableGoogle Sheets+1

etcd

Raft-backed distributed consistent key-value store

etcd stores small critical configuration and coordination data for clusters. It exposes a gRPC API, tolerates failures via Raft, and ships with the etcdctl command-line client.

  • Strongly consistent Raft replication
  • gRPC and HTTP key-value API
  • Watch keys and directories for changes
GoLinux, macOS, Windows, DockerDetails →
★ 52.7k⟳ yesterdayApache-2.0
DatabasesSelf-hostable

DBeaver

Universal multi-platform database tool and SQL client

Free desktop client for developers and DBAs with SQL editing, data editing, ER diagrams, exports, and support for hundreds of JDBC or ODBC databases.

  • SQL and schema editors
  • Data grid editing
  • ER diagram modeling
JavaLinux, macOS, WindowsDetails →
★ 52.6k⟳ todayApache-2.0
DatabasesDesktop/CLI app
Open Source Alternative to:DataGripNavicat+4

ClickHouse

Column-oriented real-time analytics database management system

ClickHouse is a column-oriented database for generating analytical reports in real time using SQL on large datasets.

  • Column-oriented OLAP storage
  • Real-time analytical SQL queries
  • High compression for large datasets
C++Linux, macOSDetails →
★ 51.4k⟳ todayApache-2.0
Open Source Alternative to:Amazon RedshiftBigQuery+1

DuckDB

In-process analytical SQL database engine

DuckDB embeds in applications and the CLI to run fast OLAP SQL locally. It reads Parquet, CSV, JSON, remote object storage, and lakehouse formats without a separate database server.

  • Embedded in-process OLAP engine
  • Rich SQL with windows and nested types
  • Direct queries on Parquet and CSV files
C++CLIDetails →
★ 43.7k⟳ todayMIT