Slackbot
10/13/2022, 3:26 PMSrikanth Chekuri
10/13/2022, 3:51 PMAllan Li
10/13/2022, 3:58 PMgraphql.operation.name
Is there any way to generate visual insight by querying traces with certain names?
For example a use case could be a dashboard that displays which graphql.operation.name
is responsible for the highest latency sum.Allan Li
10/13/2022, 3:59 PMgraphql.operation.name
on the filter bar of the traces UI, but can we somehow group traces by this tag and then rank it? Perhaps we have to create custom metrics or something, what would you suggest?Allan Li
10/13/2022, 3:59 PMSrikanth Chekuri
10/13/2022, 4:09 PMSELECT
toDateTime(toStartOfMinute(timestamp)) AS minute,
tagMap['graphql.operation.name'] AS op_name,
toFloat64(sum(durationNano)) AS value
FROM signoz_traces.signoz_index_v2
WHERE timestamp > toDateTime64(now() - toIntervalMinute(30), 0, 'UTC') AND tagMap['graphql.operation.name'] != ''
GROUP BY
op_name,
minute
ORDER BY minute, op_name, value DESC
Srikanth Chekuri
10/13/2022, 4:13 PMDashboards > Some dashboard > Create panel > ClickHouse Query
Srikanth Chekuri
10/13/2022, 4:14 PMAnkit Nayan
avg(durationNano)
instead of sum(durationNano)
and to plot the values correctly use nanoseconds(ns)
as y-axis unit in the panel settings as in image attachedAllan Li
10/13/2022, 5:09 PMAllan Li
10/13/2022, 5:10 PMAllan Li
10/13/2022, 5:14 PMSrikanth Chekuri
10/13/2022, 5:38 PMSHOW CREATE TABLE signoz_traces.signoz_index_v2
Allan Li
10/17/2022, 3:34 PMSrikanth Chekuri
10/17/2022, 3:46 PMAllan Li
10/17/2022, 3:57 PMSrikanth Chekuri
10/17/2022, 6:44 PM