aj-geddes/useful-ai-prompts10 files

Database Monitoring

>

Specification
Skill ID
aj-geddes/useful-ai-prompts/database-monitoring
Publisher
aj-geddes
Repository
useful-ai-prompts
Installs
0
Files
10
Synced
Sep 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

aj-geddes/useful-ai-prompts/database-monitoringInstalls these files
  • SKILL.md
  • references/automated-monitoring-dashboard.md
  • references/connection-monitoring.md
  • references/innodb-monitoring.md
  • references/performance-schema.md
  • references/postgresql-monitoring-setup.md
  • references/query-performance-monitoring.md
  • references/table-index-monitoring.md
  • scripts/validate-schema.sh
  • templates/migration-template.sql

What this skill tells the agent

Database Monitoring

Table of Contents

  • Overview
  • When to Use
  • Quick Start
  • Reference Guides
  • Best Practices

Overview

Implement comprehensive database monitoring for performance analysis, health checks, and proactive alerting. Covers metrics collection, analysis, and troubleshooting strategies.

When to Use

  • Performance baseline establishment
  • Real-time health monitoring
  • Capacity planning
  • Query performance analysis
  • Resource utilization tracking
  • Alerting rule configuration
  • Incident response and troubleshooting

Quick Start

Minimal working example:

-- View current connections
SELECT
  pid,
  usename,
  application_name,
  client_addr,
  state,
  query_start,
  state_change
FROM pg_stat_activity
WHERE state != 'idle'
ORDER BY query_start DESC;

-- Count connections per database
SELECT
  datname,
  COUNT(*) as connection_count,
  MAX(EXTRACT(EPOCH FROM (NOW() - query_start))) as max_query_duration_sec
FROM pg_stat_activity
GROUP BY datname;

-- Find idle transactions
SELECT
  pid,
  usename,
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Connection MonitoringConnection Monitoring
Query Performance MonitoringQuery Performance Monitoring
Table & Index MonitoringTable & Index Monitoring
Performance SchemaPerformance Schema
InnoDB MonitoringInnoDB Monitoring
PostgreSQL Monitoring SetupPostgreSQL Monitoring Setup
Automated Monitoring DashboardAutomated Monitoring Dashboard

Best Practices

✅ DO

  • Follow established patterns and conventions
  • Write clean, maintainable code
  • Add appropriate documentation
  • Test thoroughly before deploying

❌ DON'T

  • Skip testing or validation
  • Ignore error handling
  • Hard-code configuration values

Use this skill in a project

Open any RiverX project, search the Skills panel for aj-geddes/useful-ai-prompts/database-monitoring, and install it in one click.

Use this skill