system.part_log Introspection
The Part Log Introspection tool tracks all part-level operations in your ClickHouse cluster, including merges, mutations, downloads, and removals.
It provides multiple filters and distribution charts as well as a detail table for us to quick find queries from the UI without manually writing multiple SQLs on the system.part_log table.
Prerequisites
Note: Read access to the
system.part_logtable is required to use this introspection tool. Ensure your user has the necessary system table privileges.
UI
Use Cases
Merge Monitoring
- Filter by MergeParts: Focus on merge operations
- Monitor Duration: Sort by duration to find slow merges
- Track Frequency: Use distribution chart to see merge patterns
- Identify Issues: Filter by error to find failed merges
Mutation Tracking
- Filter by MutatePart: Track ALTER operations
- Monitor Progress: Check duration and status
- Identify Bottlenecks: Find slow mutations
- Error Analysis: Filter by error to debug issues
Replication Monitoring
- Filter by DownloadPart: Track part downloads from replicas
- Monitor Lag: Check event times to identify replication delays
- Error Tracking: Filter by error to find replication failures
- Node Comparison: Filter by hostname to compare nodes
Storage Analysis
- Filter by NewPart/RemovePart: Track part lifecycle
- Monitor Size: Sort by size_in_bytes to find large parts
- Track Growth: Use time range to see storage trends
- Part Type Analysis: Filter by part_type to understand storage formats
Next Steps
- Cluster Dashboard — Monitor cluster-wide metrics
- Node Dashboard — Monitor individual node metrics
- System Log Introspection — Overview of all system log tools
- system.ddl_distribution_queue Introspection — Monitor distributed DDL operations
- system.query_log Introspection — Analyze query execution logs
- system.query_views_log Introspection — Monitor query view executions
