prometheus/web
David Coles 1591ebf985 ui: Fix hover when metric has null value. (#4906)
When a metric has a null value, number formatters like
`humanizeNoSmallPrefix` will throw "Uncaught TypeError: Cannot read
property 'toPrecision' of null".

This is fixed by explicitly checking for `null` and returning the string
"null".

Note: This is usually not seen as rickshaw doesn't show annotations for
null values, but still calls the formatter.

Signed-off-by: David Coles <coles.david@gmail.com>
2018-11-25 14:16:48 +08:00
..
api update promlog to latest version (#4876) 2018-11-23 14:22:40 +01:00
ui ui: Fix hover when metric has null value. (#4906) 2018-11-25 14:16:48 +08:00
federate.go Add SelectParams to Select for federation (#4546) 2018-08-28 11:23:31 +01:00
federate_test.go Fix spelling mistakes found by codespell (#4065) 2018-04-27 13:04:02 +01:00
web.go Allow setting the Prometheus instance document title through a flag. (#4841) 2018-11-21 12:45:06 +08:00
web_test.go web/v1/api: add tests for admin actions (#4767) 2018-11-15 14:22:16 +01:00