Commit Graph

332 Commits (4648f4c1560a0fc804e105e8208325aafb051a3e)

Author SHA1 Message Date
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 e6a67476c2 rules: Allow recorded rules expressions to be scalars.
9 years ago
Fabian Reinartz 7a67472fc1 Resolve relative paths on configuration loading
9 years ago
Fabian Reinartz feb8a03503 rules: load rule files relative to a base dir
10 years ago
Julius Volz fcff35b43e Consolidate external reachability flags into one.
10 years ago
Fabian Reinartz f06cf664e1 rules: cleanup alerting test
10 years ago
Fabian Reinartz 9bd4f6d017 rules: preserve alert state across reloads.
10 years ago
Fabian Reinartz 4625485b84 rules: move rules*.go contents to manager*.go
10 years ago
Fabian Reinartz 749ae450c5 promql: add runbook to alert statement.
10 years ago
Julius Volz d868264bb8 Improve UI of /alerts page.
10 years ago
Fabian Reinartz fe301d7946 promql: remove global flags
10 years ago
Fabian Reinartz 5e13880201 General cleanup of rules.
10 years ago
Fabian Reinartz 75c920c95e Remove DotGraph method from Rule interface
10 years ago
Fabian Reinartz 83d07516e8 Remove EvalRaw methods from Rule interface
10 years ago
Fabian Reinartz 280d11dca8 main: exit on invalid rule files on startup.
10 years ago
Fabian Reinartz 0de6edbdfc Move pkg/ to util/
10 years ago
Fabian Reinartz 02717e6fde Remove generic set type
10 years ago
Fabian Reinartz dbc0d30e3e Move string functionality to pkg/strutil
10 years ago
Fabian Reinartz f45a5cab60 Move templates package to pkg/template
10 years ago
Fabian Reinartz c44ac7bc26 Load rule files from entire directories
10 years ago
Julius Volz d7c015c149 Convert pathPrefix to not have trailing slash.
10 years ago
Julius Volz ff53d10849 Fix double slash in GeneratorURL sent to alertmanager.
10 years ago
Julius Volz 267fd34156 Switch Prometheus to use github.com/prometheus/log.
10 years ago
Fabian Reinartz e2ed921505 Merge branch 'master' into fabxc/servdisc
10 years ago
Mitsuhiro Tanda 3e914a8cb1 fix graph links with path prefix
10 years ago
Fabian Reinartz bb540fd9fd Implement config reloading on SIGHUP.
10 years ago
Fabian Reinartz fe935179cd Stop routing rule statements through the engine.
10 years ago
Fabian Reinartz 8d7c479fed Merge pull request #658 from prometheus/fabxc/pql/rules-manager
10 years ago
Fabian Reinartz 479891c9be Rename RuleManager to Manager, remove interface.
10 years ago
Fabian Reinartz 25cdff3527 Remove `name` arg from `Parse*` functions, enhance parsing errors.
10 years ago
Fabian Reinartz 3ca11bcaf5 Switch Prometheus to promql package.
10 years ago
Ceesjan Luiten 0e18784c64 Make all paths absolute to support proxies
10 years ago
Brian Brazil 941f585164 Avoid +InfYs and similar, just display +Inf.
10 years ago
beorn7 a075900f9a Merge branch 'beorn7/persistence' into beorn7/ingestion-tweaks
10 years ago
Fabian Reinartz 624f27f4b6 Add ln, log2, log10 and exp functions to the query language.
10 years ago
Julius Volz b2651027fc Fix special value handling in division and modulo.
10 years ago
beorn7 be11cb2b07 Remove the sample ingestion channel.
10 years ago
beorn7 13fcf1ddbc Implement double-delta encoded chunks.
10 years ago
beorn7 9e85ab0eef Apply the new signature/fingerprinting functions from client_golang.
10 years ago
Fabian Reinartz 182de6b99f Fix unary +/- expressions.
10 years ago
Fabian Reinartz 6f754073d5 Add OR operation and vector matching options.
10 years ago
Julius Volz 0ac931aed1 Also support parsing float formats like "2.".
10 years ago
Julius Volz c2ab54e9a6 Support scientific notation and special float values.
10 years ago
beorn7 1a61bcae07 Fix plural of 'histogram'.
10 years ago
beorn7 17443d288b Avoid copying of the COWMetric if we already have the metric available.
10 years ago
beorn7 9e7c3e3bcd Add the histogram_quantile function.
10 years ago
Julius Volz 42601acfde Replace labelsToKey() with metric Fingerprint (fixes grouping bug).
10 years ago
Julius Volz 7fefccd929 Write() directly into hash and use model.SeparatorByte.
10 years ago
Julius Volz 645cf57bed Fix aggregation grouping key calculation.
10 years ago
Julius Volz 15b2b5aa66 Add tests for invalid uses of "offset".
10 years ago
Julius Volz 67e20acc6c Lower-case some package-internal names.
10 years ago
Julius Volz 72d7b325a1 Implement offset operator.
10 years ago
Brian Brazil 60271d58bf Change the 2nd argument of round to toNearest.
10 years ago
Julius Volz 82613527f3 Remove unnecessary float64() conversion in round().
10 years ago
Marko Mikulicic 8fdacbdf17 Add floor, ceil and round functions. Closes #402
10 years ago
Fabian Reinartz fa1e90003b Query timeout added.
10 years ago
Bjoern Rabenstein 26e22e6ad6 Fix rule manager shutdown.
10 years ago
Julius Volz d4374a9265 More efficient JSON query result format.
10 years ago
Brian Brazil a31730e88b Make 2nd arg to delta optional. Add a deriv() function.
10 years ago
Bjoern Rabenstein 5859b74f1b Clean up license issues.
10 years ago
Bjoern Rabenstein b09453af1d Adjust to new client_golang API.
10 years ago
Julius Volz bb1e49383e Log rule evalation errors.
10 years ago
Julius Volz d6b9e97655 Remove extraction.Result type, simplify code.
10 years ago
Julius Volz 9a4ca68a61 Add metrics for rule evaluation failures.
10 years ago
Brian Brazil ffa2e73803 Fix regression from 5e8d57bec1
10 years ago
Julius Volz cc27fb8aab Rename remaining all-caps constants in AST layer.
10 years ago
Julius Volz 895523ad14 Include necessary Makefile.INCLUDE from rules/Makefile.
10 years ago
Julius Volz 2ade9d40cf Clarify why we need int constants for expression types.
10 years ago
Julius Volz 00a2a93a05 Add regression tests for metrics mutations in AST.
10 years ago
Julius Volz c9618d11e8 Introduce copy-on-write for metrics in AST.
10 years ago
Bjoern Rabenstein b1e4956142 Apply a giant code cleanup.
10 years ago
Bjoern Rabenstein fee88a7a77 Remove the remaining races, new and old.
10 years ago
Bjoern Rabenstein 7d11019aa2 Squash a few trivial TODOs.
10 years ago
Julius Volz 6eecee55b7 Fix acronym caps in GeneratorURL.
10 years ago
Bjoern Rabenstein 0ae1d8889a Fix tests after merge.
10 years ago
Julius Volz b7bf11230a Add absent() function.
10 years ago
Julius Volz 3d47f94149 Drop metric names after transformations.
10 years ago
Bjoern Rabenstein 14bda4180c Changes after pair code review.
10 years ago
Bjoern Rabenstein 006b5517e2 Simplify makefiles.
10 years ago
Bjoern Rabenstein 74c143c4c9 Improve scraper shutdown time.
10 years ago
Julius Volz 0712d738d1 Allow alternative "by"-clause position in grammar.
10 years ago
Julius Volz 0e48c18bbf Allow omitting the metric name in queries.
10 years ago
Bjoern Rabenstein 096fa0f8b2 Squash a number of TODOs.
10 years ago
Bjoern Rabenstein b3ed9aa7a2 Clean up start-up and shut-down.
10 years ago
Bjoern Rabenstein 38fc24d0ed Fix targetpool_test.go and other tests.
10 years ago
Julius Volz 7f5d3c2c29 Fix and improve the fp locker.
10 years ago
Julius Volz 358f97791d Minor cleanups.
10 years ago
Bjoern Rabenstein f5f9f3514a Major code cleanup.
10 years ago
Julius Volz e7ed39c9a6 Initial experimental snapshot of next-gen storage.
10 years ago
Julius Volz 85497e3f38 Add function to drop common labels in a vector.
10 years ago
Julius Volz 3fdb74e571 Add more topk() / bottomk() tests.
10 years ago
Julius Volz c582ae73c2 Implement topk() and bottomk() functions.
10 years ago
Bjoern Rabenstein 1909686789 Make metrics exported by the Prometheus server itself more consistent.
10 years ago
Julius Volz 00b9489f1c Fix time() behavior.
10 years ago
Julius Volz c5984f1818 Add abs() and over-time aggregation functions.
10 years ago
Brian Brazil f525ca5d9e Let consoles get graph links from experssions.
10 years ago
Bjoern Rabenstein 8956faeccb Migrate to new client_golang.
10 years ago
Brian Brazil 960ede66dc Use html/template for console templates and add template libary support.
10 years ago
Brian Brazil e041c0cd46 Add console and alert templates with access to all data.
11 years ago
Bjoern Rabenstein ca6a4fccef Weed out our homegrown test.Tester.
11 years ago
Julius Volz 6297a405f2 Do not indent API JSON responses.
11 years ago
Julius Volz 01f652cb4c Separate storage implementation from interfaces.
11 years ago
Julius Volz d411a7d810 Allow reversing vector and scalar arguments in binops.
11 years ago
Julius Volz c7c0b33d0b Add regex-matching support for labels.
11 years ago
Bjoern Rabenstein 0a65b691cc Disallow ":" in identifiers, but still allow it in metric names.
11 years ago
Julius Volz 86fc13a52e Convert metric.Values to slice of values.
11 years ago
Julius Volz bc6ee6611e Rename persistence_adapter.go -> view_adapter.go
11 years ago
Julius Volz 3f226c9724 Rename {Scalar,Vector}Literal to {Scalar,Vector}Selector.
11 years ago
Bjoern Rabenstein 682cf6fc51 Simplify QueryAnalizer.Visit().
11 years ago
Bjoern Rabenstein fd63500ed3 Make rules/ast golint clean.
11 years ago
Björn Rabenstein 59febe771a Merge "Minor code cleanups."
11 years ago
Julius Volz c4adfc4f25 Minor code cleanups.
11 years ago
Julius Volz 7e9ecaac3a Add count_scalar() function.
11 years ago
Julius Volz 0378c2ca1f Nonexistent labels in BY-clauses shouldn't propagate to result.
11 years ago
Julius Volz 6dc36d0c3e Don't keep extra labels in aggregations by default.
11 years ago
Julius Volz 20bfaf80ab Merge "Display filename when encountering bad rule file."
11 years ago
Julius Volz 3bf3a555b2 Merge "add evalDuration histogram and ruleCount counter for rules"
11 years ago
Stuart Nelson b75adfebad add evalDuration histogram and ruleCount counter for rules
11 years ago
Julius Volz 77a79d1fc0 Display filename when encountering bad rule file.
11 years ago
Julius Volz fb44580110 Cleanup/fix program termination sequence.
11 years ago
Julius Volz 740d448983 Use custom timestamp type for sample timestamps and related code.
11 years ago
Julius Volz c7daedc840 Merge "Add scalar() function."
11 years ago
Julius Volz be8024e18c Add scalar() function.
11 years ago
Julius Volz 93a8d03221 Merge "Add alert-expression console links to notifications."
11 years ago
Julius Volz 1eb1ceac8c Add alert-expression console links to notifications.
11 years ago
Matt T. Proud 7db518d3a0 Abstract high watermark cache into standard LRU.
11 years ago
Julius Volz 0003027dce Add needed trailing spaces in logs.
11 years ago
Julius Volz aa5d251f8d Use github.com/golang/glog for all logging.
11 years ago
Julius Volz 3b970c5133 Add variable interpolation to notification messages.
11 years ago
Julius Volz 35ee2cd3cb Add alertmanager notification support to Prometheus.
11 years ago
Julius Volz 81f0b85013 Return [] instead of null for empty result vectors.
12 years ago
Julius Volz 64b0ade171 Swap rules lexer for much faster one.
12 years ago
Julius Volz d2da21121c Implement getValueRangeAtIntervalOp for faster range queries.
12 years ago
Matt T. Proud 30b1cf80b5 WIP - Snapshot of Moving to Client Model.
12 years ago
Julius Volz 8ee7947b1e Ensure metric name is dropped correctly from alert labels in UI.
12 years ago
Julius Volz 0226d1ac7a Implement alerts dashboard and expression console links.
12 years ago
Julius Volz ba29d07901 Show loaded rules in Status dashboard.
12 years ago
Julius Volz fc97e688c6 Improve printing of rules and expressions.
12 years ago
Julius Volz 74cb676537 Implement Stringer interface for rules and all their children.
12 years ago
Matt T. Proud 2c3df44af6 Ensure database access waits until it is started.
12 years ago
Julius Volz 51689d965d Add debug timers to instant and range queries.
12 years ago
Julius Volz adb87816f4 Put RuleManager concurrency in hands of caller, fix races.
12 years ago
Julius Volz 138334fb31 Fix handling of negative deltas for non-counter values.
12 years ago
Julius Volz 66d4620061 Don't assume delta has at least one sample per vector element.
12 years ago
Julius Volz 21c3be0814 Skip any empty range/boundary elements, not only nil ones.
12 years ago
Matt T. Proud c10780c966 Introduce telemetry for rule evaluator durations.
12 years ago
Julius Volz 750f862d9a Use GetBoundaryValues() for non-counter deltas.
12 years ago
Julius Volz 5b105c77fc Repointerize fingerprints.
12 years ago
Matt T. Proud 8f4c7ece92 Destroy naked returns in half of corpus.
12 years ago