You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Look errors Too many points to visualize properly.
query
with
(intDiv(toUInt32(event_time), $interval)) as query_finish,
(intDiv(toUInt32(query_start_time), $interval)) as query_start,
arrayMap( i -> ( query_start + i ) * $interval *1000, range(query_finish - query_start +1) ) astimestampsSELECT
arrayJoin(timestamps) as t,
normalized_query_hash,
${metric:raw} as m
FROM merge(system,'^query_log')
WHERE
event_date BETWEEN toDate($__from /1000) - INTERVAL 1 DAY AND toDate($__to /1000) + INTERVAL 1 DAY
AND event_time BETWEEN toDateTime($__from /1000) - INTERVAL 20 MINUTE AND toDateTime($__to /1000) + INTERVAL 20 MINUTE
AND type!=1
$conditionalTest(AND hostName() in ($hostname),$hostname)
$conditionalTest(AND query_kind in ($query_kind),$query_kind)
$conditionalTest(AND exception_code in ($exception_code),$exception_code)
$conditionalTest(AND initial_user in ($user),$user)
AND normalized_query_hash in [$query_hash]
AND t BETWEEN $__from AND $__to
GROUP BY normalized_query_hash, t
ORDER BYcount(t) OVER(PARTITION BY normalized_query_hash) DESC, sum(m) OVER(PARTITION BY normalized_query_hash) DESCLIMIT200 BY t
query is correct, but during serialize into timeSeries looks like we still do it wrong, even after fixes for #644
The text was updated successfully, but these errors were encountered:
Use
http://localhost:3000/d/clickhouse-queries-analysis/clickhouse-queries-analysis?orgId=1&from=now-24h&to=now&timezone=utc&var-datasource=P7E099F39B84EA795&var-hostname=$__all&var-query_kind=$__all&var-user=$__all&var-exception_code=$__all&var-query_hash=$__all&var-metric=count%28%29&editPanel=25
for reproduced example (ask me about query_log.native.gz for data samples)
Look errors
Too many points to visualize properly.
query
query is correct, but during serialize into timeSeries looks like we still do it wrong, even after fixes for #644
The text was updated successfully, but these errors were encountered: