Fix order

This commit is contained in:
Antonio Andelic 2024-08-09 13:01:00 +02:00
parent 6360687b30
commit ade1228b95
2 changed files with 8 additions and 6 deletions

View File

@ -1,11 +1,11 @@
INSERT TO S3
Successful write requests 3
S3Clients 1
S3CompleteMultipartUpload 1
S3CreateMultipartUpload 1
S3HeadObject 2
S3ReadRequestsCount 2
S3UploadPart 1
Successful write requests 3
CHECK WITH query_log
QueryFinish S3CreateMultipartUpload 1 S3UploadPart 1 S3CompleteMultipartUpload 1 S3PutObject 0
CREATE

View File

@ -18,11 +18,13 @@ WITH '(\\w+): (\\d+)' AS pattern,
AND line NOT LIKE '%Microseconds%'
AND line NOT LIKE '%S3DiskConnections%'
AND line NOT LIKE '%S3DiskAddresses') AS pe_map
SELECT untuple(arrayJoin(pe_map) AS pe)
WHERE tupleElement(pe, 1) not like '%WriteRequests%'
UNION ALL
SELECT 'Successful write requests',
(pe_map['S3WriteRequestsCount'] - pe_map['S3WriteRequestsErrors'])::UInt64
SELECT * FROM (
SELECT untuple(arrayJoin(pe_map) AS pe)
WHERE tupleElement(pe, 1) not like '%WriteRequests%'
UNION ALL
SELECT 'Successful write requests',
(pe_map['S3WriteRequestsCount'] - pe_map['S3WriteRequestsErrors'])::UInt64
) ORDER BY 1
"
echo "CHECK WITH query_log"