Skip to main content

🐟 Bonito OSS

Deep database observability — a free DBmarlin. Captures slow queries, locks, wait events, and table stats from PostgreSQL (MySQL/Oracle/SQL Server planned), and exposes them for AI agents, MCP servers, and SOC/support teams.

Status: v0.1.0 (Phase 0 — PostgreSQL MVP) · Apache 2.0


Why

Prometheus exporters give you Level 1 metrics (connections, txn/s, replication lag) — the numbers, not the why. Commercial tools like DBmarlin ($45/db/mo) give Level 3: query text, execution plans, lock/blocking trees, wait events. No open-source tool covers this well.

Bonito connects read-only to your database, reads the system views the engine already exposes for free (pg_stat_statements, pg_stat_activity, pg_locks, pg_stat_user_tables), and emits deep observability data.

Ecosystem

🐟 Bonito (deep DB observability)  ──feeds──▶  🚣 Remo (AI incident triage)
   "query X has a seq scan on 10M rows"          "here's the fix: CREATE INDEX..."

Components (Phase 0)

Component What Status
bonito-collector Read-only PostgreSQL collector ✅ Done (BON-001)
bonito-store SQLite event store + POST /events 🟡 Done, pending merge (BON-002)
bonito-api FastAPI query layer 🔴 BON-003
bonito-mcp MCP server for AI agents 🔴 BON-004

Setup

uv venv --python 3.12 .venv
source .venv/bin/activate
uv pip install -e ".[dev]"

Docs & Examples (v0.1.0)

Fastest path — full pipeline in one command:

uv pip install -e ".[dev]" -e bonito-store
docker compose -f examples/docker-compose.yml up -d
docker exec -i bonito-db psql -U postgres -d app < examples/readonly-role.sql
set -a; source examples/bonito.env.example; set +a
bonito-collector --once
curl localhost:8000/baselines

Security (golden rule)

  • Connection is READ-ONLY (a DB user with only SELECT on stat views)
  • Never build SQL from client input — only fixed queries over system views
  • Never writes to the client database

Built by Carlos Cortez — AWS Community Hero. Part of the SOFE / Remo / Bonito observability ecosystem.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bonito_collector-0.1.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bonito_collector-0.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file bonito_collector-0.1.0.tar.gz.

File metadata

  • Download URL: bonito_collector-0.1.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for bonito_collector-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d76a9c991236c2bf4258eb3bf02d546bc6583b606a3c5ab47b3390accc8065d5
MD5 4b0c13336a6de940835897b63c8d1c5e
BLAKE2b-256 16f5131f35683eddad591ac9caa0cafd7f2c70ea5be3ac5f35c614ca4328f162

See more details on using hashes here.

File details

Details for the file bonito_collector-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bonito_collector-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 013fbb0769b4ed2eecb19aebb0d25b4ec197ce55c28e2159fa4a073921aefee1
MD5 dddaf383eb701c013658375fc113269b
BLAKE2b-256 8f4921bb6313da809bcc06e08c911cf3e63efb064b9b0a5165cb6749b88714cb

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.1

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page