prometheus/promql
Brian Brazil 29e8dc2c49 promql: Add 'bool' modifier to comparison functions
When doing comparison operations on vectors, filtering
sometimes gets in the way and you have to go to a fair bit of
effort to workaround it in order to always return a result.
The 'bool' modifier instead of filtering returns 0/1 depending
on the result of the compairson.

This is also a prerequisite to removing plain scalar/scalar comparisons,
as it maintains the current behaviour under a new syntax.
2015-09-02 14:51:44 +01:00
..
testdata promql: Add 'bool' modifier to comparison functions 2015-09-02 14:51:44 +01:00
analyzer.go Fix grouping of import blocks 2015-08-22 09:42:45 +02:00
ast.go promql: Add 'bool' modifier to comparison functions 2015-09-02 14:51:44 +01:00
engine_test.go Log runtime errors during query evaluation instead of panicking. 2015-08-19 16:56:41 +02:00
engine.go promql: Add 'bool' modifier to comparison functions 2015-09-02 14:51:44 +01:00
functions.go Switch promql types to common/model 2015-08-25 13:49:14 +02:00
lex_test.go promql: Add 'bool' modifier to comparison functions 2015-09-02 14:51:44 +01:00
lex.go promql: Add 'bool' modifier to comparison functions 2015-09-02 14:51:44 +01:00
parse_test.go promql: Add 'bool' modifier to comparison functions 2015-09-02 14:51:44 +01:00
parse.go promql: Add 'bool' modifier to comparison functions 2015-09-02 14:51:44 +01:00
printer_test.go Deprecate keeping_extra, rename it to keep_common. 2015-06-12 14:21:05 +02:00
printer.go Switch promql types to common/model 2015-08-25 13:49:14 +02:00
promql_test.go Migrate matrix tests, remove old test files. 2015-05-18 17:50:12 +02:00
quantile.go Switch promql types to common/model 2015-08-25 13:49:14 +02:00
test.go Switch promql types to common/model 2015-08-25 13:49:14 +02:00