Run a read-only SQL query against this project's telemetry.
Accepts exactly one SELECT statement as the raw request body. Allowed
tables: sigiro_spans, sigiro_logs, sigiro_log_templates,
sigiro_metrics_gauge, sigiro_metrics_sum, sigiro_metrics_histogram,
sigiro_metrics_exp_histogram, sigiro_profiles, sigiro_anomalies
(optionally qualified as lake.* or main.*). WITH/CTE clauses are not
supported — rewrite as derived-table subqueries. Scalar functions are
allowlisted (aggregates, json extraction, date/time, string, math,
conditional helpers); file/network readers are blocked. Every
drill_down_sql returned by /v1/investigate can be pasted here verbatim.
POST
/v1/queryRequest body
requiredtext/plainstringResponses
200Query results
Array of
anyanyRequest
curl -X POST "/v1/query" \
-H "Content-Type: text/plain" \
-d '"string"'const response = await fetch("/v1/query", {
method: "POST",
headers: {
"Content-Type": "text/plain"
},
body: JSON.stringify("string")
});import requests
response = requests.post(
"/v1/query",
headers={
"Content-Type": "text/plain"
},
json="string",
)Response
[
"string"
]