mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +00:00
16 lines
591 B
XML
16 lines
591 B
XML
|
<clickhouse>
|
||
|
<dashboards>
|
||
|
<dashboard>
|
||
|
<dashboard>Overview</dashboard>
|
||
|
<title>Queries/second</title>
|
||
|
<query>
|
||
|
SELECT toStartOfInterval(event_time, INTERVAL {rounding:UInt32} SECOND)::INT AS t, avg(ProfileEvent_Query)
|
||
|
FROM system.metric_log
|
||
|
WHERE event_date >= toDate(now() - {seconds:UInt32}) AND event_time >= now() - {seconds:UInt32}
|
||
|
GROUP BY t
|
||
|
ORDER BY t WITH FILL STEP {rounding:UInt32}
|
||
|
</query>
|
||
|
</dashboard>
|
||
|
</dashboards>
|
||
|
</clickhouse>
|