prometheus/web/ui
Chris Marchbanks 62bd77bf93
Fix react tests (#7077)
https://github.com/facebook/create-react-app/issues/8689 is causing our
tests to fail in the CI pipeline. As the comments suggest, downgrading
to react-scripts 3.4.0 fixes the problem.

In addition, fix a test warning due to a missing id field.

Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
2020-04-01 16:37:52 +02:00
..
react-app Fix react tests (#7077) 2020-04-01 16:37:52 +02:00
static [format]Js: format checktimedrift() success (#6850) 2020-02-20 11:36:22 +01:00
templates Use .UTC everywhere we use time.Unix (#7066) 2020-03-29 17:35:39 +01:00
README.md Update more web/ui/README.md bits for new UI (#6197) 2019-10-25 10:19:21 +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
ui.go Fix golint issues. 2020-03-23 20:38:43 +01:00

README.md

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 (or build Prometheus using go build ./cmd/prometheus).

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