mirror of https://github.com/prometheus/prometheus
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.pull/1073/head
parent
1ef5ed0cf2
commit
69f5fa0c1e
Loading…
Reference in new issue