Commit Graph

617 Commits (628bbd2682802d6774f7a20d8569c7790dac2e0b)

Author SHA1 Message Date
Trevor Whitney c3e0a83725
rules: no longer force CounterResetHint to Gauge
2 years ago
Charles Korn 3db98d7dde
Avoid unnecessary allocations in recording rule evaluation (#11812)
2 years ago
Bryan Boreham 3f7ba22bde rules: two places need to call EmptyLabels
2 years ago
Julien Pivotto 259bb5c692
Merge pull request #11826 from dannykopping/dannykopping/rule-eval
2 years ago
Justin Lei af1d9e01c7
Refactor tsdbutil for tests/native histograms (#11948)
2 years ago
Danny Kopping 98c70e1817
Correcting NewAlertingRule args
2 years ago
Danny Kopping df078e0a84
Merge branch 'main' into dannykopping/rule-eval
2 years ago
Julien Pivotto e811d14963 Add comments
2 years ago
Danny Kopping c4ca791f18
Appeasing the linter
2 years ago
Danny Kopping 6486d28c7a
Panic if rule type was not expected
2 years ago
Julien Pivotto c0724f4e62 New test
2 years ago
Julien Pivotto 2c408289f8 Add stabilizing to UI
2 years ago
Julien Pivotto 5ad74e6e71 Add tests
2 years ago
Julien Pivotto ce55e5074d Add 'keep_firing_for' field to alerting rules
2 years ago
Ganesh Vernekar d82ea2eb1c
Merge pull request #11838 from codesome/histo-rec
2 years ago
Ganesh Vernekar 98a0523e4a
rules: Test native histograms in recording rules
2 years ago
Ganesh Vernekar 53a5071a72
rules: Support native histograms
2 years ago
Danny Kopping 4d8478d9ac
Add license header to appease CI
2 years ago
Danny Kopping 72527b5f12
Refactoring for simplicity
2 years ago
Danny Kopping d8f3e7d16c
gofumpt
2 years ago
Danny Kopping 79300340af
Adding recording/alerting rule origin context
2 years ago
Ganesh Vernekar f1a332c496
rules: Consider ErrTooOldSample in expected errors
2 years ago
Bryan Boreham cdbe7f462b Update package rules for new labels.Labels type
2 years ago
Bryan Boreham 3c7de69059 storage: allow re-use of iterators
2 years ago
Julius Volz 1a2c645dfa Correctly handle error unwrapping in rules and remote write receiver
2 years ago
Dimitar Dimitrov 03ab8dcca0
Add comments on EvalTimestamp
2 years ago
Ganesh Vernekar 648be89822
Merge remote-tracking branch 'upstream/main' into fix-conflict
2 years ago
Ganesh Vernekar 46b26c4f09
Fix notifier relabel changing the labels of active alerts (#11427)
2 years ago
Jesus Vazquez e934d0f011 Merge 'main' into sparsehistogram
2 years ago
Dimitar Dimitrov 3fb881af26
Simplify rule group's EvalTimestamp formula
2 years ago
Bryan Boreham 8297f5cb6b rules: in tests use labels.FromStrings
2 years ago
Cosrider bef6556ca5
delete redundant alias (#11180)
2 years ago
Bryan Boreham 8b863c42dd
Optimise relabeling by re-using memory (#11147)
2 years ago
beorn7 c9fd3c235d Merge branch 'main' into sparsehistogram
2 years ago
Jimmie Han a5fea2cdd0
Use atomic field avoid (*AlertingRule).mtx wait when template expanding (#10858)
2 years ago
beorn7 28f028e938 Merge branch 'main' into sparsehistogram
2 years ago
Matthieu MOREL ddfa9a7cc5
refactor (rules): move from github.com/pkg/errors to 'errors' and 'fmt' (#10855)
2 years ago
beorn7 40ad5e284a Merge branch 'main' into beorn7/sparsehistogram
2 years ago
Julien Pivotto 3a56817a30
Rules: set otel status to ERROR when a rule fails (#10745)
3 years ago
Julien Pivotto 0d94cdf107
rules: remove classic UI code (#10730)
3 years ago
Łukasz Mierzwa d3c9c4f574
Stop rule manager before TSDB is stopped (#10680)
3 years ago
beorn7 3bc711e333 Merge branch 'main' into sparsehistogram
3 years ago
Matthieu MOREL e2ede285a2
refactor: move from io/ioutil to io and os packages (#10528)
3 years ago
beorn7 7ee1836ef5 Merge branch 'main' into sparsehistogram
3 years ago
Wilbert Guo 83a2e52bc2
Add SyncForState Implementation for Ruler HA (#10070)
3 years ago
beorn7 4210aac74a Merge branch 'main' into sparsehistogram
3 years ago
Alan Protasio 606ef33d91 Track and report Samples Queried per query
3 years ago
Alvin Lin cd739214dd
Log rule name when evaluating rule groups' Eval function logs anything (#10454)
3 years ago
Matej Gera 2c61d29b2a
Tracing: Migrate to OpenTelemetry library (#9724)
3 years ago
Björn Rabenstein 7e42acd3b1
tsdb: Rework iterators (#9877)
3 years ago
beorn7 5d4db805ac Merge branch 'main' into sparsehistogram
3 years ago
Björn Rabenstein 4c56a193c5
Merge pull request #9478 from prometheus/beorn7/pkg-deprecation
3 years ago
beorn7 c954cd9d1d Move packages out of deprecated pkg directory
3 years ago
Bryan Boreham 26d8ae0e41 Rules: simplify map key for stale series detection
3 years ago
Yijie Qin 6fce45838a
Add access function for restoration state of alerting rule (#9665)
3 years ago
Ganesh Vernekar c8b267efd6
Get histograms from TSDB to the rate() function implementation
3 years ago
Mateusz Gozdek 1a6c2283a3 Format Go source files using 'gofumpt -w -s -extra'
3 years ago
Levi Harrison d81bbe154d
Rule alerts/series limit updates (#9541)
3 years ago
Levi Harrison dc2f1993d8
Limit number of alerts or series produced by a rule (#9260)
3 years ago
George Robinson 049b4f4f13
Support customization of template options in TemplateExpander (#9290)
3 years ago
Levi Harrison 8c29046ab2
Remove unneeded state modifications
3 years ago
Michal Wasilewski 3f686cad8b
fixes yamllint errors
4 years ago
Levi Harrison b5f6f8fb36 Switched to go-kit/log
4 years ago
Levi Harrison 26274527df
Updated/added tests
4 years ago
Levi Harrison 17ea8d006a
Added external URL access
4 years ago
Owen Diehl 23999df27c expose rule metrics fields
4 years ago
Goutham Veeramachaneni 2efdf660b1
Increase evaluation failures on Commit() (#8770)
4 years ago
Björn Rabenstein 9549a15c6f
Merge pull request #7675 from JessicaGreben/jg/11-retroactive-rule-eval
4 years ago
Goutham Veeramachaneni 4b5ab80ca6
[rule] Update rule health for append/commit fails (#8619)
4 years ago
jessicagreben 78e84aed89 resolve merge conflict
4 years ago
Tom Wilkie 7369561305
Combine Appender.Add and AddFast into a single Append method. (#8489)
4 years ago
jessicagreben ac06d0a657 merge master/resolve conflict
4 years ago
jessicagreben 75654715d3 fix panics
4 years ago
jessicagreben 6980bcf671 unexport backfiller
4 years ago
Julien Pivotto 6c56a1faaa
Testify: move to require (#8122)
4 years ago
Julien Pivotto 1282d1b39c
Refactor test assertions (#8110)
4 years ago
Julien Pivotto 4e5b1722b3
Move away from testutil, refactor imports (#8087)
4 years ago
jessicagreben 36ac0b68f1 merge master, fix conflicts
4 years ago
Łukasz Mierzwa 19c190b406
Add a rule_group_samples metric (#7977)
4 years ago
李国忠 4a52faf2ae
Unnecessary go routine spawn. (#7951)
4 years ago
jessicagreben dfa510086b add alignment, mv rule importer to promtool dir, add queryRange
4 years ago
Anonymous 8219b442c8
rules: Remove redundant RLock to avoid double RLock (#7183)
4 years ago
johncming 2f2a51a43a
web/api/v1: make names consistent. (#7841)
4 years ago
Goutham Veeramachaneni cb830b0a9c
Label rule_group_iterations metric with group name (#7823)
4 years ago
johncming 362080ba28
rules: add evaluationTimestamp when copy state. (#7775)
4 years ago
Callum Styan c7a17f6491
Add additional tag/log to rules Manager Eval trace span. (#7708)
4 years ago
Annanay 9bba8a6eae Merge branch 'master' into appender-context
4 years ago
Julien Pivotto e76c436e9c
Goleak in discoveries, scrape, rules (#7662)
4 years ago
Annanay 7f98a744e5 Add context to Appender interface
4 years ago
Owen Diehl 9ccedc0407
Arbitrary rule & group loading (#7569)
4 years ago
Julien Pivotto b83cbacbdd
Rule manager: remove blocking channel in mail (#7631)
4 years ago
johncming a69a8b931f
rules: fix bug for unknown alert state. (#7599)
4 years ago
Guangwen Feng ad9449d1f1
Add unit test case for func HasAlertingRules in manager.go (#7502)
4 years ago
Guangwen Feng 487f1e07ff
Add unit test case for func State in alerting.go (#7476)
4 years ago
Frederic Branczyk d17d88935c
rules: Use narrower interface for rule manager loading of for state (#7472)
4 years ago
Kemal Akkoyun 66dfb951c4
*: Consistent Error/Warning handling for SeriesSet iterator: Allowing Async Select (#7251)
5 years ago
Brian Brazil 5368066b58
Give a bit more slack for alertmanager send failures. (#7228)
5 years ago
Julien Pivotto fc3fb3265a
Merge pull request #7145 from prometheus/release-2.17
5 years ago
Chris Marchbanks a7b449320d
Fix updating rule manager never finishing (#7138)
5 years ago
ZouYu 2b7437d60e
Fix some warnings: 'redundant type from array, slice, or map composite literal' (#7109)
5 years ago
Marek Slabicki 8224ddec23
Capitalizing first letter of all log lines (#7043)
5 years ago
Ben Ye 00730bfee7
add rule_group label to rule evaluation metrics (#7094)
5 years ago
Muhammad Falak R Wani 2d1a80aa82
rules: manager: clarify doc string for NewGroupMetrics (#7084)
5 years ago
Brian Brazil 7646cbca32
Use .UTC everywhere we use time.Unix (#7066)
5 years ago
Bartlomiej Plotka c4eefd1b3a storage: Removed SelectSorted method; Simplified interface; Added requirement for remote read to sort response.
5 years ago
Björn Rabenstein 1da83305be
Merge pull request #7009 from prometheus/release-2.17
5 years ago
Julien Pivotto 8907ba6235 Make TSDB use storage errors
5 years ago
Björn Rabenstein d80b0810c1
Move crucial actions to defer (#6918)
5 years ago
Bartlomiej Plotka fe802f29c9 storage: Removed SelectSorted method; Simplified interface; Added requirement for remote read to sort response.
5 years ago
Julien Pivotto 2051ae2e6a Revert "Fix race condition in Rule manager.Update() function"
5 years ago
fuling 8b11d2cfb6 Fix race condition in Rule manager.Update() function
5 years ago
Tobias Guggenmos 4835bbf376
Merge branch 'master' into split_parser
5 years ago
Bartlomiej Plotka 34426766d8 Unify Iterator interfaces. All point to storage now.
5 years ago
Tobias Guggenmos 6c00f2ffcb Comment fixes
5 years ago
Tobias Guggenmos 20b1f596f6 Fix build errors in rest of prometheus
5 years ago
Julien Pivotto 135cc30063
rules: Make deleted rule series as stale after a reload (#6745)
5 years ago
Julien Pivotto 0e912faf4f
rules: Cleanup unused function alert.Duration (#6734)
5 years ago
Julien Pivotto f82d55e79f
Refactor and simplify rule_group_interval_seconds (#6711)
5 years ago
Julien Pivotto 9adad8ad30 Remove MaxConcurrent from the PromQL engine opts (#6712)
5 years ago
Julien Pivotto 56ebd5afde Delete prometheus_rule_group metrics when groups are removed (#6693)
5 years ago
Julien Pivotto cf42888e4d Fix order of testutil.Equals (#6695)
5 years ago
Julien Pivotto 5f27ac3583 Refactor query log fields (#6694)
5 years ago
Harkishen Singh 84e6459c4d Adds support for line-column numbers for invalid rules, promtool (#6533)
5 years ago
Julien Pivotto 0011bba19b Query Log: add origin of the rules (#6592)
5 years ago
Julien Pivotto e079c9ed45 manager: add full stops on comments
5 years ago
alburthoffman 156dcb8cca avoid stopping rule groups if new rule groups are as same as old rule… (#6450)
5 years ago
Julien Pivotto 2d7c8069d0 Check that rules don't contain metrics with the same labelset (#6469)
5 years ago
Simon Pasquier 06066a3619
*: improve error messages when parsing bad rules (#5965)
5 years ago
Brian Brazil e62f30d497
Correctly handle empty labels from alert templates. (#5845)
5 years ago
Chris Marchbanks 0685eb5395
Refactor testutil.NewStorage into a new package
5 years ago
Brian Brazil 2184b79763
Mark deleted rule's series as stale on next evaluation. (#5759)
5 years ago
AllenZMC 5c2c9a03e9 fix word 'consequentally' to 'consequently' (#5827)
5 years ago
beorn7 dd81912554 Add objectives to Summaries
6 years ago
pbhudiaBAE 43953b105b Sorting alerts by group name in /alerts (#5448)
6 years ago
Yao Zengzeng 5544cb252a fix some mistakes in comments (#5533)
6 years ago
Simon Pasquier 45506841e6
*: enable all default linters (#5504)
6 years ago
Bjoern Rabenstein 76102d570c Add test for external labels in label template
6 years ago
Bjoern Rabenstein 38d518c0fe Rework #5009 after comments
6 years ago
Sylvain Rabot 335a34486e Add external labels to template expansion
6 years ago
Tariq Ibrahim 8fdfa8abea refine error handling in prometheus (#5388)
6 years ago
James Ravn e15d8c5802 reload: copy state on both name and labels (#5368)
6 years ago
David Symonds 46361a7c85 rules: Fix sorting of result from (*Manager).RuleGroups (#5260)
6 years ago
beorn7 2db1eeb4ec Fix prometheus_rule_group_last_evaluation_timestamp_seconds
6 years ago
Ganesh Vernekar 787eb1e904 Set rule_group_last_duration_seconds to seconds (#5153)
6 years ago
Matt Layher 302148fd69 *: apply gofmt -s
6 years ago
Vishnunarayan K I fd3ef6ba34 Add metric rule_group_rules_loaded to get the number of rules loaded (#5090)
6 years ago
Simon Pasquier f678e27eb6
*: use latest release of staticcheck (#5057)
6 years ago
Tom Wilkie 121603c417
Expose rules.NewGroupMetrics and rules.Metrics. (#5059)
6 years ago
Tom Wilkie 6e08029b56
Move err to be the last return value from storage.Select. (#5054)
6 years ago
Bartek Płotka de213d4a5e rule manager: Moved metric registration to custom registerer which is already available. (#4961)
6 years ago