SELECT DISTINCT (parent.source, child.destination, child.app), sum(child.latency) AS edgeLatency, sum(child.throughput) AS edgeThroughput FROM ( SELECT traceId, spanId, parentId, service AS source, tags.value[indexOf(tags.key, 'app')] AS app FROM opsramp.`spans_distributed_981d0565-211a-06c5-410e-f20051c37c32` WHERE (tenantId = '4c90de4a-b39e-4509-8123-c14d01a47bcb') AND (startTime >= '1711909800000000000') AND (startTime <= '1712082600000000000') ) AS parent INNER JOIN ( SELECT traceId, spanId, parentId, service AS destination, SUM(durationUs) AS latency, tags.value[indexOf(tags.key, 'app')] AS app, count(durationUs) / 1800 AS throughput, sum(if(error = true, 1, 0)) / count(durationUs) AS errorRate FROM opsramp.`spans_distributed_981d0565-211a-06c5-410e-f20051c37c32` WHERE (tenantId = '4c90de4a-b39e-4509-8123-c14d01a47bcb') AND (startTime >= '1711909800000000000') AND (startTime <= '1712082600000000000') GROUP BY traceId, spanId, parentId, service, tags.value[indexOf(tags.key, 'app')] ) AS child ON (child.parentId = parent.spanId) AND (child.app = parent.app) WHERE parent.source != child.destination GROUP BY source, destination, child.app Query id: df978b23-21e6-47f2-b1dd-49ffd2f30faa ┌─tuple(source, destination, child.app)────────────────┬──edgeLatency─┬─────edgeThroughput─┐ │ ('logs-ingestion','logs-processor-pulsar','default') │ 141166374337 │ 1115.6183333305491 │ └──────────────────────────────────────────────────────┴──────────────┴────────────────────┘ ┌─tuple(source, destination, child.app)───┬─edgeLatency─┬───────edgeThroughput─┐ │ ('grpc-proxy','prc-ingester','default') │ 4677286165 │ 0.006666666666666667 │ └─────────────────────────────────────────┴─────────────┴──────────────────────┘ ┌─tuple(source, destination, child.app)─────────────────────┬─edgeLatency─┬────────edgeThroughput─┐ │ ('logs-query','logs-ingestion-limit-validator','default') │ 13685261 │ 0.0005555555555555556 │ └───────────────────────────────────────────────────────────┴─────────────┴───────────────────────┘ ┌─tuple(source, destination, child.app)──────────────────────┬────edgeLatency─┬─────edgeThroughput─┐ │ ('tracing-ingestion','netflow-processor-pulsar','default') │ 14254148674699 │ 29.222777777781403 │ └────────────────────────────────────────────────────────────┴────────────────┴────────────────────┘ ┌─tuple(source, destination, child.app)─────┬──edgeLatency─┬─────edgeThroughput─┐ │ ('grpc-proxy','logs-ingestion','default') │ 143431201819 │ 0.6161111111111119 │ └───────────────────────────────────────────┴──────────────┴────────────────────┘ ┌─tuple(source, destination, child.app)────┬──edgeLatency─┬─────edgeThroughput─┐ │ ('grpc-proxy','netflow-query','default') │ 476851645777 │ 0.9500000000000015 │ └──────────────────────────────────────────┴──────────────┴────────────────────┘ ┌─tuple(source, destination, child.app)───┬─edgeLatency─┬────────edgeThroughput─┐ │ ('apigee-edge','tenancy-api','default') │ 21146284 │ 0.0011111111111111111 │ └─────────────────────────────────────────┴─────────────┴───────────────────────┘ ┌─tuple(source, destination, child.app)──────────────────────┬────edgeLatency─┬────edgeThroughput─┐ │ ('tracing-ingestion','tracing-processor-pulsar','default') │ 30709515271775 │ 65.61888888886783 │ └────────────────────────────────────────────────────────────┴────────────────┴───────────────────┘ ┌─tuple(source, destination, child.app)────┬─edgeLatency─┬───────edgeThroughput─┐ │ ('logs-query','logs-archiver','default') │ 12241903059 │ 0.004999999999999999 │ └──────────────────────────────────────────┴─────────────┴──────────────────────┘ ┌─tuple(source, destination, child.app)───────────────────┬──edgeLatency─┬───────edgeThroughput─┐ │ ('dash-api','metricsql-api','default') │ 137249062384 │ 0.08555555555555548 │ │ ('account-manager','netflow-account-manager','default') │ 6041829 │ 0.017222222222222222 │ └─────────────────────────────────────────────────────────┴──────────────┴──────────────────────┘ ┌─tuple(source, destination, child.app)─────────────┬─edgeLatency─┬───────edgeThroughput─┐ │ ('velocloud-application','tenancy-api','default') │ 63509241 │ 0.003333333333333333 │ └───────────────────────────────────────────────────┴─────────────┴──────────────────────┘ ┌─tuple(source, destination, child.app)─┬──edgeLatency─┬────edgeThroughput─┐ │ ('grpc-proxy','logs-query','default') │ 848794611935 │ 1.929444444444417 │ └───────────────────────────────────────┴──────────────┴───────────────────┘ ┌─tuple(source, destination, child.app)──────┬─edgeLatency─┬───────edgeThroughput─┐ │ ('logs-alert-api','tenancy-api','default') │ 1872910584 │ 0.016666666666666666 │ └────────────────────────────────────────────┴─────────────┴──────────────────────┘ ┌─tuple(source, destination, child.app)──────┬─edgeLatency─┬──────edgeThroughput─┐ │ ('grpc-proxy','account-manager','default') │ 5544347299 │ 0.02388888888888889 │ └────────────────────────────────────────────┴─────────────┴─────────────────────┘ ┌─tuple(source, destination, child.app)─────────┬─edgeLatency─┬───────edgeThroughput─┐ │ ('tracing-ingestion','tenancy-api','default') │ 811567698 │ 0.007222222222222222 │ └───────────────────────────────────────────────┴─────────────┴──────────────────────┘ ┌─tuple(source, destination, child.app)─────┬─edgeLatency─┬──────edgeThroughput─┐ │ ('grpc-proxy','logs-alert-api','default') │ 62207627718 │ 0.08833333333333335 │ └───────────────────────────────────────────┴─────────────┴─────────────────────┘ ┌─tuple(source, destination, child.app)────────────┬─edgeLatency─┬───────edgeThroughput─┐ │ ('netflow-grpc-proxy','netflow-query','default') │ 30208435139 │ 0.052222222222222225 │ └──────────────────────────────────────────────────┴─────────────┴──────────────────────┘ ┌─tuple(source, destination, child.app)─────────┬─edgeLatency─┬───────edgeThroughput─┐ │ ('account-manager','netflow-query','default') │ 2352758790 │ 0.010555555555555556 │ └───────────────────────────────────────────────┴─────────────┴──────────────────────┘ ┌─tuple(source, destination, child.app)────┬─edgeLatency─┬───────edgeThroughput─┐ │ ('prc-ingester','tenancy-api','default') │ 836677428 │ 0.008888888888888889 │ └──────────────────────────────────────────┴─────────────┴──────────────────────┘ ┌─tuple(source, destination, child.app)───────────────────┬─edgeLatency─┬─────edgeThroughput─┐ │ ('logs-ingestion','tracing-processor-pulsar','default') │ 7151288167 │ 53.639999999961375 │ └─────────────────────────────────────────────────────────┴─────────────┴────────────────────┘ ┌─tuple(source, destination, child.app)────────────────────────────────┬─edgeLatency─┬──────edgeThroughput─┐ │ ('netflow-ingestion-limit-validator','netflow-grpc-proxy','default') │ 18815940377 │ 0.03666666666666667 │ └──────────────────────────────────────────────────────────────────────┴─────────────┴─────────────────────┘ ┌─tuple(source, destination, child.app)────────┬───edgeLatency─┬─────edgeThroughput─┐ │ ('dash-streaming','query-service','default') │ 3816387061631 │ 0.9016666666666581 │ └──────────────────────────────────────────────┴───────────────┴────────────────────┘ ┌─tuple(source, destination, child.app)──┬─edgeLatency─┬────────edgeThroughput─┐ │ ('grpc-proxy','metrics-aws','default') │ 123996464 │ 0.0005555555555555556 │ └────────────────────────────────────────┴─────────────┴───────────────────────┘ ┌─tuple(source, destination, child.app)───────────────────────────┬─edgeLatency─┬────────edgeThroughput─┐ │ ('account-manager','tracing-query','default') │ 5156223198 │ 0.017222222222222222 │ │ ('tracing-query','tracing-ingestion-limit-validator','default') │ 19950577 │ 0.0016666666666666666 │ └─────────────────────────────────────────────────────────────────┴─────────────┴───────────────────────┘ ┌─tuple(source, destination, child.app)─────┬──edgeLatency─┬─────edgeThroughput─┐ │ ('tracing-query','tenancy-api','default') │ 126408099052 │ 0.8605555555555514 │ └───────────────────────────────────────────┴──────────────┴────────────────────┘ ┌─tuple(source, destination, child.app)─────────────┬─edgeLatency─┬────────edgeThroughput─┐ │ ('office365-application','tenancy-api','default') │ 26626883 │ 0.0005555555555555556 │ └───────────────────────────────────────────────────┴─────────────┴───────────────────────┘ ┌─tuple(source, destination, child.app)──────────────┬─edgeLatency─┬────────edgeThroughput─┐ │ ('citrixcvda-application','tenancy-api','default') │ 3836781 │ 0.0005555555555555556 │ └────────────────────────────────────────────────────┴─────────────┴───────────────────────┘ ┌─tuple(source, destination, child.app)──────┬─edgeLatency─┬─────edgeThroughput─┐ │ ('logs-ingestion','tenancy-api','default') │ 14178343958 │ 0.0855555555555555 │ └────────────────────────────────────────────┴─────────────┴────────────────────┘ ┌─tuple(source, destination, child.app)──┬─edgeLatency─┬───────edgeThroughput─┐ │ ('logs-query','logs-purger','default') │ 13449972 │ 0.011666666666666667 │ └────────────────────────────────────────┴─────────────┴──────────────────────┘ ┌─tuple(source, destination, child.app)───────────────────┬─edgeLatency─┬─────edgeThroughput─┐ │ ('logs-ingestion','netflow-processor-pulsar','default') │ 48539049103 │ 365.90666666630466 │ └─────────────────────────────────────────────────────────┴─────────────┴────────────────────┘ ┌─tuple(source, destination, child.app)─────────┬─edgeLatency─┬───────edgeThroughput─┐ │ ('netflow-grpc-proxy','logs-query','default') │ 16720593179 │ 0.024444444444444442 │ └───────────────────────────────────────────────┴─────────────┴──────────────────────┘ ┌─tuple(source, destination, child.app)─────────┬─edgeLatency─┬──────edgeThroughput─┐ │ ('logs-alert-api','logs-scheduler','default') │ 76468857 │ 0.03666666666666667 │ └───────────────────────────────────────────────┴─────────────┴─────────────────────┘ ┌─tuple(source, destination, child.app)───────────────────┬───edgeLatency─┬────edgeThroughput─┐ │ ('tracing-ingestion','logs-processor-pulsar','default') │ 9690959903442 │ 10.81333333333416 │ └─────────────────────────────────────────────────────────┴───────────────┴───────────────────┘ ┌─tuple(source, destination, child.app)────────────┬─edgeLatency─┬───────edgeThroughput─┐ │ ('netflow-grpc-proxy','tracing-query','default') │ 17146808214 │ 0.025555555555555554 │ └──────────────────────────────────────────────────┴─────────────┴──────────────────────┘ ┌─tuple(source, destination, child.app)────────┬─edgeLatency─┬────────edgeThroughput─┐ │ ('tracing-query','tracing-purger','default') │ 2630934 │ 0.0005555555555555556 │ └──────────────────────────────────────────────┴─────────────┴───────────────────────┘ ┌─tuple(source, destination, child.app)─────────────────────┬──edgeLatency─┬────────edgeThroughput─┐ │ ('logs-ingestion-limit-validator','grpc-proxy','default') │ 312523760641 │ 0.6061111111111122 │ │ ('account-manager','logs-alert-api','default') │ 209605842 │ 0.0011111111111111111 │ └───────────────────────────────────────────────────────────┴──────────────┴───────────────────────┘ ┌─tuple(source, destination, child.app)────────────────┬─edgeLatency─┬──────edgeThroughput─┐ │ ('logs-scheduler','logs-metric-processor','default') │ 42346449 │ 0.25833333333333314 │ └──────────────────────────────────────────────────────┴─────────────┴─────────────────────┘ ┌─tuple(source, destination, child.app)──────────────┬───edgeLatency─┬──────edgeThroughput─┐ │ ('logs-processor-tasks','query-service','default') │ 1253081551936 │ 0.29333333333333333 │ └────────────────────────────────────────────────────┴───────────────┴─────────────────────┘ ┌─tuple(source, destination, child.app)──────┬─edgeLatency─┬──────edgeThroughput─┐ │ ('account-manager','logs-query','default') │ 18377974168 │ 0.02666666666666667 │ └────────────────────────────────────────────┴─────────────┴─────────────────────┘ ┌─tuple(source, destination, child.app)─┬─edgeLatency─┬──────edgeThroughput─┐ │ ('dash-api','tenancy-api','default') │ 10304427702 │ 0.06555555555555556 │ └───────────────────────────────────────┴─────────────┴─────────────────────┘ ┌─tuple(source, destination, child.app)─────┬─edgeLatency─┬───────edgeThroughput─┐ │ ('netflow-query','tenancy-api','default') │ 4613282276 │ 0.042222222222222223 │ └───────────────────────────────────────────┴─────────────┴──────────────────────┘ ┌─tuple(source, destination, child.app)────────┬───edgeLatency─┬──────edgeThroughput─┐ │ ('dash-streaming','metricsql-api','default') │ 2796390863415 │ 0.30277777777777776 │ └──────────────────────────────────────────────┴───────────────┴─────────────────────┘ ┌─tuple(source, destination, child.app)────┬──edgeLatency─┬─────edgeThroughput─┐ │ ('grpc-proxy','tracing-query','default') │ 786569206168 │ 1.8227777777777525 │ └──────────────────────────────────────────┴──────────────┴────────────────────┘ ┌─tuple(source, destination, child.app)────────────┬─edgeLatency─┬───────edgeThroughput─┐ │ ('tracing-otel-metrics','tenancy-api','default') │ 3604106245 │ 0.022222222222222223 │ └──────────────────────────────────────────────────┴─────────────┴──────────────────────┘ ┌─tuple(source, destination, child.app)──────────────┬─edgeLatency─┬────────edgeThroughput─┐ │ ('prc-ingester','int-sv4-prc-processor','default') │ 92735139 │ 0.0005555555555555556 │ └────────────────────────────────────────────────────┴─────────────┴───────────────────────┘ ┌─tuple(source, destination, child.app)────────┬──edgeLatency─┬────edgeThroughput─┐ │ ('logs-ingestion','logs-archiver','default') │ 252976672701 │ 695.9722222222524 │ └──────────────────────────────────────────────┴──────────────┴───────────────────┘ ┌─tuple(source, destination, child.app)─┬─edgeLatency─┬────────edgeThroughput─┐ │ ('megaport','tenancy-api','default') │ 38573170 │ 0.0011111111111111111 │ └───────────────────────────────────────┴─────────────┴───────────────────────┘ ┌─tuple(source, destination, child.app)────────────────────────┬──edgeLatency─┬────edgeThroughput─┐ │ ('tracing-ingestion-limit-validator','grpc-proxy','default') │ 227884796253 │ 0.516666666666667 │ └──────────────────────────────────────────────────────────────┴──────────────┴───────────────────┘ ┌─tuple(source, destination, child.app)────┬─edgeLatency─┬───────edgeThroughput─┐ │ ('process-api','metadata-api','default') │ 27332876 │ 0.019444444444444445 │ └──────────────────────────────────────────┴─────────────┴──────────────────────┘ ┌─tuple(source, destination, child.app)───────────────┬─edgeLatency─┬──────edgeThroughput─┐ │ ('logs-scheduler','logs-alert-processor','default') │ 189057107 │ 2.301666666666621 │ │ ('grpc-proxy','logs-configs','default') │ 60116782585 │ 0.10388888888888888 │ └─────────────────────────────────────────────────────┴─────────────┴─────────────────────┘ ┌─tuple(source, destination, child.app)────────┬─edgeLatency─┬────────edgeThroughput─┐ │ ('zoom-application','tenancy-api','default') │ 26871152 │ 0.0011111111111111111 │ └──────────────────────────────────────────────┴─────────────┴───────────────────────┘ ┌─tuple(source, destination, child.app)──┬──edgeLatency─┬─────edgeThroughput─┐ │ ('logs-query','tenancy-api','default') │ 319515701464 │ 1.4844444444444345 │ └────────────────────────────────────────┴──────────────┴────────────────────┘ ┌─tuple(source, destination, child.app)────┬─edgeLatency─┬──────edgeThroughput─┐ │ ('logs-configs','tenancy-api','default') │ 34104315895 │ 0.18555555555555547 │ └──────────────────────────────────────────┴─────────────┴─────────────────────┘ 57 rows in set. Elapsed: 37.460 sec. Processed 40.47 million rows, 26.35 GB (1.08 million rows/s., 703.36 MB/s.) Peak memory usage: 3.82 GiB.