1234567891011121314151617181920212223242526272829 |
- ,agg_begin_at,agg_end_at,created_at,cnt,query,avg_rrows,max_rrows,avg_rbytes,max_rbytes,avg_du,max_du,client
- 0,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:41:09.719811,9000,SELECT count(*) FROM `otel_traces`,115717,1788988,18484581,320843768,178,34691,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.6; os:linux)
- 1,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:41:09.719811,17,"SELECT engine_full FROM system.tables WHERE database = 'system' AND name = 'query_log'
- FORMAT TabSeparatedWithNamesAndTypes",78183,628289,20586184,272456770,6347,66491,
- 2,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:41:09.719811,623,"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'",79592,700498,2019960,12583540,240,18077,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.4; os:linux)
- 3,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:41:09.719811,2638,"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",1252462,1964840,147037663,198107959,283,26253,clickhouse-go/2.13.3 (lv:go/1.21.6; os:linux)
|