Prometheus · Arazzo Workflow
Prometheus Chart a Range Query and Pull Its Exemplars
Version 1.0.0
Validate an expression, graph it over a time range, then link the spikes to traces.
Provider
Workflows
range-query-with-exemplars
Evaluate a PromQL expression over a time range and fetch its exemplars.
Validating the expression with an instant query before issuing the range query keeps a malformed or overly expensive expression from being evaluated at every step across the whole window.
1
validateExpression
queryInstant
Evaluate the expression once at the end of the window. A 400 or 422 here means the expression is malformed and the range query would fail the same way, only after far more work on the server.
2
evaluateRange
queryRange
Evaluate the expression at every step across the range, producing the matrix of time series a chart renders.
3
fetchExemplars
queryExemplars
Retrieve exemplars over the same window. Exemplars carry the trace or log IDs attached to individual observations, which is what turns a latency spike on the chart into a specific trace to open.