prometheus/web/ui
CSTDev 4262ad92ce React ui add query stats (#6190)
* Adds the query stats to UI

Adds the query load time, resolution and total number of time series,
as the current UI has

Signed-off-by: cstdev <pietomb00@hotmail.com>

* Implement unit test for QueryStats

Signed-off-by: cstdev <pietomb00@hotmail.com>

* Tidy Query Stats component

Rename it and expose a interface for the values it displays
Make it a functional component as it has no state or lifecycle
Better null/undefined checks
Only render if needed, decided by the panel
Remove old stats if the next errors

Signed-off-by: cstdev <pietomb00@hotmail.com>
2019-10-23 12:47:37 +02:00
..
react-app React ui add query stats (#6190) 2019-10-23 12:47:37 +02:00
static Add links between classic and new UIs (#6191) 2019-10-21 20:18:47 +02:00
templates Add links between classic and new UIs (#6191) 2019-10-21 20:18:47 +02:00
assets_generate.go Integrate beginning of React UI (#5694) 2019-10-17 14:38:09 +02:00
doc.go Integrate beginning of React UI (#5694) 2019-10-17 14:38:09 +02:00
README.md Integrate beginning of React UI (#5694) 2019-10-17 14:38:09 +02:00
ui.go Integrate beginning of React UI (#5694) 2019-10-17 14:38:09 +02:00

The ui directory contains static files and templates used in the web UI. For easier distribution they are statically compiled into the Prometheus binary using the vfsgen library (c.f. Makefile).

During development it is more convenient to always use the files on disk to directly see changes without recompiling. To make this work, remove the builtinassets build tag in the flags entry in .promu.yml, and then make build.

This will serve all files from your local filesystem. This is for development purposes only.

After making changes to any file, run make assets before committing to update the generated inline version of the file.