Slackbot
05/30/2023, 8:00 PMRomario Lopez C
05/30/2023, 8:07 PMRomario Lopez C
05/30/2023, 8:09 PMSrikanth Chekuri
05/31/2023, 1:55 AMSELECT
count() AS value,
toStartOfInterval(timestamp, INTERVAL 1 MINUTE) AS interval,
stringTagMap['net.host.name'] AS host,
numberTagMap['http.status_code'] as http_status
FROM signoz_traces.distributed_signoz_index_v2
WHERE timestamp > {{.start_datetime}} AND timestamp < {{.end_datetime}}
AND (stringTagMap['net.host.name'] = 'some_host' OR stringTagMap['net.host.name'] = 'other_host')
AND stringTagMap['http.target'] = '/api/webhooks/1'
GROUP BY (host, http_status), interval
ORDER BY host ASC, http_status ASC, interval
Try this insteadRomario Lopez C
05/31/2023, 5:46 PMRomario Lopez C
05/31/2023, 5:48 PMSrikanth Chekuri
06/01/2023, 1:32 AMtoString
explicitly since you are not doing anything with status code.Romario Lopez C
06/01/2023, 1:33 AMtoString
thing?Srikanth Chekuri
06/01/2023, 1:34 AMSELECT
count() AS value,
toStartOfInterval(timestamp, INTERVAL 1 MINUTE) AS interval,
stringTagMap['net.host.name'] AS host,
toString(numberTagMap['http.status_code']) as http_status
FROM signoz_traces.distributed_signoz_index_v2
WHERE timestamp > {{.start_datetime}} AND timestamp < {{.end_datetime}}
AND (stringTagMap['net.host.name'] = 'some_host' OR stringTagMap['net.host.name'] = 'other_host')
AND stringTagMap['http.target'] = '/api/webhooks/1'
GROUP BY (host, http_status), interval
ORDER BY host ASC, http_status ASC, interval
Romario Lopez C
06/01/2023, 1:42 AM