Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
TOKEN "endpoint__dns_metrics_latency_1d_multi__v0_endpoint_read_4781" READ
NODE endpoint
SQL >
%
SELECT
toStartOfInterval(
toDateTime(cronTimestamp / 1000), INTERVAL {{ Int64(interval, 30) }} MINUTE
) as h,
monitorId,
toUnixTimestamp64Milli(toDateTime64(h, 3)) as timestamp,
round(quantile(0.50)(latency)) as p50Latency,
round(quantile(0.75)(latency)) as p75Latency,
round(quantile(0.90)(latency)) as p90Latency,
round(quantile(0.95)(latency)) as p95Latency,
round(quantile(0.99)(latency)) as p99Latency
FROM dns_response__v0
WHERE
monitorId IN {{ Array(monitorIds, 'String', '7417') }}
AND timestamp >= toUnixTimestamp64Milli(toDateTime64(now() - INTERVAL 1 DAY, 3))
GROUP BY h, monitorId
ORDER BY h ASC
TYPE endpoint