prometheus/web
Julius Volz b8af4632be
Allow formatting PromQL expressions in the UI (#11039)
* Allow formatting PromQL expressions in the UI

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

* Improve error handling, also catch HTTP errors

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

* Remove now-unneeded async property

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

* Disable format button when already formatted

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

* Disable format button when there are linter errors

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

* Remove disabling of format button again for linter errors

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2022-07-21 18:05:41 +02:00
..
api/v1 Add /api/v1/format_query API endpoint for formatting queries (#11036) 2022-07-20 14:55:09 +02:00
ui Allow formatting PromQL expressions in the UI (#11039) 2022-07-21 18:05:41 +02:00
federate.go storage: Consolidate iterator method names (Values -> At) (#9888) 2021-11-29 11:16:40 +01:00
federate_test.go unit tests: make all Labels sorted alphabetically (#10532) 2022-05-04 23:41:36 +02:00
web.go Merge pull request #9638 from prometheus/superq/agentMode 2022-05-24 10:11:21 +02:00
web_test.go fix: add response closures to web_test.go (#10675) 2022-06-17 09:55:52 +02:00