client_query.csv 2.3 KB

1234567891011121314151617181920212223242526272829
  1. ,agg_begin_at,agg_end_at,created_at,cnt,query,avg_rrows,max_rrows,avg_rbytes,max_rbytes,avg_du,max_du,client
  2. 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)
  3. 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'
  4. FORMAT TabSeparatedWithNamesAndTypes",78183,628289,20586184,272456770,6347,66491,
  5. 2,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:41:09.719811,623,"SELECT
  6. (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
  7. FROM otel.otel_traces
  8. WHERE Timestamp >= now() - INTERVAL 5 MINUTE AND (ParentSpanId = '') AND (SpanKind != 'SPAN_KIND_CLIENT')
  9. AND AppAlias = 'UNSET'",79592,700498,2019960,12583540,240,18077,clickhouse-go/2.13.3 (database/sql; lv:go/1.21.4; os:linux)
  10. 3,2024-02-19 15:54:00,2024-02-20 15:53:59.999,2024-02-21 02:41:09.719811,2638,"SELECT
  11. ServiceName,
  12. countIf(Duration <= 1.5 * 1000 * 1000 *1000 ) AS satisfied,
  13. countIf(Duration > 1.5 * 1000 * 1000 * 1000 AND Duration <= 2.5 * 1000 * 1000 * 1000 ) AS tolerable,
  14. countIf(Duration > 2.5 * 1000 * 1000 * 1000 ) AS frustrated,
  15. ROUND((satisfied + tolerable / 2.0 ) / (satisfied + tolerable + frustrated), 4) AS Apdex,
  16. COUNT(DISTINCT TraceId) AS TraceNum,
  17. COUNT() AS SpanNum,
  18. SUM(IF(SpanKind IN ('SPAN_KIND_CLIENT', 'SPAN_KIND_PRODUCER'), 1, 0)) AS SentNum,
  19. SUM(IF(SpanKind IN ('SPAN_KIND_SERVER', 'SPAN_KIND_CONSUMER'), 1, 0)) AS ReceivedNum,
  20. SUM(IF(SpanKind='SPAN_KIND_INTERNAL', 1, 0)) AS InternalNum,
  21. SUM(IF(StatusCode='STATUS_CODE_ERROR', 1, 0)) AS ErrorNum,
  22. any(ResourceAttributes['telemetry.sdk.language']) AS SdkLang
  23. FROM
  24. otel_traces ot
  25. WHERE
  26. Timestamp > 1708310928
  27. AND Timestamp < 1708310988
  28. AND AppAlias = 'UNSET'
  29. GROUP BY ServiceName ORDER BY ServiceName",1252462,1964840,147037663,198107959,283,26253,clickhouse-go/2.13.3 (lv:go/1.21.6; os:linux)