prometheus/promql
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
..
fuzz-data textparse: Add fuzzing and fix bug caught 2017-07-07 11:12:17 +02:00
parser '@ <timestamp>' modifier (#8121) 2021-01-20 16:27:39 +05:30
testdata '@ <timestamp>' modifier (#8121) 2021-01-20 16:27:39 +05:30
bench_test.go Add context to Appender interface 2020-07-24 19:40:51 +05:30
engine_test.go '@ <timestamp>' modifier (#8121) 2021-01-20 16:27:39 +05:30
engine.go '@ <timestamp>' modifier (#8121) 2021-01-20 16:27:39 +05:30
functions_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
functions.go '@ <timestamp>' modifier (#8121) 2021-01-20 16:27:39 +05:30
fuzz.go Fuzz: limit input size (#7317) 2020-05-31 09:42:56 +02:00
promql_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
quantile.go Fix off-by-one error in funcHistogramQuantile / ensureMonotonic (#7393) 2020-06-15 11:32:10 +01:00
query_logger_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
query_logger.go promql: Swap order of parseBrokenJSON. (#7718) 2020-08-02 09:48:57 +01:00
test_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
test.go '@ <timestamp>' modifier (#8121) 2021-01-20 16:27:39 +05:30
value.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00