,agg_begin_at,agg_end_at,created_at,cnt,query,avg_read_rows,max_read_rows,avg_read_bytes,max_read_bytes,avg_result_rows,max_result_rows,avg_result_bytes,max_result_bytes,avg_du,max_du,client,query_hash 0,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,SELECT * FROM `otel_traces` WHERE TraceId='5a5c3836cc6e39274aa02b09bdba84e9' ORDER BY Timestamp ASC,28033,28033,8820879,8820879,4,4,323959,323959,86,86,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),3854355630085605991 1,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1418,"SELECT AppAlias AS AppAlias,ServiceName AS ServiceName,COUNT()/60 AS Span,COUNT(DISTINCT TraceId)/60 AS Trace,SUM(if(SpanKind='SPAN_KIND_SERVER' AND SpanAttributes['http.status_code']>='200', 1, 0))/60 AS Http,SUM(if(SpanKind='SPAN_KIND_SERVER' AND SpanAttributes['rpc.system']!='', 1, 0))/60 AS Rpc,SUM(if(SpanAttributes['db.type']='' OR SpanAttributes['db.system']!='', 1, 0))/60 AS Db,SUM(if(StatusCode='STATUS_CODE_ERROR' OR SpanAttributes['http.status_code']>='400', 1, 0))/60 AS Error FROM `otel_traces` WHERE Timestamp>=NOW()-INTERVAL 1 HOUR GROUP BY AppAlias, ServiceName",258319,998964,75057041,287155584,17,17,9210,77824,274,4209,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),7771833722604377842 2,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,4654,"SELECT `TraceId`,`Timestamp`,`SpanId`,`SpanName`,`ParentSpanId`,`SpanKind`,`SpanAttributes`,`StatusCode`,`Duration`,`ServiceName`,`AppAlias` FROM `otel_traces` WHERE (Timestamp>=1.708402619e+09 AND Timestamp<=1.708402739e+09) AND TraceId IN ('43c4daa784488d4fd635520681bbaf88','4423f210cc3b65798928d11894eae088','442fdc176d5737ca47b16381ebccf9f9','446b628163e7607d90f5ec231af4d832','449bfc4b13bec3f012d07102cf8af95e','45100e9261d6c619e975cf083d3185e1','461ebd2fc1b6ef72fa053a670600fda2','464831d323ac28eec229ca669a5aef04','4658b220426056052f221bdd4c75739c','467d96bf70fb8b82a59fab29dfab6d10','46accccb8b24442b7031e0b68e0e4bef','4732c3d58c308c68c1370a998653b0e5','487393104d2aeb2cdbc351b3be72edf5','48b5ca26f46d45941b1988e9f2c086ef','48ec6a6c68c230df7fdfbbe303348674','49737aef45225ea8f2874f091bd67b20','49b81d5d0cc97972511892481b58845e','4a368e122c5409ad5c1b0d6c11dd9c4a','4a3a2ae3a7136eab031844016e509c23','4a6901d446e76058232e219b4a038b17','4abc29dff04ba0c00ecd6e487ecb04ef','4b0635abbe7e721250f91154e710ca5f','4b38a9c9bfd21042380f76e865c91e07','4b58305571939c5ee239906b7f473857','4bbb9af5afdc4cd90196785849fe1341','4be6c45ee72d0cceea002965f92bc08c','4c26c8f431ed1ccbf287d7c871280ebb','4e81ec06a8beab42c8633251ccf9c9bd','4e9ea9f1001d3968e458b54d623b7e70','4eb9328b6a5426427828dd1c65d1b300','4ee097aa7ba117eefd9c6856ccc9abbd','4f02916780a92741a32fbadf3fad1498','4f5b8e8425a0630f7c7b80dd1db702ef','5084d614d3a019844513f6969ef46235','508cc661f7110f149e8c5a639c1e9ee9','53432524ee382c194dcb84bd157f1e71','5376c6e0d3d4dd6b0adb73eb37684074','549adb458a474c04a7deef91b841dd4d','560ae498f0e1456783550d072b159f96','56afd91b226a8d61fe66c8f04056b1a1','59c7d8915dd3ffd184146b0f4b47bbc3','5a299455135cd41a418775491a3b31ef','5b11bf99528f4b609e47f0134f0d2db9','5b19f1910602b72db224848b7e761df3','5b372a37f5dccc57e74ef837e1bee8af','5b9cf47512878254bd63a2c475c11df8','5bd15fc1e52c7c1eb4e41c927ed5f214','5ca90b2a3feeb2548588bd9f67ce2b93','5ccbb7706eca0ffc76e82baf890f26f3','5d8c6a5b1e958bae30cb01f6ef1742d5','5ef62548f80ebb61254af7c2d3367fe1','5f3b0e0b3ced883cc7557800abc18fc2','5feba92a27bc20c30f3da8fb818c211d','60ef1b686d6ef29eefff4ce5b82e07ce','61b8b97a5da0a6ed705bd2b069f550a4','61e50f482d3c97fc9aa2e3212e94142c','61edd11abe41bb48890abfd3ad9937aa','63312632da81bf057a009405ab9c4bb6','6418d4740c8d1a58c3d00d2c12f9741f','648efb386ae925aab32c927e886b8eb7','65443becbdfd42bceaf8df790cf05c96','6711cb3433634b1d7399a6986bef6590','682ffb475a18a8801536f1258bf21a2c','68d72b5925f429c754a5665dd545bde4','68efeb0af618bcae9a369042bc914c98','6911482d5052cdca88e62a6a3e7cfd98','692dda8976042cf09157e981f39f2402','69e8ec7b193296431eb66868fdbf9943','6a0a53630b1ab6dcc013a8674737fea5','6a8f8f243ff4ed066e880236d8b85ae8','6aedc5eebe0f3a93f452ec8856a245ee','6b0ea6b07ff31b7983ed235e5a191009','6bea5b99479657558eb1a9598dfacb21','6c7fa5191e730c8dbbf05016723e6e55','6cbbcf4a4bc0efad6426a9ded703e399','6cc0536061eb876381bf8370d1a2d4e5','6ccf65a69cb0970d9ee7688045d1eaf8','6cff9868a4eead5da7bdf28aff87b9e3','6d15b85514ba084f7d211f1637f1e76b','6d3dd2c9a1ca6d825936b577e0655ded','6d52c4ae48ba60d923014118c8ad53b5','6d59f09a394550122066b37084df8a11','6d77a554a64e3a2c737eab5762bbb032','6d9b863c1aaf7282e34212994bdbefdb','6f34a2e74fdb2d35ddce4ea7e590746e','6f423118a0bd39ce6badf7b34e115601','6f785fa97698bc9df37a39e3afc48d24','6ff06f3d9a78d7063543ade5220bdc8e','706ae896b70881d8fe1c03edfafca92c','70d3bafa6a5e843c2f41228bc862b824','712c4cba211fcddee1d58451c240ffe6','714ac8671bfb0f1f9d671f06b463c7ff','7172c01dbb5026fada2a80319b060cef','72fe162c0c3097dbcc595c6802d0e49b','73022a784a60e963d6f6ae5b66a5377f','73aac9110714af151ef5d7b1dfdb9485','7451c47d99e6d6d0942c29167a7c45cc','7475fc6b8bc0ada897a1b5cbb6f8a2ee','74bc44585781177a814244780672a7a3','74ea17053edc72cad56acc4f610ca7ba') ORDER BY TraceId ASC, Timestamp ASC",134022,363781,22527805,71318562,158,600,118428,318848,203,5330,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),8972384518582696824 3,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,3799,SELECT * FROM `otel_traces` WHERE Timestamp>=NOW()-INTERVAL 1 HOUR AND (SpanKind='SPAN_KIND_CLIENT' AND (SpanAttributes['db.system'] != '' OR SpanAttributes['db.type'] != '')) AND `ServiceName` = 'emailservice' AND `AppAlias` = 'UNSET' LIMIT 100,22274,62849,8715216,51574163,23,100,167890,2830922,99,4058,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),12836525587991427614 4,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1129,"SELECT ServiceName, countIf(Duration <= 1.5 * 1000 * 1000 *1000 ) AS satisfied, countIf(Duration > 1.5 * 1000 * 1000 * 1000 AND Duration <= 2.5 * 1000 * 1000 * 1000 ) AS tolerable, countIf(Duration > 2.5 * 1000 * 1000 * 1000 ) AS frustrated, ROUND((satisfied + tolerable / 2.0 ) / (satisfied + tolerable + frustrated), 4) AS Apdex, COUNT(DISTINCT TraceId) AS TraceNum, COUNT() AS SpanNum, SUM(IF(SpanKind IN ('SPAN_KIND_CLIENT', 'SPAN_KIND_PRODUCER'), 1, 0)) AS SentNum, SUM(IF(SpanKind IN ('SPAN_KIND_SERVER', 'SPAN_KIND_CONSUMER'), 1, 0)) AS ReceivedNum, SUM(IF(SpanKind='SPAN_KIND_INTERNAL', 1, 0)) AS InternalNum, SUM(IF(StatusCode='STATUS_CODE_ERROR', 1, 0)) AS ErrorNum, any(ResourceAttributes['telemetry.sdk.language']) AS SdkLang FROM otel_traces ot WHERE Timestamp > 1708310928 AND Timestamp < 1708310988 AND AppAlias = 'UNSET' GROUP BY ServiceName ORDER BY ServiceName",812532,988635,194439237,198241967,15,15,5958,5958,264,3346,clickhouse-go/2.13.3 (lv:go/1.21.6; os:linux),15635364494949618389 5,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,713,"SELECT ot1.ServiceName AS TargetService,ot2.ServiceName AS SourceService,any(ot1.AppAlias) AS TargetAlias,any(ot2.AppAlias) AS SourceAlias,any(ot1.SdkLang) AS TargetIcon,any(ot2.SdkLang) AS SourceIcon FROM (SELECT SpanId, ParentSpanId, ServiceName, AppAlias, ResourceAttributes['telemetry.sdk.language'] SdkLang FROM `otel_traces` WHERE Timestamp>=1708400818 AND Timestamp<1708401118) AS ot1 INNER JOIN (SELECT SpanId, ServiceName, AppAlias, ResourceAttributes['telemetry.sdk.language'] SdkLang FROM `otel_traces` WHERE Timestamp>=1708400818 AND Timestamp<1708401118) AS ot2 ON ot2.SpanId = ot1.ParentSpanId WHERE TargetService != SourceService GROUP BY TargetService, SourceService",990815,1788253,92343969,322287097,17,18,9488,137984,302,5751,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),207122110268484903 6,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,3,"SELECT AppAlias as app_alias, countIf(Duration <= 1500 * 1000 *1000 ) AS satisfied, countIf(Duration > 1500 * 1000 * 1000 AND Duration <= 2500 * 1000 * 1000 ) AS tolerable, countIf(Duration > 2500 * 1000 * 1000 ) AS frustrated, (satisfied + tolerable / 2.0 ) / (satisfied + tolerable + frustrated) AS apdex, count(*) as totalRequests, (totalRequests / 5) as rate, countIf(HttpCode >= 400) / totalRequests as errorRate, (sum(Duration) / totalRequests / (1000 * 1000)) as latency FROM otel.otel_traces WHERE Timestamp >= now() - INTERVAL 5 MINUTE AND (ParentSpanId = '') AND AppAlias IN ('UNSET',) GROUP BY AppAlias; ",61897,70215,1646203,2573254,0,1,1706,2560,48,51,clickhouse-go/2.13.3 (lv:go/1.21.6; os:linux),537109574256570149 7,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,"SELECT min(Timestamp) as timestamp, TraceId as `Trace Id`, argMin(ServiceName, Timestamp) as `Service Name`, sum(Duration)/1000000 as Duration from otel.otel_traces WHERE 1=1 AND ServiceName In ('adservice','cartservice','checkoutservice','currencyservice','emailservice','featureflagservice','frauddetectionservice','frontend','frontend-proxy','loadgenerator','observe-server','paymentservice','productcatalogservice','quoteservice','recommendationservice','shippingservice','kafka') AND ServiceName != 'loadgenerator' AND Timestamp >= toDateTime64(1708410990374/1000, 3) AND Timestamp <= toDateTime64(1708414590374/1000, 3) GROUP BY TraceId ORDER BY Duration DESC LIMIT 100",408548,408548,23695784,23695784,100,100,22528,22528,282,282,grafana/0.0.0 clickhouse-datasource/4.0.2 clickhouse-go/2.17.1 (lv:go/1.21.6; os:linux),660898169789191040 8,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,2,SELECT count(*) FROM `otel_traces_url` WHERE `AppId` = 1 AND `Kind` = '/' AND Timestamp>=1708412611 AND Timestamp<1708412671 ,3010348,3017656,125449898,125756002,1,1,256,256,62,66,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),1616195295518448738 9,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,2,SELECT count(*) FROM `otel_traces` WHERE `AppAlias` = 'UNSET' AND `ServiceName` = 'loadgenerator' AND `SpanName` = 'GET' AND (Timestamp>=1708412611 AND Timestamp<1708412671) ,56654,59188,1198919,1255903,1,1,256,256,30,30,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),1910718794383455295 10,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,SELECT count(*) FROM `otel_traces` WHERE `AppAlias` = 'UNSET' AND (Timestamp>=1708395443 AND Timestamp<1708399043) AND `ServiceName` = 'featureflagservice' AND `SpanKind` = 'SPAN_KIND_SERVER' AND `SpanName` = '/featureflags' ,29127,29127,705378,705378,1,1,256,256,65,65,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.4; os:linux),2044705381946061517 11,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,"SELECT ServiceName, Route, Method, any(Name) Name, SUM(IF(StatusCode>=400, 1, 0))/COUNT() ErrorRate, AVG(Duration)/1e6 Duration FROM `otel_traces_url` WHERE `AppId` = '21' AND (Timestamp>=1708412477 AND Timestamp<1708412537) GROUP BY ServiceName, Route, Method ORDER BY Duration DESC LIMIT 5",250017,250017,4009648,4009648,5,5,6832,6832,7680,7680,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),2172203359301912085 12,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1407,SELECT * FROM `otel_traces` WHERE Timestamp>=NOW()-INTERVAL 1 HOUR AND ParentSpanId='' AND SpanKind='SPAN_KIND_SERVER' AND `ServiceName` = 'checkoutservice' AND `AppAlias` = 'UNSET' LIMIT 100,33452,73902,995292,2470546,0,0,0,0,91,3017,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),2421164263102374443 13,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,2,SELECT * FROM `otel_traces_url` WHERE `AppId` = 1 AND `Kind` = '/' AND Timestamp>=1708412611 AND Timestamp<1708412671 ORDER BY Duration DESC LIMIT 10,3010348,3017656,126537803,127386020,7,10,55047,91136,85,92,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),3541873512630155238 14,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,710,SELECT count(*) FROM `otel_logs`,2,2,32,32,1,1,256,256,23,2562,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),4057530325049123403 15,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,"SELECT toStartOfInterval(toDateTime(Timestamp), INTERVAL 60 second) as time, count(*) as ` `, ServiceName FROM otel.""otel_traces"" WHERE 1=1 AND Timestamp >= toDateTime64(1708410985775/1000, 3) AND Timestamp <= toDateTime64(1708414585775/1000, 3) AND ServiceName In ('adservice','cartservice','checkoutservice','currencyservice','emailservice','featureflagservice','frauddetectionservice','frontend','frontend-proxy','loadgenerator','observe-server','paymentservice','productcatalogservice','quoteservice','recommendationservice','shippingservice','kafka') AND StatusCode= 'STATUS_CODE_ERROR' and ServiceName != 'loadgenerator' GROUP BY ServiceName, time ORDER BY time ASC LIMIT 100000",407470,407470,757090,757090,6,6,3021,3021,60,60,grafana/0.0.0 clickhouse-datasource/4.0.2 clickhouse-go/2.17.1 (lv:go/1.21.6; os:linux),4766372956783424509 16,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,"SELECT Timestamp as Datetime, TraceId,SpanId,ServiceName,IF(SpanAttributes['http.method'] != '', SpanAttributes['http.method'], IF(SpanAttributes['rpc.system'] != '', SpanAttributes['rpc.system'], IF(SpanAttributes['db.system'] != '', SpanAttributes['db.system'], SpanAttributes['messaging.system'] ) ) ) AS Method, IF(SpanAttributes['http.status_code']>='200', SpanAttributes['http.status_code'], IF(SpanAttributes[concat('rpc.', SpanAttributes['rpc.system'], '.status_code')] != '', SpanAttributes[concat('rpc.', SpanAttributes['rpc.system'], '.status_code')], IF(SpanAttributes[concat('rpc.', SpanAttributes['rpc.system'], '.error_code')] != '', SpanAttributes[concat('rpc.', SpanAttributes['rpc.system'], '.error_code')], IF(SpanAttributes['messaging.operation']!='', SpanAttributes['messaging.operation'], IF(SpanAttributes['db.operation'] != '',SpanAttributes['db.operation'], SpanName) ) ) ) ) AS Code, Duration FROM `otel_traces` WHERE `AppAlias` = 'UNSET' AND (Timestamp>=1708414162 AND Timestamp<1708414462) AND `ServiceName` = 'accountingservice' ORDER BY Duration DESC LIMIT 10",0,0,0,0,0,0,0,0,1562,1562,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),5202690673503407374 17,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,"SELECT Timestamp as Datetime, TraceId,SpanId,ServiceName,IF(SpanAttributes['http.method'] != '', SpanAttributes['http.method'], IF(SpanAttributes['rpc.system'] != '', SpanAttributes['rpc.system'], IF(SpanAttributes['db.system'] != '', SpanAttributes['db.system'], SpanAttributes['messaging.system'] ) ) ) AS Method, IF(SpanAttributes['http.status_code']>='200', SpanAttributes['http.status_code'], IF(SpanAttributes[concat('rpc.', SpanAttributes['rpc.system'], '.status_code')] != '', SpanAttributes[concat('rpc.', SpanAttributes['rpc.system'], '.status_code')], IF(SpanAttributes[concat('rpc.', SpanAttributes['rpc.system'], '.error_code')] != '', SpanAttributes[concat('rpc.', SpanAttributes['rpc.system'], '.error_code')], IF(SpanAttributes['messaging.operation']!='', SpanAttributes['messaging.operation'], IF(SpanAttributes['db.operation'] != '',SpanAttributes['db.operation'], SpanName) ) ) ) ) AS Code, Duration FROM `otel_traces` WHERE `AppAlias` = 'UNSET' AND (Timestamp>=1708395443 AND Timestamp<1708399043) AND `ServiceName` = 'featureflagservice' AND `SpanKind` = 'SPAN_KIND_SERVER' AND `SpanName` = '/featureflags' ORDER BY Duration DESC LIMIT 10",29267,29267,6544016,6544016,10,10,32784,32784,64,64,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.4; os:linux),5370412166617214239 18,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,3,"WITH durations AS ( SELECT quantile(0.95)(Duration) AS Duration_90th_percentile FROM otel_traces WHERE toTimeZone(Timestamp,'Asia/Hong_Kong') >= '2024-02-20 10:04:03' and toTimeZone(Timestamp,'Asia/Hong_Kong') < '2024-02-20 10:09:03' and AppAlias = 'UNSET' ) Select toTimeZone(Timestamp,'Asia/Hong_Kong') as ts, round(Duration/1e6, 2) AS Dms, HttpCode FROM otel_traces WHERE toTimeZone(Timestamp,'Asia/Hong_Kong') >= '2024-02-20 10:04:03' and toTimeZone(Timestamp,'Asia/Hong_Kong') < '2024-02-20 10:09:03' and AppAlias = 'UNSET' AND (ParentSpanId = '') and Duration >= (SELECT Duration_90th_percentile FROM durations) ORDER BY Timestamp ASC;",63530,67397,2507704,2803861,46,53,7168,13824,76,80,clickhouse-go/2.13.3 (lv:go/1.21.6; os:linux),5467373888507425095 19,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,4,"select timezone(), version() FORMAT TabSeparatedWithNamesAndTypes",1,1,1,1,1,1,1024,1024,1,2,,5696513776411558469 20,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,"SELECT Attributes['url.kind'] AS Kind, StartTimeUnix, TimeUnix, Count, Sum, BucketCounts, ExplicitBounds, Min, Max FROM `otel_metrics_histogram` WHERE Attributes['app.id']='1' AND Kind IN ('/api/cart') AND (TimeUnix>=1708391508 AND TimeUnix<1708395108) ORDER BY Kind ASC, TimeUnix ASC",17472,17472,8121210,8121210,180,180,104448,104448,48,48,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),5803576888686877356 21,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,2,"SELECT TraceId, SpanId, SpanName, ServiceName, SpanAttributes['db.statement'] as Statement, Duration/1e6 Duration FROM `otel_traces` WHERE `AppAlias` = 'PEIQ' AND (Timestamp>=1708412121 AND Timestamp<1708412181) AND SpanKind='SPAN_KIND_CLIENT' AND (SpanAttributes['db.system']!='' OR SpanAttributes['db.type']!='') ORDER BY Duration DESC LIMIT 5",381173,384328,9619515,13856434,2,5,4240,8480,49,56,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),5855850399963470407 22,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,2,SELECT version(),1,1,1,1,1,1,4360,4360,1,2,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.4; os:linux),5922091807274835076 23,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,"select table, name, type, comment, default_kind, default_expression from system.columns where name not like '.inner.%' and name not like '.inner\\_id.%' and database = 'flow_metrics' ",1382,1382,206982,206982,1382,1382,253952,253952,11,11,,6202641399854493169 24,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1," SELECT ServiceName, countIf(Duration <= 1.0 * 1000 * 1000 *1000 ) AS satisfied, countIf(Duration > 1.0 * 1000 * 1000 * 1000 AND Duration <= 2.0 * 1000 * 1000 * 1000 ) AS tolerable, countIf(Duration > 2.0 * 1000 * 1000 * 1000 ) AS frustrated, ROUND((satisfied + tolerable / 2.0 ) / (satisfied + tolerable + frustrated), 4) AS Apdex, COUNT(DISTINCT TraceId) AS TraceNum, COUNT() AS SpanNum, SUM(IF(SpanKind IN ('SPAN_KIND_CLIENT', 'SPAN_KIND_PRODUCER'), 1, 0)) AS SentNum, SUM(IF(SpanKind IN ('SPAN_KIND_SERVER', 'SPAN_KIND_CONSUMER'), 1, 0)) AS ReceivedNum, SUM(IF(SpanKind='SPAN_KIND_INTERNAL', 1, 0)) AS InternalNum, SUM(IF(StatusCode='STATUS_CODE_ERROR', 1, 0)) AS ErrorNum, any(ResourceAttributes['telemetry.sdk.language']) AS SdkLang FROM otel.otel_traces ot WHERE Timestamp > 1708412121 AND Timestamp < 1708412181 AND AppAlias = 'PEIQ' GROUP BY ServiceName",384328,384328,5539396,5539396,0,0,0,0,56,56,clickhouse-go/2.13.3 (lv:go/1.21.6; os:linux),7210543882401431863 25,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,307,"SELECT (countIf(Duration <= 1500 * 1000 *1000 ) + countIf(Duration > 1500 * 1000 * 1000 AND Duration <= 2500 * 1000 * 1000 ) / 2.0 ) / (countIf(Duration <= 1500 * 1000 *1000 ) + countIf(Duration > 1500 * 1000 * 1000 AND Duration <= 2500 * 1000 * 1000 ) + countIf(Duration > 2500 * 1000 * 1000 )) AS apdex FROM otel.otel_traces WHERE Timestamp >= now() - INTERVAL 5 MINUTE AND (ParentSpanId = '') AND (SpanKind != 'SPAN_KIND_CLIENT') AND AppAlias = 'UNSET'",61481,230489,1937137,6987515,1,1,256,256,100,2367,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.4; os:linux),8073837936049925886 26,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,"SELECT t.* FROM otel.otel_traces t LIMIT 501",1503,1503,2495867,2495867,501,501,1404917,1404917,1882,1882,,9497896159580665449 27,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,2,"select currentUser() user, timezone() timezone, version() version, toUInt8(ifnull((select value from system.settings where name = 'readonly'), '0')) as readonly, toInt8(ifnull((select value from system.settings where name = 'throw_on_unsupported_query_inside_transaction'), '-1')) as throw_on_unsupported_query_inside_transaction, (ifnull((select value from system.settings where name = 'wait_changes_become_visible_after_commit_mode'), '')) as wait_changes_become_visible_after_commit_mode,toInt8(ifnull((select value from system.settings where name = 'implicit_transaction'), '-1')) as implicit_transaction, toUInt64(ifnull((select value from system.settings where name = 'max_insert_block_size'), '0')) as max_insert_block_size, toInt8(ifnull((select value from system.settings where name = 'allow_experimental_lightweight_delete'), '-1')) as allow_experimental_lightweight_delete, (ifnull((select value from system.settings where name = 'custom_jdbc_config'), '')) as custom_jdbc_config FORMAT RowBinaryWithNamesAndTypes",6581,6581,1435246,1435246,1,1,3080,3080,22,29,,10899049381727504902 28,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,192,"SELECT name,path,free_space,total_space,keep_free_space FROM system.disks",2,2,231,231,2,2,20992,20992,2,5,Golang SQLDriver,11488870529008170110 29,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,2,"SELECT Timestamp, TraceId, SpanId, Duration FROM `otel_traces` WHERE `AppAlias` = 'UNSET' AND `ServiceName` = 'loadgenerator' AND `SpanName` = 'GET' AND (Timestamp>=1708412611 AND Timestamp<1708412671) ORDER BY Duration DESC LIMIT 10",56780,59188,1697831,1751851,10,10,2048,2048,34,36,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),11671130650461453038 30,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,"SELECT `Kind`,COUNT() AS Total,SUM(IF(StatusCode>=400, 1, 0)) AS ErrorNum,round(MAX(Duration)/1e6, 2) AS Max,round(MIN(Duration)/1e6, 2) AS Min,round(AVG(Duration)/1e6, 2) AS Avg FROM `otel_traces_url` WHERE `AppId` = '1' AND Kind IN ('/api/cart') AND (Timestamp>=1708391508 AND Timestamp<1708395108) GROUP BY `Kind`",3003410,3003410,125447036,125447036,1,1,1792,1792,89,89,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),11741439574595357158 31,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,"SELECT t.* FROM flow_log.l4_flow_log t LIMIT 501",1002,1002,467034,467034,501,501,655232,655232,55924,55924,,12074722682618350161 32,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,704,"SELECT TraceId,dbStatement,Duration FROM otel.otel_traces WHERE dbStatement != 'UNSET' AND Duration > 10 * 10e9 AND Timestamp >= now() - INTERVAL 5 MINUTE AND AppAlias = 'UNSET'",118865,692593,2442781,12297096,0,0,0,0,98,2146,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.4; os:linux),12573331972479709864 33,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,"SELECT t.* FROM otel.otel_traces t WHERE SpanKind = 'SPAN_KIND_CLIENT' LIMIT 501",74714,74714,78902765,78902765,501,501,1790413,1790413,101782,101782,,15314212040106028967 34,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,"SELECT Attributes['url.kind'] AS Kind, StartTimeUnix, TimeUnix, Count, Sum, BucketCounts, ExplicitBounds, Min, Max FROM `otel_metrics_histogram` WHERE Attributes['app.id']='1' AND Kind IN ('/','/api/cart','/api/data','/api/data','/api/products/ ','/api/products/0PUK6V6EV0','/api/products/1YMWWN1N4O','/api/products/1YMWWN1N4O','/api/products/2ZYFJ3GM2N','/api/products/66VCHSJNUP') AND (TimeUnix>=1708411121 AND TimeUnix<1708414721) ORDER BY Kind ASC, TimeUnix ASC",49200,49200,12571696,12571696,957,957,368640,368640,575,575,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),15355874386910781775 35,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,709,SELECT count(*) FROM `otel_traces`,2,2,32,32,1,1,256,256,75,2019,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),15481520809410880437 36,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,13,"SELECT quantile(0.5)(Duration) / 1e6 AS Duration, SUM(IF(StatusCode!='STATUS_CODE_ERROR', 1, 0))/COUNT() AS SuccessRate FROM `otel_traces` WHERE (Timestamp>=1708407791 AND Timestamp<1708411391) AND `AppAlias` = 'UNSET' AND `ServiceName` = 'frontend-proxy' AND `SpanName` = 'ingress' AND `SpanKind` = 'SPAN_KIND_SERVER' GROUP BY ServiceName, SpanName, SpanKind",47086,80768,1299254,2315714,1,1,512,512,44,49,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux),16291372343845683543 37,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,3,"SELECT engine_full FROM system.tables WHERE database = 'system' AND name = 'query_log' FORMAT TabSeparatedWithNamesAndTypes",1,1,177,177,1,1,768,768,3,4,,16593134659801733547 38,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,"SELECT `type`, `event_time`, `exception_code`, `exception` FROM `system`.`query_log` WHERE ((`event_time` > '2024-02-18 16:00:00' AND `event_time` < '2024-02-19 15:59:59') AND (`type` = 'ExceptionBeforeStart' OR `type` = 'ExceptionWhileProcessing')) FORMAT TabSeparatedWithNamesAndTypes",659944,659944,3348848,3348848,256,256,89856,89856,19,19,,16632794828742963957 39,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,"SELECT `type`, `event_time`, `query_duration_ms`, `written_rows`, `written_bytes`, `query`, `normalized_query_hash`, `query_kind`, `is_initial_query`, `client_name` FROM `system`.`query_log` WHERE (`event_time` > '2024-02-18 16:00:00' AND `event_time` < '2024-02-19 15:59:59') AND `query_kind` = 'Insert' AND `type` = 'QueryFinish' FORMAT TabSeparatedWithNamesAndTypes",659944,659944,352715876,352715876,218241,218241,182373632,182373632,1662,1662,,17067525512617451977 40,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1128,"WITH 1708310928 AS StartTime, 1708310988 AS EndTime, 60 AS seconds, 'UNSET' AS appAlias, SpanAttributes['http.url'] != '' AS isHttp, SpanAttributes['rpc.system'] != '' AS isRpc, SpanAttributes['rpc.system'] AS rpcSystem, SpanAttributes['db.system'] != '' AS isDb, SpanAttributes['db.system'] AS dbSystem, SpanAttributes['messaging.system'] AS messagingSystem SELECT ot2.ServiceName AS SourceService, ot1.ServiceName AS TargetService, ot2.RequestType AS RequestType, COUNT()/seconds AS Qps, SUM(IF(StatusCode == 'STATUS_CODE_ERROR', 1, 0)) AS ErrorNum, SUM(IF(StatusCode == 'STATUS_CODE_ERROR', 1, 0))/COUNT() AS ErrorRate, AVG(Duration)/1e6 AS DurationAverage, quantile(0.5)(Duration)/1e6 AS DurationMedian, quantile(0.9)(Duration)/1e6 AS DurationP90, quantile(0.99)(Duration)/1e6 AS DurationP99 FROM ( SELECT TraceId, SpanId, ParentSpanId, ServiceName, Duration, StatusCode, AppAlias FROM otel.otel_traces WHERE AppAlias=appAlias AND Timestamp > StartTime AND Timestamp < EndTime ) AS ot1 INNER JOIN ( SELECT SpanId, ServiceName, IF(isHttp, 'http', IF(isRpc, rpcSystem , IF(isDb, dbSystem, messagingSystem))) as RequestType FROM otel.otel_traces WHERE AppAlias=appAlias and Timestamp > StartTime AND Timestamp < EndTime ) AS ot2 ON ot2.SpanId = ot1.ParentSpanId WHERE SourceService != TargetService GROUP BY SourceService, TargetService, RequestType",1624902,1977178,98872144,106555953,13,13,8168,8168,259,4176,clickhouse-go/2.13.3 (lv:go/1.21.6; os:linux),17364615415972800614 41,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:39:42.062006,1,select name from system.databases order by name != currentDatabase(),16,16,292,292,16,16,768,768,1,1,,17381256519141673353