prometheus/promql
Dimitar Dimitrov 9e3df532d8
Export promql.Engine.FindMinMaxTime
This function is useful to analyze promQL queries. We want to use this in Mimir to record the time range which the query touches.

I also chose to remove the `Engine` receiver because it was unnecessary, and it makes it easier to use, but happy to refactor that if you disagree.

The function is untested on its own. If you prefer to have unit tests now that its exported, I can look into adding some.

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
2023-11-02 13:17:35 +01:00
..
fuzz-data
parser ci(lint): enable godot; append dot at the end of comments 2023-10-31 19:53:38 +02:00
testdata
bench_test.go
engine.go Export promql.Engine.FindMinMaxTime 2023-11-02 13:17:35 +01:00
engine_test.go ci(lint): enable nolintlint and remove redundant comments (#12926) 2023-10-31 12:35:13 +01:00
functions.go Merge pull request #12928 from alexandear/ci-enable-godot 2023-11-01 17:15:41 +01:00
functions_test.go
fuzz.go
fuzz_test.go
promql_test.go
quantile.go
query_logger.go
query_logger_test.go
test.go
test_test.go
value.go PR feedback 2023-10-18 11:53:50 +02:00
value_test.go