mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
Presumably, this will help with Loki alerts, but the added functionality is also generally useful. For one, this enables `parseDuration` to also accept negative duration (as that's something that is also used in PromQL by now). This also adds a function `now` to return the evaluation time of the template (as seconds since epoch AKA Unix time) and a function `toDuration` (akin to `toTime`), which creates a Go `time.Duration` from a duration in seconds. --------- Signed-off-by: Dmitry Ponomaryov <me@halje.ru> Signed-off-by: Dmitry Ponomaryov <iamhalje@gmail.com> |
||
|---|---|---|
| .. | ||
| command-line | ||
| configuration | ||
| images | ||
| querying | ||
| feature_flags.md | ||
| federation.md | ||
| getting_started.md | ||
| http_sd.md | ||
| index.md | ||
| installation.md | ||
| management_api.md | ||
| migration.md | ||
| stability.md | ||
| storage.md | ||