prometheus/promql/parser
Ganesh Vernekar 9199fcb8d1
'@ <timestamp>' modifier (#8121)
This commit adds `@ <timestamp>` modifier as per this design doc: https://docs.google.com/document/d/1uSbD3T2beM-iX4-Hp7V074bzBRiRNlqUdcWP6JTDQSs/edit.

An example query:

```
rate(process_cpu_seconds_total[1m]) 
  and
topk(7, rate(process_cpu_seconds_total[1h] @ 1234))
```

which ranks based on last 1h rate and w.r.t. unix timestamp 1234 but actually plots the 1m rate.

Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2021-01-20 16:27:39 +05:30
..
ast.go '@ <timestamp>' modifier (#8121) 2021-01-20 16:27:39 +05:30
functions.go Rename package 2020-02-17 16:05:21 +01:00
generated_parser.y '@ <timestamp>' modifier (#8121) 2021-01-20 16:27:39 +05:30
generated_parser.y.go '@ <timestamp>' modifier (#8121) 2021-01-20 16:27:39 +05:30
lex.go '@ <timestamp>' modifier (#8121) 2021-01-20 16:27:39 +05:30
lex_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
parse.go '@ <timestamp>' modifier (#8121) 2021-01-20 16:27:39 +05:30
parse_test.go '@ <timestamp>' modifier (#8121) 2021-01-20 16:27:39 +05:30
printer.go '@ <timestamp>' modifier (#8121) 2021-01-20 16:27:39 +05:30
printer_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
value.go promql: use explicit type declare instead of string. (#7716) 2020-08-02 09:57:38 +01:00