Dash0 acquires Polar Signals

Prometheus API

Evaluates and returns a formatted version of the query

get/api/prometheus/api/v1/format_query

Parameters 1

queryqueryrequired

PromQL expression to validate and pretty-print. The response data is the formatted expression. If the query contains Dash0 template variables (e.g. $__range, $__interval), the original query is returned unmodified.

string
bash
Sample request
12
curl --request GET 'https://api.eu-west-1.aws.dash0.com/api/prometheus/api/v1/format_query?query=up' \
--header "Authorization: Bearer ${DASH0_AUTH_TOKEN}"

Responses

Evaluated and formatted query.

stringrequired
string
string[]