diff --git a/app/[host]/overview/overview-charts.tsx b/app/[host]/overview/overview-charts.tsx index e627b8b4..b1f3838e 100644 --- a/app/[host]/overview/overview-charts.tsx +++ b/app/[host]/overview/overview-charts.tsx @@ -8,7 +8,7 @@ export async function OverviewCharts({ className }: { className?: string }) { return (
({ + const { data } = await fetchData({ query: queryConfig.sql, format: 'JSONEachRow', query_params: queryParams, clickhouse_settings: { + use_query_cache: 0, ...queryConfig.clickhouseSettings, }, }) @@ -68,6 +69,7 @@ export async function QueryDetail({ views, exception_code, exception, + interface_query_initial_from, stack_trace, http_method, http_user_agent, @@ -137,12 +139,12 @@ export async function QueryDetail({
{( [ - ['Host name', hostname], + ['Hostname of the server executing the query', hostname], ['Client host name', client_hostname], ['Client name', client_name], ['Client revision', client_revision], [ - 'Initial user', + 'Initial user (for distributed query execution)', initial_user ? ( , ], - ['Initial address', initial_address], - ['Initial port', initial_port], - ['Initial query start time', initial_query_start_time], + [ + 'initial_address (IP address that the parent query was launched from)', + initial_address, + ], + [ + 'initial_port (The client port that was used to make the parent query)', + initial_port, + ], + [ + 'Initial query starting time (for distributed query execution)', + initial_query_start_time, + ], ['Databases', bindingDatabaseLink(databases)], ['Tables', bindingTableLink(tables)], ['Columns', JSON.stringify(columns, null, 2)], @@ -183,7 +194,11 @@ export async function QueryDetail({ ['Exception code', exception_code], ['Exception', exception], ['Stack trace', stack_trace], - ['HTTP method', http_method], + [ + 'Interface that the query was initiated from (1 — TCP, 2 — HTTP)', + interface_query_initial_from, + ], + ['HTTP method (0 = TCP, 1 = GET, 2 = POST)', http_method], ['HTTP user agent', http_user_agent], ['HTTP referer', http_referer], ['Forwarded for', forwarded_for], diff --git a/components/overview-charts/clickhouse-info.tsx b/components/overview-charts/clickhouse-info.tsx index 760481ec..079fa441 100644 --- a/components/overview-charts/clickhouse-info.tsx +++ b/components/overview-charts/clickhouse-info.tsx @@ -128,7 +128,8 @@ async function InfoLine({ className )} > -
{data[0].val}
+
{data[0].val}
+
{label}
) diff --git a/components/overview-charts/database-table-count.tsx b/components/overview-charts/database-table-count.tsx index 90b708b6..52e29c7c 100644 --- a/components/overview-charts/database-table-count.tsx +++ b/components/overview-charts/database-table-count.tsx @@ -49,6 +49,13 @@ export async function DatabaseTableCount({ )} > + + Tables Overview → + + {metrics.map((metric) => ( - +
{data[0].count}
-
- {icon} {label} → -
- - - - - } - contentClassName="max-w-screen-lg" - /> +
+ + + + + } + contentClassName="max-w-screen-lg" + /> + + +
+ {icon} {label} → +
+ +
) } diff --git a/components/overview-charts/running-queries.tsx b/components/overview-charts/running-queries.tsx index 544876e0..27a1b74a 100644 --- a/components/overview-charts/running-queries.tsx +++ b/components/overview-charts/running-queries.tsx @@ -28,7 +28,7 @@ export async function RunningQueries({ className }: { className?: string }) {
{data[0].count}
running queries → @@ -63,7 +63,7 @@ export async function RunningQueries({ className }: { className?: string }) { showLegend={false} chartConfig={{ query_count: { - color: 'hsl(var(--chart-5))', + color: 'hsl(var(--chart-12))', }, }} />