VictoriaMetrics/app/vmselect
Tamara Vashchuk 7349f18c55
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>
2023-08-18 20:12:48 +03:00
..
graphite lib/storage: switch from global to per-day index for MetricName -> TSID mapping 2023-07-13 16:07:30 -07:00
graphiteql app,lib: fix typos in comments (#3804) 2023-02-13 13:27:13 +01:00
netstorage app/vmselect/netstorage: remove duplicate see word from the error message 2023-08-14 02:05:44 -07:00
prometheus vmui: Add button to prettify query (#4694) 2023-08-18 20:12:48 +03:00
promql app/vmselect: prevent from panic when lookbehind window inside rollup function is parsed into negative value 2023-08-12 04:47:53 -07:00
querystats app/vmselect: do not track queries with less than 1ms execution time at /api/v1/status/top_queries 2021-07-15 16:44:28 +03:00
searchutils all: add support for or filters in series selectors 2023-07-16 00:06:33 -07:00
vmui app/{vmselect,vlselect}: run make vmui-update vmui-logs-update after 86f1459ca6 2023-08-11 07:00:39 -07:00
main.go vmui: Add button to prettify query (#4694) 2023-08-18 20:12:48 +03:00
README.md app/vmui: move source code from https://github.com/VictoriaMetrics/vmui to app/vmui 2021-07-09 17:15:23 +03:00
vmui.go lib/fs: add MustReadDir() function 2023-04-14 22:10:46 -07:00

vmselect performs the incoming queries and fetches the required data from vmstorage.

The vmui directory contains static contents built from app/vmui package with make vmui-update command. The vmui page is available at http://<victoria-metrics>:8428/vmui/.