qmetrics.net

pgbot

In-database PostgreSQL health diagnostics for agents

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

Prometheus

Open-source metrics monitoring and time series database

Prometheus collects metrics from configured targets, evaluates rules, and can raise alerts. It stores time series data and exposes a query language called PromQL.

★ 67.9k⟳ yesterdayApache-2.0
Open Source Alternative to:PRTG Network Monitor

InfluxDB

Open-source time series database for events and metrics

InfluxDB 3 Core collects, stores, and queries event and time series data for monitoring, analytics, and automation that need fast ingest and query response.

★ 31.8k⟳ 1 month agoApache-2.0
Open Source Alternative to:kdb+

TDengine

Open-source time-series database for IoT and industrial data

TDengine ingests and queries high-volume sensor and machine data for IoT, connected vehicles, and industrial scenarios. It combines time-series storage with caching, streaming, and optional AI agents.

★ 25.2k⟳ yesterdayAGPL-3.0
Open Source Alternative to:AVEVA Historian

VictoriaMetrics

Open-source time series database for metrics monitoring

VictoriaMetrics stores and queries monitoring time series data. It supports long-term metric retention and works as storage alongside common observability stacks.

★ 18.2k⟳ todayApache-2.0

GreptimeDB

Columnar observability database for metrics logs traces

GreptimeDB stores metrics, logs, and traces in one columnar engine on object storage. Ingest uses OpenTelemetry, Prometheus Remote Write, Loki Push, and SQL or PromQL queries.

★ 6.8k⟳ todayApache-2.0

SQL Server First Responder Kit

SQL Server stored procedures for health and performance

Collection of T-SQL procedures such as sp_Blitz for server health checks, plan cache review, indexing, and live performance triage.

★ 3.9k⟳ 9 days agoMIT · open core