VictoriaMetrics/app
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
..
victoria-logs app/vlselect: handle vmui at /select/vmui path instead of /vmui 2023-07-06 21:36:28 -07:00
vlinsert app/vlinsert/elasticsearch: add a command-line flag to provide ES version (#4778) 2023-08-11 06:57:01 -07:00
vlselect app/{vmselect,vlselect}: run make vmui-update vmui-logs-update after 86f1459ca6 2023-08-11 07:01:15 -07:00
vlstorage app/vlstorage: expose vl_data_size_bytes metric at /metrics page for tracking the on-disk data size (both indexdb and the data itself) 2023-07-31 07:56:16 -07:00
vmagent app/vmagent/remotewrite: follow-up after a27c2f3773 2023-08-17 14:44:35 +02:00
vmalert vmalert: fix vmalert_remotewrite_send_duration_seconds_total metric value (#4801) 2023-08-11 04:58:00 -07:00
vmauth vmauth: add broken backend backoff flag (#4416) 2023-08-11 04:30:23 -07:00
vmbackup vmbackup: correctly check if specified -dst belongs to specified -storageDataPath (#4841) 2023-08-16 14:56:52 +02:00
vmbackupmanager docs: use 1. instead of N. in numbered bullets, so they are automatically adjusted by Github Markdown engine 2023-07-26 14:40:06 -07:00
vmctl app/vmctl: fix migration process if tenant have no data (#4799) 2023-08-16 14:56:52 +02:00
vmgateway docs: follow-up after aec4b5db81 (#4638) 2023-07-19 14:48:17 -07:00
vminsert lib/promrelabel: properly replace : char with _ in metric names when -usePromCompatibleNaming command-line flag is set 2023-08-14 16:18:17 +02:00
vmrestore docs: use 1. instead of N. in numbered bullets, so they are automatically adjusted by Github Markdown engine 2023-07-26 14:40:06 -07:00
vmselect vmui: Add button to prettify query (#4694) 2023-08-21 15:50:17 +02:00
vmstorage all: refer to https://docs.victoriametrics.com/#resource-usage-limits in the error message about -search.max* limit 2023-08-14 02:02:12 -07:00
vmui vmui: Add button to prettify query (#4694) 2023-08-21 15:50:17 +02:00