I am giving few query example, can you please help me to use query builder
Example 1: select name as ApiName,serviceName as Product, count(1) as Total_Hits,COUNTIf(durationNano <= 5000000000) AS "0 Sec to 5 Sec",COUNTIf(durationNano > 5000000000 and durationNano <= 10000000000) AS "6 Sec to 10 Sec",COUNTIf(durationNano > 10000000000 and durationNano <= 20000000000) AS "11 Sec to 20 Sec",COUNTIf(durationNano > 20000000000 and durationNano <= 30000000000) AS "21 Sec to 30 Sec",COUNTIf(durationNano > 30000000000) AS "More Than 30 Sec" FROM signoz_traces.durationSort where name like '/%' and serviceName = {{.service_name}} and timestamp >= {{.start_timestamp}} and timestamp <= {{.end_timestamp}} group by name,serviceName
Example 2: SELECT groupID,count() AS exceptionCount, any(exceptionType) as exceptionType FROM signoz_traces.distributed_signoz_error_index_v2 WHERE serviceName = {{.service_name}} and timestamp >= toDateTime({{.start_timestamp}}) and timestamp <= toDateTime({{.end_timestamp}}) GROUP BY groupID,serviceName