Commit Graph

301 Commits (c3f9238756d1ac8ba3521bedb6986db89e61e5cc)

Author SHA1 Message Date
Tobias Schmidt 4c3dc25e35 Fix whitespace in promql test data
9 years ago
Fabian Reinartz 235e6c554b Use ContainsRune
9 years ago
Brian Brazil 24a3ad3d16 Merge pull request #1485 from eliothedeman/master
9 years ago
eliothedeman 1543ef92b2 Adds holt-winters query function
9 years ago
beorn7 507f550cd4 Merge branch 'master' into beorn7/storage7
9 years ago
Brian Brazil 070d663948 Merge pull request #1501 from prometheus/and-dummy
9 years ago
Fabian Reinartz ab3d7a0ec0 Remove old alerting syntax
9 years ago
beorn7 4b574e8a61 Switch chunk encoding to type 2 where it was hardcoded type 1 before
9 years ago
Brian Brazil 8788701ce7 Add test for incorrect behaviour
9 years ago
Brian Brazil 39d556f0d5 Move all the operator tests into one file
9 years ago
beorn7 99854a84d7 Merge branch 'beorn7/storage6' into beorn7/storage7
9 years ago
beorn7 d0a4477446 Merge branch 'beorn7/storage3' into beorn7/storage4
9 years ago
beorn7 dad302144d Make a naked return less naked
9 years ago
beorn7 836f1db04c Improve MetricsForLabelMatchers
9 years ago
beorn7 f7fc542db6 Merge branch 'master' into beorn7/storage4
9 years ago
beorn7 3d86130d8c Merge branch 'master' into beorn7/storage3
9 years ago
Björn Rabenstein 2a2cc52828 Merge pull request #1405 from prometheus/beorn7/storage
9 years ago
Patrick Bogen 250344b344 use short variable assignment
9 years ago
Patrick Bogen 2062fbae0f rewrite operator balancing to be recursive
9 years ago
beorn7 0ea5801e47 Handle errors caused by data corruption more gracefully
9 years ago
beorn7 8766f99085 Merge branch 'beorn7/storage2' into beorn7/storage3
9 years ago
beorn7 162f6fa6f6 Merge branch 'beorn7/storage' into beorn7/storage2
9 years ago
beorn7 79a2ae2d2e Add missing test file
9 years ago
beorn7 b6840997a7 Merge branch 'beorn7/storage2' into beorn7/storage3
9 years ago
beorn7 ce58fd357b Merge branch 'beorn7/storage' into beorn7/storage2
9 years ago
beorn7 2581648f70 Separate iterators by offset
9 years ago
Fabian Reinartz 95c9706d2d Fix missing comment period.
9 years ago
Julius Volz 9ea2465b99 Fix typo in lexer test.
9 years ago
Tobias Schmidt 907b1380a7 Add tests to specify the string escaping behavior
9 years ago
beorn7 c740789ce3 Improve predict_linear
9 years ago
beorn7 454ecf3f52 Rework the way ranges and instants are handled
9 years ago
beorn7 0e202dacb4 Streamline series iterator creation
9 years ago
Julius Volz 9b6d69610a Fix various typos in comments.
9 years ago
Brian Brazil 9d0112d7cf Add without aggregator modifier.
9 years ago
Brian Brazil b7ef0b45e8 Break aggregation tests out. Add missing tests.
9 years ago
beorn7 a7408bfb47 Unify duration parsing
9 years ago
Fabian Reinartz a6935024e1 Remove old WITH clause in alert printing
9 years ago
Tobias Schmidt 1a91cd6e09 Rename matrix to range selector in external error messages
9 years ago
Tobias Schmidt 411ca4dba1 Consolidate offset modifier parsing
9 years ago
Fabian Reinartz 6b4a6962d2 Support old alerting rule syntax
9 years ago
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