ch_disk_usage
Analyze disk usage by table and partition, providing per-table breakdown, TTL information, and recommendations for optimization.
Instructions
Analyze disk usage by table and partition with recommendations.
Returns:
Total disk usage for the database
Per-table breakdown (rows, size, parts, percentage)
Per-partition breakdown (top 20 by size)
TTL information
Recommendations (excessive parts, missing TTL on large tables)
Args: database: Database to analyze (default: cdc_pipeline)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ch_disk_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | cdc_pipeline |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |