Skip to content

system.metrics name='Query' and system.metric_log CurrentMetric_Query gauge doesn't calculate anymore #34014

@Slach

Description

@Slach

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

Metadata

Metadata

Assignees

Labels

bugConfirmed user-visible misbehaviour in official releasest-acceptedThe issue is in our backlog, ready to take

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions