Skip to content

Commit

Permalink
cluster-ui: update tooltips on statements/transaction pages
Browse files Browse the repository at this point in the history
  • Loading branch information
asubiotto authored and koorosh committed May 31, 2021
1 parent ebbd336 commit e379e9d
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 16 deletions.
62 changes: 46 additions & 16 deletions pkg/ui/cluster-ui/src/statementsTable/statementsTableContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ import {
statementsRetries,
statementsSql,
statementsTimeInterval,
transactionalPipelining,
readFromDisk,
planningExecutionTime,
contentionTime,
readsAndWrites,
summarize,
TimestampToMoment,
} from "src/util";
Expand Down Expand Up @@ -87,17 +90,21 @@ export const StatementTableTitle = {
title={
<div className={cx("tooltip__table--title")}>
<p>
{"Aggregation of all rows "}
<Anchor href={readFromDisk} target="_blank">
read from disk
</Anchor>
{
"Average number of rows read while executing statements with this fingerprint within the last hour or specified "
" across all operators for statements with this fingerprint within the last hour or specified "
}
<Anchor href={statementsTimeInterval} target="_blank">
time interval
</Anchor>
.
</p>
<p>
The gray bar indicates the mean number of rows returned. The blue
bar indicates one standard deviation from the mean.
The gray bar indicates the mean number of rows read from disk. The
blue bar indicates one standard deviation from the mean.
</p>
</div>
}
Expand All @@ -111,17 +118,21 @@ export const StatementTableTitle = {
title={
<div className={cx("tooltip__table--title")}>
<p>
{"Aggregation of all bytes "}
<Anchor href={readFromDisk} target="_blank">
read from disk
</Anchor>
{
"Average number of bytes read while executing statements with this fingerprint within the last hour or specified "
" across all operators for statements with this fingerprint within the last hour or specified "
}
<Anchor href={statementsTimeInterval} target="_blank">
time interval
</Anchor>
.
</p>
<p>
The gray bar indicates the mean number of rows returned. The blue
bar indicates one standard deviation from the mean.
The gray bar indicates the mean number of bytes read from disk. The
blue bar indicates one standard deviation from the mean.
</p>
</div>
}
Expand All @@ -135,8 +146,13 @@ export const StatementTableTitle = {
title={
<div className={cx("tooltip__table--title")}>
<p>
Average service latency of statements with this fingerprint within
the last hour or specified time interval.
{"Average "}
<Anchor href={planningExecutionTime} target="_blank">
planning and execution time
</Anchor>
{
" of statements with this fingerprint within the last hour or specified time interval."
}
</p>
<p>
The gray bar indicates the mean latency. The blue bar indicates one
Expand All @@ -154,8 +170,13 @@ export const StatementTableTitle = {
title={
<div className={cx("tooltip__table--title")}>
<p>
Average service latency of transactions with this fingerprint within
the last hour or specified time interval.
{"Average "}
<Anchor href={planningExecutionTime} target="_blank">
planning and execution time
</Anchor>
{
" of transactions with this fingerprint within the last hour or specified time interval."
}
</p>
<p>
The gray bar indicates the mean latency. The blue bar indicates one
Expand All @@ -173,9 +194,11 @@ export const StatementTableTitle = {
title={
<div className={cx("tooltip__table--title")}>
<p>
{
"Average time statements with this fingerprint spent contending on other queries within the last hour or specified "
}
{"Average time statements with this fingerprint were "}
<Anchor href={contentionTime} target="_blank">
in contention
</Anchor>
{" with other transactions within the last hour or specified "}
<Anchor href={statementsTimeInterval} target="_blank">
time interval
</Anchor>
Expand All @@ -198,7 +221,7 @@ export const StatementTableTitle = {
<div className={cx("tooltip__table--title")}>
<p>
{
"Average of the maximum memory used while executing statements with this fingerprint within the last hour or specified "
"Maximum memory used by a statement with this fingerprint at any time during its execution within the last hour or specified "
}
<Anchor href={statementsTimeInterval} target="_blank">
time interval
Expand All @@ -221,14 +244,21 @@ export const StatementTableTitle = {
title={
<div className={cx("tooltip__table--title")}>
<p>
{"Amount of data "}
<Anchor href={readsAndWrites} target="_blank">
data transferred over the network
</Anchor>
{
"Average number of bytes sent over the network while executing statements with this fingerprint within the last hour or specified "
" (e.g., between regions and nodes) for statements with this fingerprint within the last hour or speicifed "
}
<Anchor href={statementsTimeInterval} target="_blank">
time interval
</Anchor>
.
</p>
<p>
If this value is 0, the statement was executed on a single node.
</p>
<p>
The gray bar indicates the mean number of bytes sent over the
network. The blue bar indicates one standard deviation from the
Expand Down
10 changes: 10 additions & 0 deletions pkg/ui/cluster-ui/src/util/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ export const statementsRetries = docsURL(
export const statementsTimeInterval = docsURL(
"admin-ui-statements-page.html#time-interval",
);
export const readFromDisk = docsURL(
"architecture/life-of-a-distributed-transaction.html#reads-from-the-storage-layer",
);
export const planningExecutionTime = docsURL(
"architecture/sql-layer#sql-parser-planner-executor",
);
export const contentionTime = docsURL(
"performance-best-practices-overview#understanding-and-avoiding-transaction-contention",
);
export const readsAndWrites = docsURL("architecture/reads-and-writes-overview");
export const capacityMetrics = docsURL(
"admin-ui-cluster-overview.html#capacity-metrics",
);
Expand Down

0 comments on commit e379e9d

Please sign in to comment.