Skip to content
Kitbay

database-observability

Apache-2.0Updated on Nov 10, 2026307GitHub stars

A Grafana Labs skill for setting up Database Observability in Grafana Cloud for MySQL and PostgreSQL.

What the skill teaches

A Grafana Labs skill for setting up Database Observability in Grafana Cloud for MySQL and PostgreSQL. The agent turns on the database's own statistics (pg_stat_statements or the Performance Schema), creates a monitoring user with limited rights, and configures the matching Grafana Alloy component to send query samples, explain plans, metrics and schema details to Grafana Cloud. It lists the supported managed and self-hosted databases, such as RDS, Aurora, Cloud SQL and Azure Database, and shows how to link slow queries to application traces through OpenTelemetry database attributes. References hold Alloy configuration, queries and alerts.

Capabilities

  • Enable query statistics in MySQL or PostgreSQL
  • Create a least-privilege monitoring user
  • Configure Alloy to send query samples and explain plans
  • Correlate slow queries with application traces