Commit Graph

661 Commits (c438b501335f98e07e47f88ce9998f9f4c13485d)

Author SHA1 Message Date
Brian Brazil c77c3a8c56 promql: Limit extrapolation of delta/rate/increase
9 years ago
Brian Brazil 89760dd77d Handle NaN for min/max.
9 years ago
Brian Brazil bac1f28cad Similar to topk/bottomk, have sort/sort_desc put NaN at end.
9 years ago
Fabian Reinartz 4209ec6864 Change WITH keyword to LABELS
9 years ago
Brian Brazil 88ca82304c Make topk/bottomk prefer returning real numbers over NaN.
9 years ago
Brian Brazil edf3e123f5 Move topk/bottomk tests from legacy.
9 years ago
Fabian Reinartz af3a6661ed Implement new alerting rule syntax
9 years ago
James Sanford 5b53262b7a promql: Add clamp_max/clamp_min functions.
9 years ago
Brian Brazil a287264989 Print offsets in promql.
9 years ago
Fabian Reinartz 33aab4169c Anchor regexes in vector matching
9 years ago
Fabian Reinartz 51e8badc7f Merge pull request #1159 from prometheus/scalar-bool
9 years ago
Brian Brazil c36961130b promql: Remove scalar/scalar comparisons.
9 years ago
Brian Brazil 5740a8fade promql: Remove deprecated 2nd argument to delta()
9 years ago
Brian Brazil 965a71dc4d Merge pull request #1155 from prometheus/irate
9 years ago
Brian Brazil f08abdb48b promql: Add irate() function
9 years ago
Julius Volz 0088aa4d45 Merge pull request #1132 from prometheus/fix-quoting-and-escaping
9 years ago
Julius Volz 46c5260761 Support escape sequences in strings and add raw strings.
9 years ago
Fabian Reinartz e3b6ec9784 Switch to common/log
9 years ago
Brian Brazil 653ff71f1f promql: Reduce flakiness of concurrency test
9 years ago
Fabian Reinartz 171f50706a Fix unkeyed field errors.
9 years ago
Fabian Reinartz 36ec8ba460 Fix missing return on error
9 years ago
Fabian Reinartz e005f939fd Fix scalar construction in function
9 years ago
Fabian Reinartz eca41f5319 Run gofmt
9 years ago
Brian Brazil fa793d917e Merge pull request #1080 from prometheus/query-timeout-test
9 years ago
Brian Brazil ce7f31e03c promql: Bump sleep in query timeout test
9 years ago
Julius Volz 347630431c Merge pull request #1077 from prometheus/cleanups
9 years ago
Julius Volz af513468eb Fix some dead code, missing error checks, shadowings.
9 years ago
Brian Brazil 29de4ee2b0 Merge pull request #1078 from prometheus/whats-our-vector-victor
9 years ago
Brian Brazil 9b382647b5 Remove optional vector() 2nd argument
9 years ago
Fabian Reinartz a1617d90f4 Merge pull request #1073 from prometheus/whats-our-vector-victor
9 years ago
Brian Brazil 69f5fa0c1e promql: Add vector function.
9 years ago
Julius Volz 6d3e054692 Fix bool modifier in recording rules and printing.
9 years ago
Brian Brazil 9ec11b1847 Merge pull request #1049 from prometheus/bool-nofilter
9 years ago
Brian Brazil 29e8dc2c49 promql: Add 'bool' modifier to comparison functions
9 years ago
Julius Volz 61c42c8da0 Change relabel_replace() to do full-string matches.
9 years ago
Julius Volz 744d5d5a7a Merge pull request #1029 from prometheus/vet-fixes
9 years ago
Julius Volz 995d3b831d Fix most golint warnings.
9 years ago
Julius Volz 963ad82dcb Fix "go vet" errors.
9 years ago
Julius Volz 077a753e6b Merge pull request #1006 from prometheus/true-values
9 years ago
Fabian Reinartz d6b8da8d43 Switch promql types to common/model
9 years ago
Brian Brazil fb585e4591 promql: Remove interpolation of vector values.
9 years ago
Fabian Reinartz 1535ef1457 Replace metric.SamplePair with model.SamplePair
9 years ago
Fabian Reinartz 438e232c9b Fix grouping of import blocks
9 years ago
Fabian Reinartz 306e8468a0 Switch from client_golang/model to common/model
9 years ago
Brian Brazil 296f551418 Merge pull request #1014 from prometheus/scalar-rules
9 years ago
Brian Brazil e6a67476c2 rules: Allow recorded rules expressions to be scalars.
9 years ago
Laurie Malau cdf38ab93a Log runtime errors during query evaluation instead of panicking.
9 years ago
Julius Volz 27ed874358 Implement label_replace()
9 years ago
Fabian Reinartz 690b5f1575 Remove multi-statement queries
9 years ago
Julius Volz e324910ff2 Merge pull request #936 from prometheus/predict
9 years ago
Brian Brazil d6a80c2b76 promql: Add support for predict_linear(my_timeseries[1h], 7200)
9 years ago
Fabian Reinartz 579fdf65e2 Implement unary expression for vector types.
9 years ago
Fabian Reinartz c322422412 Merge pull request #954 from prometheus/fabxc/fuzz-fix
9 years ago
Fabian Reinartz adf109795c forbid unexpected (runtime) errors in parse tests
9 years ago
Fabian Reinartz c20e25f718 Add missing check for nil expression
9 years ago
Brian Brazil a0f0b82348 promql: Test errors aren't always ParseErr
9 years ago
Fabian Reinartz 5279d50d92 Handle parser runtime panics gracefully
9 years ago
Julius Volz 4e4b468fba Fix lexer bug treating non-Latin Unicode digits as digits.
9 years ago
Fabian Reinartz 3d67d75935 promql: implement JSON array format for scalar and string
10 years ago
Fabian Reinartz 77e8983221 promql: add MarshalJSON method for SamplePair
10 years ago
Fabian Reinartz c1d37bc55b Merge pull request #843 from prometheus/fabxc/runbook
10 years ago
Fabian Reinartz 70d7a987a7 promql: add json tags, fix query constructor.
10 years ago
Fabian Reinartz 749ae450c5 promql: add runbook to alert statement.
10 years ago
Fabian Reinartz 7f85b9b215 promql: add MarshalJSON method for ExprType.
10 years ago
Fabian Reinartz 1eff186555 Merge pull request #810 from prometheus/fabxc/lmatch
10 years ago
Fabian Reinartz 5b91ea9b36 storage: improve label matching and allow unset matching.
10 years ago
Fabian Reinartz 94cd321be1 promql: error if all label matchers are empty.
10 years ago
Fabian Reinartz fe301d7946 promql: remove global flags
10 years ago
Julius Volz 5e2d1c1464 Deprecate `keeping_extra`, rename it to `keep_common`.
10 years ago
Fabian Reinartz e7659f908c promql: remove DotGraph methods from nodes.
10 years ago
Fabian Reinartz c716d8a47b promql: fix aggregation expression String() method.
10 years ago
Fabian Reinartz c32ae22119 promql: fix missing metric in range results.
10 years ago
Fabian Reinartz 0acd44b0e3 promql: expose ParseMetric and ParseMetricSelector
10 years ago
Fabian Reinartz cb10ceac18 promql: allow scalar expressions in range queries, improve errors.
10 years ago
Fabian Reinartz ab9c98acac web/api: add initial API v1 implementation.
10 years ago
Fabian Reinartz 03b737322e promql: expose storage and query engine for tests
10 years ago
Fabian Reinartz 319068a7a6 promql: fix parsing ambiguity for serial repetitions
10 years ago
Fabian Reinartz c60e3387ef promql: fix lexing of \r as whitespaces
10 years ago
Fabian Reinartz 0de6edbdfc Move pkg/ to util/
10 years ago
Fabian Reinartz dbc0d30e3e Move string functionality to pkg/strutil
10 years ago
Fabian Reinartz ccf51b132e Move stats package to pkg/stats
10 years ago
Fabian Reinartz 3c8fbf1e15 Move test package to pkg/testutil
10 years ago
Brian Brazil f34de493d5 Add increase() function, to replace delta(..., 1).
10 years ago
Julius Volz d44a89c6e8 Implement changes() function.
10 years ago
Julius Volz 6f33ed9e59 Add resets() function to count counter resets.
10 years ago
Fabian Reinartz b7eb105ffa Remove test flags in help output
10 years ago
beorn7 3b9c421a69 Weed out all the [Gg]et* method names.
10 years ago
Fabian Reinartz ac4d63b833 Merge pull request #689 from prometheus/fabxc/qltest
10 years ago
Fabian Reinartz 0d3012a605 Migrate matrix tests, remove old test files.
10 years ago
Fabian Reinartz 71ef7ab405 Migrate remaining vector evaluation tests to new testing language.
10 years ago
Fabian Reinartz 3c22eded97 Migrate literal tests to testing language.
10 years ago
Fabian Reinartz eba07a7d3d Migrate histogram tests to test language.
10 years ago
Fabian Reinartz 03094eff04 Migrate parsing error tests.
10 years ago
Fabian Reinartz 6321964738 Add parsing and execution of new test format.
10 years ago
Fabian Reinartz a236c01457 Add time series description parsing.
10 years ago
Fabian Reinartz d122749b39 Enhance lexer testing output
10 years ago
Fabian Reinartz ce487f763e Simplify vector binary evaluation logic
10 years ago
Fabian Reinartz 8a109e061b Extract OR operation into own eval method.
10 years ago
Fabian Reinartz 2c3e9e2e87 Extract AND operation into own eval method.
10 years ago
Fabian Reinartz 4234a45d2e Merge pull request #693 from prometheus/fabxc/preload_timeout
10 years ago
Fabian Reinartz 8ea94ebb58 Check context before each preloading.
10 years ago
Fabian Reinartz 969c231191 Make parser more strict about identifiers, extract number parsing
10 years ago
Fabian Reinartz 8707c54508 Fix single quote parsing, add tests
10 years ago
Fabian Reinartz 9ab1f6c690 Limit maximum number of concurrent queries.
10 years ago
Fabian Reinartz d59d1cb2c1 Fix Error() methods.
10 years ago
Fabian Reinartz 6649306e63 Merge pull request #660 from prometheus/fabxc/pql/parse-errs
10 years ago
Fabian Reinartz 279831cdf1 Fix and improve parsing error output.
10 years ago
Fabian Reinartz fe935179cd Stop routing rule statements through the engine.
10 years ago
Fabian Reinartz 25cdff3527 Remove `name` arg from `Parse*` functions, enhance parsing errors.
10 years ago
Fabian Reinartz 5602328c7c Refactor query evaluation.
10 years ago
Fabian Reinartz 32b7595c47 Create promql package with lexer/parser.
10 years ago