mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 20:24:07 +00:00
870ec237bb
One of the obvious reasons is to allow rendering them with readonly user, which is not possible right now, due to usage of merge() function there. Another one, is to add some custom metrics. Note, that once set, they overrides the default dashboards preset. Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
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>
|