mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
664b391573
All this is doing is wrapping the inner alert details display with a conditional `{open && ...}`. This already improves https://github.com/prometheus/prometheus/issues/8548 a lot for cases where there are many individual firing/pending alert elements under each alerting rule. E.g. for a list of 200 rules with ~100 alert elements each, this changed the page render time from 30 seconds to 1s. Signed-off-by: Julius Volz <julius.volz@gmail.com> |
||
---|---|---|
.. | ||
react-app | ||
static | ||
templates | ||
assets_generate.go | ||
doc.go | ||
README.md | ||
ui.go |
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.