Prometheus
communityOpen-source monitoring and alerting toolkit for time-series metrics with PromQL query language.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
GET
https://{prometheus_addr}/api/v1/queryExecute instant PromQL query
Parameters
timeevaluation timestamp RFC3339 (stringoptionalqueryPromQL expression (stringrequiredReturns
data.resultType, data.result[] with metric labels and value [timestamp, value]GET
https://{prometheus_addr}/api/v1/query_rangeExecute range PromQL query
Parameters
endend timestamp RFC3339 (stringrequiredstepquery step e.g. 15srequired— 1m, 1h (stringqueryPromQL expression (stringrequiredstartstart timestamp RFC3339 (stringrequiredReturns
data.result[] with metric labels and values [[timestamp, value], ...]GET
https://{prometheus_addr}/api/v1/label/__name__/valuesList all metric names
Returns
data[] with metric name strings