Run a Large PromQL Expression via POST
A 2-step recipe with Prometheus. We can help you get access.
Recipe · 2 steps
Run a Large PromQL Expression via POST
with Prometheus
Evaluate a long PromQL expression through the POST query endpoints.
- Evaluate the expression at a single point in time, sending it in the request body so no URL length limit applies.
- Evaluate the same expression across the full time range, again through the request body, producing the matrix used for charting or export.
What you'll need to have ready
- query: The PromQL expression to evaluate. Typically long enough that URL encoding it would breach a proxy's request-line limit.
- start: Start of the range as a Unix timestamp or RFC3339 string.
- end: End of the range as a Unix timestamp or RFC3339 string.
- step: Resolution step width as a duration string (e.g. 1m).
For your developer
Arazzo workflow prometheus:large-promql-query-post, 2 operations: queryInstantPost → queryRangePost. Specs on APIs.io.