Describe what's wrong
Query metric doesn't calculate anymore
SELECT * FROM system.metrics WHERE metric='Query'
always return value=0
SELECT event_time, CurrentMetrics_Query FROM system.metric_log WHERE CurrentMetrics_Query>0
always return 0 rows
I check these queries during run following script in separate terminal
clickhouse-client -q "SELECT sleepEachRow(1),now() FROM numbers(60)"
Does it reproduce on recent release?
Yes it reproduce on 22.1 and 21.12
And doesn't reproduce on 21.11