Prometheus API
Evaluates an instant query at a single point in time
post
/api/prometheus/api/v1/querybash
Sample request123456curl --request POST 'https://api.eu-west-1.aws.dash0.com/api/prometheus/api/v1/query' \--header "Authorization: Bearer ${DASH0_AUTH_TOKEN}" \--header 'Content-Type: application/json' \--data-raw '{"query": "up"}'
Request body required
References PrometheusQueryRequest
stringrequired
string
string
integer
Optional dataset to query across. Defaults to whatever is configured to be the default dataset for the organization.
Responses
Evaluated instant query at a single point in time.
References PrometheusQueryResponse
stringrequired
string[]
string[]
Info-level annotations produced while evaluating the query (Prometheus 3.0+),
kept separate from warnings.