prometheus/web/ui
Julien Pivotto 52c0121890 Correctly handle empty data set in the console view (#3521)
When there is an empty result set, the Prometheus server replies with

{"status":"success","data":{"resultType":"vector","result":null}}

That "null" reply was not handled correctly by the graphing library.
This commit handles that case and shows "no data" in the UI console view
instead of throwing an error in the browser javascript console.

Fixes #3515

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2017-11-30 10:04:02 +00:00
..
static Correctly handle empty data set in the console view (#3521) 2017-11-30 10:04:02 +00:00
templates Align columns in Targets view (#3445) 2017-11-26 12:49:24 +08:00
bindata.go Correctly handle empty data set in the console view (#3521) 2017-11-30 10:04:02 +00:00
README.md Minor fixups to web/ui/README.md 2015-11-12 02:54:14 +01:00

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. Set the environment variable DEBUG=1 and compile Prometheus for this to work. 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.