Skip to content

Commit 3c99395

Browse files
authored
Create hookshot-exception-message-30-min-buckets.sql
1 parent c3dd0dc commit 3c99395

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.mode csv
2+
SELECT date_trunc('minute', "Timestamp") - INTERVAL '1 minute' * (EXTRACT(MINUTE FROM "Timestamp") % 30) AS timeframe,
3+
"exception.message", COUNT(*) AS total
4+
FROM hookshot
5+
WHERE "exception.message" like '%Timeout exceeded while awaiting headers%'
6+
GROUP BY timeframe, "exception.message"
7+
ORDER BY timeframe;

0 commit comments

Comments
 (0)