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.
Source API Descriptions
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for arazzo workflows
4 MCP tools reach this
find_arazzoBrowse and filter every workflow in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/prometheus-range-query-with-exemplars-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.