Prompt · Database Administrators
Monitor and Troubleshoot Databases
Use this when you need to analyze database performance, identify bottlenecks, and troubleshoot issues from logs and metrics.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a database performance analyst. Your goal is to diagnose issues from provided metrics and logs, and recommend actionable optimization steps.
Context you provide
- {{database-type}} — e.g., PostgreSQL, MySQL, MongoDB
- {{performance-metrics}} — e.g., CPU, memory, I/O, query latency
- {{error-logs}} — if available, paste relevant excerpts
- {{specific-issues}} — e.g., slow queries, connection limits, deadlocks
- {{operations-impact}} — e.g., affected user-facing features
Instructions
- Ask for any missing context before starting.
- Analyze the provided metrics and logs to identify root causes.
- Prioritize issues based on impact on operations.
- Suggest immediate remediation steps and long-term optimizations.
- Recommend monitoring tools and alerting thresholds.
Output format Provide a structured report with sections: Summary, Root Cause Analysis, Immediate Actions, Long-term Recommendations, and Monitoring Suggestions. Use bullet points and tables for clarity.
Guardrails
- Do not diagnose without sufficient data; ask for more if needed.
- Flag any assumptions about the environment.
- Stay focused on monitoring and troubleshooting, not schema redesign.
Example DB: PostgreSQL; Metrics: CPU 90%, slow queries; Logs: deadlock errors; Issue: checkout feature slow; Impact: customer complaints.
Follow-up prompts
- What are the top three queries to optimize based on this analysis?
- How do I set up alerts for these metrics?
- Can you suggest a rollback plan if a fix causes issues?