Skip to content

Commit 1f91e84

Browse files
authored
fix(web-console): fix incorrect unit normalisation for wal row throughput (#414)
1 parent 938ec19 commit 1f91e84

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/web-console/src/scenes/Editor/Metrics/widgets/walRowThroughput.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ export const walRowThroughput: Widget = {
7676
querySupportsRollingAppend: true,
7777
getQuery: ({ tableId, sampleBySeconds, from, to }) => {
7878
return `
79-
select
80-
created time,
81-
sum(rowCount) numOfRowsApplied,
79+
select created time,
80+
sum(rowCount) numOfRowsApplied
8281
from ${TelemetryTable.WAL}
8382
where ${tableId ? `tableId = ${tableId} and ` : ""}
84-
event = 105
85-
sample by ${sampleBySeconds}s FROM timestamp_floor('${sampleBySeconds}s', '${from}') TO timestamp_floor('${sampleBySeconds}s', '${to}') fill(0)
83+
event = 105
84+
sample by 1s
85+
FROM timestamp_floor('${sampleBySeconds}s', '${from}') TO timestamp_floor('${sampleBySeconds}s', '${to}') fill(0)
8686
`
8787
},
8888
alignData: (data: WalRowThroughput[]): uPlot.AlignedData => [

0 commit comments

Comments
 (0)