mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
69f5fa0c1e
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. |
||
---|---|---|
.. | ||
testdata | ||
analyzer.go | ||
ast.go | ||
engine.go | ||
engine_test.go | ||
functions.go | ||
lex.go | ||
lex_test.go | ||
parse.go | ||
parse_test.go | ||
printer.go | ||
printer_test.go | ||
promql_test.go | ||
quantile.go | ||
test.go |