prometheus/promql
Brian Brazil 2e1356c749 promql: Add vector function.
Currently the only way to convert a scalar to a vector is to
use absent(), which isn't very clean. This adds a vector()
function that's the inverse of scalar() and lets your optionally
set labels.

Example usage would be
vector(time() % 86400) < 3600
to filter to only the first hour of the day.
2016-01-11 16:48:14 +01:00
..
testdata promql: Add vector function. 2016-01-11 16:48:14 +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 2016-01-11 16:48:13 +01:00
engine.go promql: Add 'bool' modifier to comparison functions 2016-01-11 16:48:13 +01:00
engine_test.go Fix "go vet" errors. 2016-01-11 16:48:11 +01:00
functions.go promql: Add vector function. 2016-01-11 16:48:14 +01:00
lex.go promql: Add 'bool' modifier to comparison functions 2016-01-11 16:48:13 +01:00
lex_test.go promql: Add 'bool' modifier to comparison functions 2016-01-11 16:48:13 +01:00
parse.go promql: Add 'bool' modifier to comparison functions 2016-01-11 16:48:13 +01:00
parse_test.go promql: Add 'bool' modifier to comparison functions 2016-01-11 16:48:13 +01:00
printer.go Fix bool modifier in recording rules and printing. 2016-01-11 16:48:14 +01:00
printer_test.go Fix bool modifier in recording rules and printing. 2016-01-11 16:48:14 +01:00
promql_test.go Fix most golint warnings. 2016-01-11 16:48:11 +01:00
quantile.go Switch promql types to common/model 2015-08-25 13:49:14 +02:00
test.go Fix most golint warnings. 2016-01-11 16:48:11 +01:00