Download for MacApple silicon, macOS 14+
Skill

database-observability

@grafana Updated 2026-10-17

Set up Grafana Cloud Database Observability for MySQL and PostgreSQL — enables `pg_stat_statements` / Performance Schema, creates a least-privilege monitoring user, configures the `database_observability.postgres` / `database_observability.mysql` Alloy components, ships query samples + visual explain plans + RED metrics + schema details to Grafana Cloud, and correlates slow queries with application traces via `db.statement` / `db.system` OTel attributes. Use when monitoring database performance, diagnosing slow queries, setting up DB observability for RDS / Aurora / Cloud SQL / Azure Database / self-managed instances, correlating DB metrics with APM, or alerting on query latency — even when the user says "my database is slow", "find the slow queries", or "monitor RDS" without saying "observability".

Install

With your agent

Install OMGSkills skill "grafana/skills:database-observability" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

git clone https://github.com/grafana/skills /tmp/skills && ln -s /tmp/skills/skills/grafana-cloud/database-observability ~/.claude/skills/database-observability

From README

Grafana Cloud Database Observability Docs: https://grafana.com/docs/grafana-cloud/monitor-applications/database-observability/ Query-level insights (RED metrics, query samples, explain plans) for MySQL and PostgreSQL without application code changes. GA since April 2026. Common Workflows PostgreSQL Add the Alloy config block from references/alloy-config.md § PostgreSQL Restart Alloy and wait 60s for first scrape Verify in Grafana Cloud → Database Observability — the instance should appear with non-empty dbquerytotal{dbinstance="mydb"} series. If empty after 2 minutes: check Alloy logs for connection errors, then re-verify pgstatstatements permissions.