prometheus/web/ui
Benji Visser 8bb6e0dd6e Show rule evaluation errors on rules page (#4457)
* adding information about the health and errors for Rules

adding Health() and LastError() to the Rule interface. This will allow
us to easily surface information about rules.

Signed-off-by: noqcks <benny@noqcks.io>

* updating rules.html with fields for Rule errors and health state

Signed-off-by: noqcks <benny@noqcks.io>

* fix code comment grammar & access Rule health/error info using a mutex

Signed-off-by: noqcks <benny@noqcks.io>

* s/Errors/Error/ in rules.html to remain consistent with targets.html

Signed-off-by: noqcks <benny@noqcks.io>

* adding periods to code comments in reporting/alerting

Signed-off-by: noqcks <benny@noqcks.io>

* putting health/error below mutex in struct field

Signed-off-by: noqcks <benny@noqcks.io>
2018-08-07 00:33:45 +02:00
..
static Merge branch 'release-2.2' into update 2018-06-05 05:29:11 -04:00
templates Show rule evaluation errors on rules page (#4457) 2018-08-07 00:33:45 +02:00
README.md go-bindata debug clarification (#4411) 2018-07-24 14:01:56 +01:00
bindata.go Show rule evaluation errors on rules page (#4457) 2018-08-07 00:33:45 +02:00

README.md

The ui package contains static files and templates used in the web UI. For easier distribution they are statically compiled into the Prometheus binary using the go-bindata tool (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, set the environment variable DEBUG=1, run make assets, and then make build.

This will put go-bindata in DEBUG mode where it serves from your local filesystem. This is for development purposes only.

After making changes to any file, run make assets (without the DEBUG=1) before committing to update the generated inline version of the file.