dawiddutoit/custom-claude/clickhouse-operations
Claude Code and agent skill by dawiddutoit/custom-claude
- community
Checking that the SKILL.md file is still in the repository.
Complete ClickHouse operations guide for DevOps and SRE teams managing production deployments. Provides practical guidance on monitoring essential metrics (query latency, throughput, memory, disk), introspecting system tables, performance analysis, scaling strategies (vertical and horizontal), backup/disaster recovery, tuning at query/server/table levels, and troubleshooting common issues. Use when diagnosing ClickHouse problems, optimizing performance, planning capacity, setting up monitoring, implementing backups, or managing production clusters. Includes resource management strategies for disk space, connections, and background operations plus production checklists.
Install
npx vskill@latest install dawiddutoit/custom-claude/clickhouse-operationsSKILL.md
ClickHouse Operations & Production Management
When to Use This Skill
Use when asked to:
- Diagnose ClickHouse performance problems ("query is slow", "out of memory")
- Set up production monitoring and alerting
- Scale ClickHouse vertically (more resources) or horizontally (clustering)
- Implement backup and disaster recovery procedures
- Troubleshoot replication lag, disk space, or resource issues
- Plan capacity for growing data volumes
Do NOT use when:
- Optimizing specific queries (use clickhouse-query-optimization instead)
- Building materialized views (use clickhouse-materialized-views instead)
- Initial ClickHouse installation (this is for operations, not setup)
Table of Contents
- Purpose
- Quick Start
- Key Operations
- Step 1: Set Up Essential Monitoring
- Step 2: Diagnose Issues Using System Tables
- Step 3: Implement Vertical Scaling (Single Server)
- Step 4: Implement Horizontal Scaling (Cluster)
- Step 5: Set Up Backup & Disaster Recovery
- Step 6: Tune Performance at Multiple Levels
- Step 7: Troubleshoot Common Issues
- Step 8: Manage Resources Effectively
- Step 9: Production Deployment Checklist
- Examples
- Emergency Query Memory Pressure
- Disk Space Crisis
- Monitoring Setup
- Backup Implementation
- References & Resources
- Complete Query Reference - Diagnostic and monitoring queries
- Extended Troubleshooting Guide - Root cause analysis and solutions
- Scaling Case Studies - Real-world scaling decisions
- Monitoring Setup Examples - Production-ready Prometheus/Grafana configs
- Requirements
Purpose
This skill provides comprehensive operational guidance for managing ClickHouse in production environments. It covers monitoring strategies, system diagnostics, scaling approaches, backup procedures, performance tuning, troubleshooting, and resource management to help DevOps and SRE teams maintain reliable, performant ClickHouse deployments.
Quick Start
Monitor current cluster health in 30 seconds:
Key Operations
This section walks through the 9 essential steps for managing ClickHouse in production.
Step 1: Set Up Essential Monitoring
ClickHouse requires monitoring of 9 critical metrics. Use these queries with your monitoring system (Prometheus, Grafana, Datadog, etc.):
Query Latency & Throughput:
Insert Rate & Memory Usage:
Disk Usage & Background Operations:
Alert Thresholds:
- Query latency p95 > 5 seconds
- Insert rate drops > 20% without load change
- Free disk < 20% of total
- Active parts > 1000 per table
- Memory usage > 80% of limit
- Replication lag > 60 seconds
- Failed query rate > 1%
Step 2: Diagnose Issues Using System Tables
When problems occur, use these targeted queries to pinpoint root causes:
Find Slow Queries:
Identify Problematic Queries:
Track Failed Queries:
Monitor Table Growth:
Step 3: Implement Vertical Scaling (Single Server)
Scale up individual ClickHouse servers by increasing CPU, memory, or disk resources:
CPU Optimization:
Memory Management:
Disk I/O Tuning:
Step 4: Implement Horizontal Scaling (Cluster)
For massive scale, distribute data across multiple nodes:
Define Cluster Configuration:
Create Distributed Tables:
Monitor Cluster Health:
Step 5: Set Up Backup & Disaster Recovery
Implement automated, tested backup procedures:
Filesystem Snapshot Strategy (Recommended for production):
Native BACKUP Command (ClickHouse 22.8+):
Disaster Recovery Procedure:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/clickhouse-operations/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 29 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dawiddutoit/custom-claude/clickhouse-operations)