{ "opencollection": "1.0.0", "info": { "name": "Prometheus Alertmanager Admin Query API", "version": "v0.28.0" }, "items": [ { "info": { "name": "Query", "type": "folder" }, "items": [ { "info": { "name": "Prometheus Execute instant query", "type": "http" }, "http": { "method": "GET", "url": "http://{host}:{port}/api/v1/query", "params": [ { "name": "query", "value": "", "type": "query", "description": "PromQL expression to evaluate." }, { "name": "time", "value": "", "type": "query", "description": "Evaluation timestamp as a Unix timestamp or RFC3339 string. Defaults to current server time." }, { "name": "timeout", "value": "", "type": "query", "description": "Evaluation timeout as a duration string (e.g., 30s)." } ] }, "docs": "Evaluates a PromQL expression at a single point in time. Returns a vector of time series with their values at the specified time. If the time parameter is omitted, the current server time is used." }, { "info": { "name": "Prometheus Execute instant query (POST)", "type": "http" }, "http": { "method": "POST", "url": "http://{host}:{port}/api/v1/query", "body": { "type": "form-urlencoded", "data": [ { "name": "query", "value": "" }, { "name": "time", "value": "" }, { "name": "timeout", "value": "" } ] } }, "docs": "Evaluates a PromQL expression at a single point in time using a POST request body. Use POST when query parameters exceed URL length limits." }, { "info": { "name": "Prometheus Execute range query", "type": "http" }, "http": { "method": "GET", "url": "http://{host}:{port}/api/v1/query_range", "params": [ { "name": "query", "value": "", "type": "query", "description": "PromQL expression to evaluate." }, { "name": "start", "value": "", "type": "query", "description": "Start of the time range as a Unix timestamp or RFC3339 string." }, { "name": "end", "value": "", "type": "query", "description": "End of the time range as a Unix timestamp or RFC3339 string." }, { "name": "step", "value": "", "type": "query", "description": "Query resolution step width as a duration string (e.g., 15s, 1m, 1h)." }, { "name": "timeout", "value": "", "type": "query", "description": "Evaluation timeout as a duration string (e.g., 30s)." } ] }, "docs": "Evaluates a PromQL expression over a range of time, returning a matrix of time series with values at each step interval. Used for generating graphs and time-based analysis." }, { "info": { "name": "Prometheus Execute range query (POST)", "type": "http" }, "http": { "method": "POST", "url": "http://{host}:{port}/api/v1/query_range", "body": { "type": "form-urlencoded", "data": [ { "name": "query", "value": "" }, { "name": "start", "value": "" }, { "name": "end", "value": "" }, { "name": "step", "value": "" }, { "name": "timeout", "value": "" } ] } }, "docs": "Evaluates a PromQL expression over a range of time using a POST request body. Use POST when query parameters exceed URL length limits." }, { "info": { "name": "Prometheus Query exemplars", "type": "http" }, "http": { "method": "GET", "url": "http://{host}:{port}/api/v1/query_exemplars", "params": [ { "name": "query", "value": "", "type": "query", "description": "PromQL expression to evaluate." }, { "name": "start", "value": "", "type": "query", "description": "Start of the time range." }, { "name": "end", "value": "", "type": "query", "description": "End of the time range." } ] }, "docs": "Returns a list of exemplars for a given PromQL expression over a time range. Exemplars are specific trace or log IDs attached to high-value metric observations that link metrics to traces." } ] } ], "bundled": true }