db-performance-watchlist

Monitor database performance with slow query detection and resource alerts.

1|Updated Nov 6, 2025
One-click install
npx skills add https://github.com/zinohome/CozyChat --skill db-performance-watchlist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-performance-watchlist
Source: https://github.com/zinohome/CozyChat/tree/main/.claude/skills/db-performance-watchlist
Command: npx skills add https://github.com/zinohome/CozyChat --skill db-performance-watchlist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires prisma, node-cron, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill proactively monitors database performance, detects slow queries, and alerts on resource usage issues to prevent performance degradation and ensure smooth operation.

Core Features & Use Cases

  • Slow Query Detection: Identifies and reports queries exceeding defined time thresholds.
  • Resource Monitoring: Tracks CPU, memory, and disk usage, alerting on critical levels.
  • Connection Pool Management: Monitors connection utilization and warns when nearing capacity.
  • Index Analysis: Identifies unused or potentially missing indexes to optimize query performance.
  • Use Case: Automatically detect and get alerted about a sudden spike in slow database queries that could be impacting application responsiveness.

Quick Start

Run the automated database performance monitoring script to check for slow queries and resource usage.

Frequently Asked Questions about db-performance-watchlist

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I monitor database performance and detect slow queries automatically?

You can monitor database performance by running scheduled SQL queries that identify slow queries exceeding defined time thresholds. This automated detection proactively flags performance regressions and bottlenecks before they impact application responsiveness.

Why does my database connection pool reach capacity and how can I track it?

Tracking database connection pool utilization helps identify why connections reach capacity. By monitoring connection pool usage, you receive warnings when nearing capacity limits, preventing potential connection exhaustion and ensuring smooth database operation.

Can I use Prisma to analyze missing or unused database indexes?

Yes, you can use Prisma alongside automated scripts to analyze missing or unused database indexes. This index analysis identifies optimization opportunities to improve query performance and prevent degradation across your database operations.

What's the best way to set up alerts for database resource usage and CPU spikes?

The best way to set up database resource alerts is by implementing scheduled monitoring tasks that track CPU, memory, and disk usage. These automated checks alert you when critical resource levels are reached, preventing performance degradation.

How do I automate slow query detection with node-cron for proactive monitoring?

You can automate slow query detection by scheduling SQL query checks with node-cron. This configuration runs performance monitoring scripts at defined intervals to proactively detect slow queries and resource usage issues without manual intervention.

Does this database monitoring approach work for finding performance regressions in production?

Yes, this database monitoring approach works for production environments by automating checks for performance regressions. It continuously detects slow queries, tracks resource usage, and alerts on connection pool capacity to ensure smooth production operation.