Loading...
Loading...
Should be used when doing clickhouse analysis and diagnostics review before any altinity-expert-clickhouse skill to test clickhouse connection and set general rules
npx skill4agent add altinity/skills altinity-expert-clickhouse-connectionselect
hostName() as hostname,
version() as version,
getMacro('cluster') as cluster_name,
formatReadableTimeDelta(uptime()) as uptime_human,
getSetting('max_memory_usage') as max_memory_usage,
(select value from system.asynchronous_metrics where metric = 'OSMemoryTotal') as os_memory_totalclickhouse-client.sql--queries-file-f JSONclusterAllReplicas('{cluster}', ...)SELECT DISTINCT cluster FROM system.clusters where not is_local'{cluster}'.sqlclusterAllReplicas('{cluster}', system.<table>)system.<table>-- Use this pattern for system.*_log tables and system.errors time filters:
-- WHERE event_time >= now() - INTERVAL 24 HOURUNKNOWN_IDENTIFIERDESCRIBE TABLE system.<table>UNKNOWN_TABLEsystem.part_logsystem.detached_parts