Skip to content

Commit 0abe235

Browse files
janeklbbossinc
andauthored
improvements to query overview panel in query analysis dashboard (#1545)
Co-authored-by: Andrew Hackmann <[email protected]>
1 parent fd9b24e commit 0abe235

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/dashboards/query-analysis.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,12 +1081,16 @@
10811081
{
10821082
"matcher": {
10831083
"id": "byName",
1084-
"options": "memory usage"
1084+
"options": "memory_usage"
10851085
},
10861086
"properties": [
10871087
{
10881088
"id": "custom.width",
10891089
"value": 119
1090+
},
1091+
{
1092+
"id": "unit",
1093+
"value": "bytes"
10901094
}
10911095
]
10921096
},
@@ -1246,7 +1250,7 @@
12461250
},
12471251
{
12481252
"id": "unit",
1249-
"value": "dtdurationms"
1253+
"value": "ms"
12501254
}
12511255
]
12521256
},
@@ -1378,7 +1382,7 @@
13781382
}
13791383
},
13801384
"queryType": "sql",
1381-
"rawSql": "SELECT query_start_time, type, query_duration_ms, initial_user, substring(query_id,1, 8) as query_id, query_kind, normalizeQuery(query) AS normalized_query, concat( toString(read_rows), ' rows / ', formatReadableSize(read_bytes) ) AS read, concat( toString(written_rows), ' rows / ', formatReadableSize(written_bytes) ) AS written, concat( toString(result_rows), ' rows / ', formatReadableSize(result_bytes) ) AS result, formatReadableSize(memory_usage) AS \"memory usage\" FROM system.query_log WHERE type in ($type) AND initial_user IN ($user) AND query_kind IN ($query_kind) AND $__timeFilter(event_time) ORDER BY query_duration_ms DESC LIMIT 1000",
1385+
"rawSql": "SELECT query_start_time, type, query_duration_ms, initial_user, substring(query_id,1, 8) as query_id, query_kind, normalizeQuery(query) AS normalized_query, concat( toString(read_rows), ' rows / ', formatReadableSize(read_bytes) ) AS read, concat( toString(written_rows), ' rows / ', formatReadableSize(written_bytes) ) AS written, concat( toString(result_rows), ' rows / ', formatReadableSize(result_bytes) ) AS result, memory_usage FROM system.query_log WHERE type in ($type) AND initial_user IN ($user) AND query_kind IN ($query_kind) AND $__timeFilter(event_time) ORDER BY query_duration_ms DESC LIMIT 1000",
13821386
"refId": "A"
13831387
}
13841388
],
@@ -1390,7 +1394,7 @@
13901394
"excludeByName": {},
13911395
"indexByName": {
13921396
"initial_user": 5,
1393-
"memory usage": 2,
1397+
"memory_usage": 2,
13941398
"normalized_query": 7,
13951399
"query_duration_ms": 4,
13961400
"query_id": 0,
@@ -1408,7 +1412,7 @@
14081412
"databases": "Databases",
14091413
"exception": "Exception",
14101414
"initial_user": "User",
1411-
"memory usage": "Memory usage",
1415+
"memory_usage": "Memory usage",
14121416
"normalized_query": "Normalized query",
14131417
"query_duration_ms": "Duration",
14141418
"query_id": "Query id",

0 commit comments

Comments
 (0)