Prometheus API
Evaluates and returns a formatted version of the query
get
/api/prometheus/api/v1/format_queryParameters 1
queryqueryrequiredPromQL 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 request12curl --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.
References PrometheusFormatQueryResponse
stringrequired
string
string[]