prometheus/web
Ed Schouten b3a39ccd8a Use lexicographic order to sort alerts by name.
Right now the /alerts page of Prometheus sorts alerts by severity
(firing, pending, inactive). Once multiple alerts have the same
severity, their order seems to correlate to how they are placed in the
configuration files, but not always. Looking at the code, we make use of
sort.Sort(), which is documented not to provide a stable sort. The
Less() function also only takes the alert state into account.

This change extends the Less() function to provide a lexicographic order
on both the alert state and the name. This means I can finally find the
alerts I'm looking for without using my browser's search feature.
2016-12-27 14:28:44 +01:00
..
api/v1 web/api: add targets endpoint 2016-12-05 13:13:21 +01:00
ui Use irate consistently in console template examples. (#2296) 2016-12-21 13:19:23 +00:00
federate.go web: add error counter for federation responses 2016-12-06 16:09:50 +01:00
federate_test.go web: add more federation test scenarios 2016-09-15 15:23:55 +02:00
web.go Use lexicographic order to sort alerts by name. 2016-12-27 14:28:44 +01:00
web_test.go Add missing license headers 2016-04-13 16:08:22 +02:00