Commit Graph

401 Commits (916e66edf2113dad1a3490a982bdb7653a29f2c9)

Author SHA1 Message Date
Goutham Veeramachaneni a48a018368
Make sure groups are unique in a single file
8 years ago
Goutham Veeramachaneni cea1e99f78
Add update-rules command to promtool
8 years ago
Goutham Veeramachaneni e8f55669ea Move rules to new format
8 years ago
Brian Brazil dcea3e4773 Don't append a 0 when alert is no longer pending/firing
8 years ago
Brian Brazil cc867dae60 Copy previous series and alert state more intelligently.
8 years ago
Brian Brazil 9bc68db7e6 Track staleness per rule rather than per group.
8 years ago
Brian Brazil 0451d6d31b Add unittest for rule staleness, and rules generally.
8 years ago
Brian Brazil 0400f3cfd2 Very basic staleness handling for rules.
8 years ago
Fabian Reinartz 06c2b76cd4 Merge branch 'master' into uptsdb
8 years ago
Alexey Palazhchenko b0e1ea7c6c Simplify code, fix typos. (#2719)
8 years ago
Julius Volz ac203ef0ee Add externalURL template function (#2716)
8 years ago
Julius Volz fe11c5933a Fix mutation of active alert elements by notifier (#2656)
8 years ago
Fabian Reinartz 8ffc851147 Merge branch 'master' into dev-2.0
8 years ago
Tobias Schmidt eaf33759fb Register forgotten prometheus_evaluator_iterations_total metric
8 years ago
Tobias Schmidt aaaba57184 Export number of missed rule evaluations
8 years ago
Fabian Reinartz 5772f1a7ba retrieval/storage: adapt to new interface
8 years ago
Fabian Reinartz ad9bc62e4c storage: extend appender and adapt it
8 years ago
Fabian Reinartz e94b0899ee rules: fix tests, remove model types
8 years ago
Fabian Reinartz f8fc1f5bb2 *: migrate ingestion to new batch Appender
8 years ago
Fabian Reinartz fecf9532b9 *: fix misc compile errors
8 years ago
Fabian Reinartz 622ece6273 *: fix recording tests, migrate matcher types
8 years ago
Fabian Reinartz 5817cb5bde *: migrate from model.* to promql.* types
8 years ago
Fabian Reinartz e68a3cf21f rules: update annotations on each iteration
8 years ago
Jonathan Lange d78dd3593d Set evaluation interval on Group construction
8 years ago
Jonathan Lange 31fc357cd8 Make NewGroup and Group.Eval public
8 years ago
Jonathan Lange 2a2da40223 Make rule evaluation publicly available
8 years ago
Matt Bostock 926a5ab3dd rules/manager.go: Fix race between reload and stop
8 years ago
Julius Volz c187308366 storage: Contextify storage interfaces.
8 years ago
Julius Volz ed5a0f0abe promql: Allow per-query contexts.
8 years ago
beorn7 75bae065fd Revert "Modify tests to adjust to reverting the /graph changes"
8 years ago
beorn7 f1ea5bf232 Modify tests to adjust to reverting the /graph changes
8 years ago
Julius Volz fe7b8b7fd1 Add missing license header to alerting_test.go
8 years ago
Julius Volz da7206ec29 Fix rule HTML escaping issues
8 years ago
Brian Brazil 6fc88d4b4d Remove __name__ from alerts sent to AM.
8 years ago
Dmitry Vorobev 273e457da4 web: return status code and error message for config resource
8 years ago
Brian Brazil 0509b0f2db Expand alert templates at eval time.
8 years ago
beorn7 064b57858e Consistently use the `Seconds()` method for conversion of durations
9 years ago
Fabian Reinartz f7ed2ff706 Merge pull request #1644 from prometheus/beorn7/logging
9 years ago
beorn7 b95c096a45 Fix style issues in rules/...
9 years ago
beorn7 45e5775f9b Add missing logging of out-of-order samples
9 years ago
beorn7 4b574e8a61 Switch chunk encoding to type 2 where it was hardcoded type 1 before
9 years ago
Fabian Reinartz d89c254849 Make copying alerting state safer.
9 years ago
Fabian Reinartz bfa8aaa017 Rename notification to notifier
9 years ago
beorn7 663a1550d0 Fix the instrumentation fixes
9 years ago
Tobias Schmidt f1f8317fa5 Fix detection of flapping alerts
9 years ago
Björn Rabenstein 9ea3897ea7 Merge pull request #1354 from prometheus/beorn7/storage
9 years ago
beorn7 ec08c9a391 Rework the way to communicate backpressure (AKA suspended ingestion)
9 years ago
beorn7 a7408bfb47 Unify duration parsing
9 years ago
Fabian Reinartz a6935024e1 Remove old WITH clause in alert printing
9 years ago
Fabian Reinartz b0adfea8d5 Fix swapped constants, improve instrumentation
9 years ago
Fabian Reinartz a8c38c3ac5 Don't log rule evaluation failure on shutdown
9 years ago
Fabian Reinartz 6eee86dce8 Terminate rule groups during initial sleep
9 years ago
Fabian Reinartz 26eb3ac2f8 Don't skip recording rule errors
9 years ago
Fabian Reinartz 37d80c4b25 Fix premature rule evaluation
9 years ago
Fabian Reinartz 0cf3c6a9ef Add comments, rename a method
9 years ago
Fabian Reinartz bf6abac8f4 Send resolved notifications
9 years ago
Fabian Reinartz f69e668fc4 Improve rules/ instrumentation
9 years ago
Fabian Reinartz 62075aa037 Reduce noisy no-alertmanager warning
9 years ago
Fabian Reinartz 52e5224f5a Refactor rules/ package
9 years ago
Fabian Reinartz e4fabe135a Set StartsAt to time of first firing state
9 years ago
Fabian Reinartz 7c90db22ed Use annotation based alerts in rules/
9 years ago
Fabian Reinartz e114ce0ff7 Refactor notification handler
9 years ago
Fabian Reinartz e3b6ec9784 Switch to common/log
9 years ago
Fabian Reinartz 171f50706a Fix unkeyed field errors.
9 years ago
Brian Brazil 4d196fea6b Merge pull request #1032 from prometheus/scalar-metric
9 years ago
Brian Brazil 3bcdb2bbba rules: Allow for setting labels on LHS on scalars
9 years ago
Julius Volz 995d3b831d Fix most golint warnings.
9 years ago
Fabian Reinartz d6b8da8d43 Switch promql types to common/model
9 years ago
Brian Brazil fdf0d0642e Cast value to float, as that's what the console templates expect.
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 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