prometheus/web/api/v1
Julius Volz b57deb6eb0
Add /api/v1/format_query API endpoint for formatting queries (#11036)
* Add /api/v1/format_query API endpoint for formatting queries

This uses the formatting functionality introduced in
https://github.com/prometheus/prometheus/pull/10544.

I've chosen "query" instead of "expr" in both the endpoint and parameter
names to stay consistent with the existing API endpoints. Otherwise, I
would have preferred to use the term "expr".

Signed-off-by: Julius Volz <julius.volz@gmail.com>

* Add docs for /api/v1/format_query endpoint

Signed-off-by: Julius Volz <julius.volz@gmail.com>

* Add note that formatting expressions removes comments

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2022-07-20 14:55:09 +02:00
..
api.go Add /api/v1/format_query API endpoint for formatting queries (#11036) 2022-07-20 14:55:09 +02:00
api_test.go Add /api/v1/format_query API endpoint for formatting queries (#11036) 2022-07-20 14:55:09 +02:00
errors_test.go Merge pull request #10857 from pstibrany/fix-errors-handling 2022-06-13 17:45:35 +02:00