Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

database-observability

Skill by grafana

Sets up Grafana Cloud Database Observability for MySQL and PostgreSQL. It enables query statistics, creates a monitoring user, and configures Alloy to send query insights to Grafana Cloud. Aimed at engineers diagnosing slow queries.

  • Score 78
  • 323 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install database-observability

Built from the published package, never by AI.

git clone --depth 1 https://github.com/grafana/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/grafana-cloud/database-observability ~/.claude/skills/database-observability

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install database-observability in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides setup of Grafana Cloud Database Observability for MySQL and PostgreSQL. For PostgreSQL, it covers enabling pg_stat_statements, creating a least-privilege monitoring user with pg_monitor, and configuring the database_observability.postgres Alloy component. For MySQL, it covers creating a monitoring user with limited grants and checking that Performance Schema is enabled, then configuring the database_observability.mysql component. Query samples, visual explain plans, RED metrics and schema details are shipped to Grafana Cloud without application code changes.

The source says the setup works for self-managed instances and managed services such as RDS, Aurora, Cloud SQL and Azure Database. It also describes correlating slow SQL with application traces through db.statement and db.system OTel attributes. It is intended for engineers who need to monitor database performance, find slow queries or alert on query latency.

Written from the project's SKILL.md and checked against it.

What it can do

  • PostgreSQL setupEnables pg_stat_statements, creates a monitoring user and configures the Alloy postgres component.
  • MySQL setupCreates a least-privilege monitoring user and checks that Performance Schema is enabled.
  • Query Performance dashboardAuto-provisioned dashboard with top queries, query samples, explain plans and RED metrics.
  • APM correlationLinks slow service spans to the matching SQL using db.statement and db.system attributes.
  • Query alertingSets up alerts on query latency, error rate and connection-pool saturation.

What you need

  • Grafana Cloud account
  • Grafana Alloy
  • MySQL or PostgreSQL database
  • pg_stat_statements enabled (PostgreSQL)
  • Performance Schema enabled (MySQL)

Try asking

  • Set up Database Observability for my PostgreSQL database on RDS
  • Find the slow queries in my MySQL database
  • Help me alert on query latency in Grafana Cloud

Good to know

  • PostgreSQL needs a server restart after adding pg_stat_statements to shared_preload_libraries.
  • On managed databases, pg_stat_statements is preinstalled but disabled and must be enabled through the parameter group or flag.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/grafana-cloud/database-observability/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md4 KB
  • references/alloy-config.md2 KB
  • references/queries-alerts.md2 KB

Alternatives to database-observability

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

database-observability: common questions

Which databases does this support?

The source lists MySQL and PostgreSQL, including self-managed, RDS, Aurora, Cloud SQL and Azure Database variants.

Does this require changes to application code?

The source says Grafana Cloud Database Observability works without application code changes.

Which Alloy components are used?

The source configures the database_observability.postgres component for PostgreSQL and database_observability.mysql for MySQL.

How do I install database-observability?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is database-observability free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is database-observability safe to use?

It scores 78 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to database-observability?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

database-observability Install

Add to stack

Loading.