返回 Skill 列表
extension
分类: 开发与工程无需 API Key

altinity-expert-clickhouse-logs

分析ClickHouse系统日志表的健康状况,包括TTL配置、磁盘使用情况、数据新鲜度以及清理情况。用于处理系统日志问题和TTL配置。

person作者: jakexiaohubgithub

Diagnostics

Run all queries from checks.sql in this skill's directory and analyze the results.

TTL Recommendations

| Log Table | Recommended TTL | Notes | |-----------|----------------|-------| | query_log | 7-30 days | Balance debugging vs disk | | query_thread_log | Disable or 3 days | Very verbose | | part_log | 14-30 days | Important for RCA | | trace_log | 3-7 days | Large, mostly for debugging | | text_log | 7-14 days | Important for debugging | | metric_log | 7-14 days | Useful for trending | | asynchronous_metric_log | 7-14 days | Low volume | | crash_log | 90+ days | Rare, keep longer |

KB articles

  • https://kb.altinity.com/altinity-kb-setup-and-maintenance/altinity-kb-system-tables-eat-my-disk/