Skip to content

Open-source status page, incident response and uptime monitoring

774 B
Raw Blame
TAGS "grpc"

NODE endpoint
SQL >

%
    SELECT
        region,
        round(quantileIf(0.5)(latency, servingStatus IS NOT NULL)) as p50Latency,
        round(quantileIf(0.75)(latency, servingStatus IS NOT NULL)) as p75Latency,
        round(quantileIf(0.9)(latency, servingStatus IS NOT NULL)) as p90Latency,
        round(quantileIf(0.95)(latency, servingStatus IS NOT NULL)) as p95Latency,
        round(quantileIf(0.99)(latency, servingStatus IS NOT NULL)) as p99Latency,
        count() as count,
        count(if(error = 0, 1, NULL)) AS ok
    FROM mv__grpc_7d__v0
    WHERE
        monitorId = {{ String(monitorId, '4433', required=True) }}
        {% if regions %} AND region IN {{ Array(regions, 'String', 'ams,fra') }} {% end %}
    GROUP BY region

TYPE endpoint