VictoriaMetrics/app/vmselect/prometheus
Tamara Vashchuk 6a59737e96
vmui: Add button to prettify query (#4694)
* Add button to prettify query

Just capitalizes query text for now

* Add /prettify-query API handler

* Replace UI pretiffier using prettifier API

* Add showing server errors

Had to pass setQueryErrors from useFetchQuery.ts

* Use serverUrl from global AppState

* Change icon to AutoAwsome icon + added style change color when button is active

* Add sync/await to prettifyQuery function

* Doc public function for lint

* Minor async fix

* Removed extra blank lines

* Extract usePrettifyQuery hook

* Made more generic style for :active button

* Refactor usePrettifyQuery

However, prettify errors don't clean up query errors, but should

* Add prettyQuery functionality to CHANGELOG.md

* Reuse queryErrors

* Unhide errors on start

---------

Co-authored-by: Tamara <toma.vashchuk@gmail.com>

(cherry picked from commit 7349f18c55)
Signed-off-by: hagen1778 <roman@victoriametrics.com>
2023-08-21 15:50:17 +02:00
..
error_response.qtpl all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
error_response.qtpl.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
expand-with-exprs.qtpl app/vmselect: small cleanup after 4f3f9950d0 2023-05-09 22:45:02 -07:00
expand-with-exprs.qtpl.go app/vmselect: small cleanup after 4f3f9950d0 2023-05-09 22:45:02 -07:00
export.qtpl app: follow-up after ec04fcac93 2022-10-06 14:54:15 +03:00
export.qtpl.go app: follow-up after ec04fcac93 2022-10-06 14:54:15 +03:00
federate.qtpl app/vmselect: do not export NaN values for stale metrics at /federate endpoint 2022-10-01 19:48:21 +03:00
federate.qtpl.go app/vmselect: do not export NaN values for stale metrics at /federate endpoint 2022-10-01 19:48:21 +03:00
label_values_response.qtpl lib/querytracer: make it easier to use by passing trace context message to New and NewChild 2022-06-08 21:16:12 +03:00
label_values_response.qtpl.go lib/querytracer: make it easier to use by passing trace context message to New and NewChild 2022-06-08 21:16:12 +03:00
labels_response.qtpl lib/querytracer: make it easier to use by passing trace context message to New and NewChild 2022-06-08 21:16:12 +03:00
labels_response.qtpl.go lib/querytracer: make it easier to use by passing trace context message to New and NewChild 2022-06-08 21:16:12 +03:00
prometheus_test.go chore: Use http constants to replace numbers (#3846) 2023-02-22 18:59:32 -08:00
prometheus.go vmui: Add button to prettify query (#4694) 2023-08-21 15:50:17 +02:00
query_range_response.qtpl app/vmselect: follow-up for 10ab086366 2023-03-27 15:11:42 -07:00
query_range_response.qtpl.go app/vmselect: follow-up for 10ab086366 2023-03-27 15:11:42 -07:00
query_response.qtpl app/vmselect: follow-up for 10ab086366 2023-03-27 15:11:42 -07:00
query_response.qtpl.go app/vmselect: follow-up for 10ab086366 2023-03-27 15:11:42 -07:00
series_count_response.qtpl app/vmselect: propagate errors from vmstorage to response to the client if -search.denyPartialResponse command-line flag is set 2020-11-14 13:20:10 +02:00
series_count_response.qtpl.go app/vmselect: propagate errors from vmstorage to response to the client if -search.denyPartialResponse command-line flag is set 2020-11-14 13:20:10 +02:00
series_response.qtpl app/vmselect: properly generate response for /api/v1/series 2022-07-06 12:46:23 +03:00
series_response.qtpl.go app/vmselect: properly generate response for /api/v1/series 2022-07-06 12:46:23 +03:00
tenants_response.qtpl {app/vmstorage,app/vmselect}: add API to get list of existing tenants (#3348) 2022-11-25 10:32:45 -08:00
tenants_response.qtpl.go {app/vmstorage,app/vmselect}: add API to get list of existing tenants (#3348) 2022-11-25 10:32:45 -08:00
tsdb_status_response.qtpl app/vmselect: accept focusLabel query arg at /api/v1/status/tsdb 2022-06-14 18:39:00 +03:00
tsdb_status_response.qtpl.go app/vmselect: accept focusLabel query arg at /api/v1/status/tsdb 2022-06-14 18:39:00 +03:00
util.qtpl all: add initial support for query tracing 2022-06-01 02:31:44 +03:00
util.qtpl.go all: add initial support for query tracing 2022-06-01 02:31:44 +03:00