mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -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. |
||
---|---|---|
.. | ||
comparison.test | ||
functions.test | ||
histograms.test | ||
legacy.test | ||
literals.test |