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 Unit tests for native histograms (#12668) 2023-08-25 23:35:42 +02:00
bench_test.go Add context argument to IndexReader.Postings (#12667) 2023-09-13 17:45:06 +02:00
engine_test.go ci(lint): enable nolintlint and remove redundant comments (#12926) 2023-10-31 12:35:13 +01:00
engine.go Export promql.Engine.FindMinMaxTime 2023-11-02 13:17:35 +01:00
functions_test.go Merge branch 'main' into linter/nilerr 2023-04-19 19:56:39 +02:00
functions.go Merge pull request #12928 from alexandear/ci-enable-godot 2023-11-01 17:15:41 +01:00
fuzz_test.go error for invalid media type should not be completely swallowed (#10186) 2022-02-08 10:57:56 +01:00
fuzz.go textparse/scrape: Add option to scrape both classic and native histograms 2023-05-13 01:32:25 +02:00
promql_test.go promql: allow tests to be imported (#12050) 2023-08-18 20:48:59 +02:00
quantile.go Revise according to code review 2023-10-06 19:09:32 +08:00
query_logger_test.go add Close for ActiveQueryTracker to close the file. 2023-04-14 14:43:23 +08:00
query_logger.go add Close for ActiveQueryTracker to close the file. 2023-04-14 14:43:23 +08:00
test_test.go Add context argument to Querier.Select (#12660) 2023-09-12 12:37:38 +02:00
test.go Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
value_test.go Shortcut ContainsSameLabelset() (#11000) 2022-07-13 15:18:10 +05:30
value.go PR feedback 2023-10-18 11:53:50 +02:00