prometheus/promql
Julien Pivotto 9adad8ad30 Remove MaxConcurrent from the PromQL engine opts (#6712)
Since we use ActiveQueryTracker to check for concurrency in
d992c36b3a it does not make sense to keep
the MaxConcurrent value as an option of the PromQL engine.

This pull request removes it from the PromQL engine options, sets the
max concurrent metric to -1 if there is no active query tracker, and use
the value of the active query tracker otherwise.

It removes dead code and also will inform people who import the promql
package that we made that change, as it breaks the EngineOpts struct.

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-01-28 20:38:49 +00:00
..
fuzz-data textparse: Add fuzzing and fix bug caught 2017-07-07 11:12:17 +02:00
testdata PromQL: Fix string and parentheses handling in engine (#6612) 2020-01-15 18:31:58 +01:00
ast.go PromQL: Various small improvements in the parser (#6652) 2020-01-17 15:16:58 +00:00
bench_test.go Remove MaxConcurrent from the PromQL engine opts (#6712) 2020-01-28 20:38:49 +00:00
engine.go Remove MaxConcurrent from the PromQL engine opts (#6712) 2020-01-28 20:38:49 +00:00
engine_test.go Remove MaxConcurrent from the PromQL engine opts (#6712) 2020-01-28 20:38:49 +00:00
functions.go PromQL: Various small improvements in the parser (#6652) 2020-01-17 15:16:58 +00:00
functions_test.go Remove MaxConcurrent from the PromQL engine opts (#6712) 2020-01-28 20:38:49 +00:00
fuzz.go fix fuzz targets (#5851) 2019-08-12 20:47:57 +02:00
generated_parser.y PromQL: Various small improvements in the parser (#6652) 2020-01-17 15:16:58 +00:00
generated_parser.y.go PromQL: Various small improvements in the parser (#6652) 2020-01-17 15:16:58 +00:00
lex.go PromQL: Use PositionRange in parser errors (#6634) 2020-01-15 20:01:49 +00:00
lex_test.go Fix order of testutil.Equals (#6695) 2020-01-27 12:21:59 +00:00
parse.go PromQL: Various small improvements in the parser (#6652) 2020-01-17 15:16:58 +00:00
parse_test.go Fix order of testutil.Equals (#6695) 2020-01-27 12:21:59 +00:00
printer.go PromQL: Various small improvements in the parser (#6652) 2020-01-17 15:16:58 +00:00
printer_test.go fix subquery with offset conversion to string (#6373) 2019-11-26 06:45:51 +00:00
promql_test.go promql: Move tests to testutil (#6103) 2019-10-09 18:06:53 -06:00
quantile.go func name ref correct "qauntile" -> "quantile" (#5834) 2019-08-06 06:11:16 +01:00
query_logger.go Remove MaxConcurrent from the PromQL engine opts (#6712) 2020-01-28 20:38:49 +00:00
query_logger_test.go promql: make active query tracker context-aware (#6701) 2020-01-27 22:29:44 +00:00
test.go Remove MaxConcurrent from the PromQL engine opts (#6712) 2020-01-28 20:38:49 +00:00
test_test.go Fix some spelling issues (#5361) 2019-03-14 14:38:54 +00:00
value.go promql: fix typo in value.go (#6491) 2019-12-19 22:30:32 +00:00